Skip to content

Commit

Permalink
Fixed Target docs for reading response tokens from retrieveLocationCo…
Browse files Browse the repository at this point in the history
…ntent callback (#486)
  • Loading branch information
swarna04 authored Jan 26, 2024
1 parent c2863ee commit 7912f2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/solution/adobe-target/tabs/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -920,8 +920,8 @@ TargetRequest request2 = new TargetRequest("mboxName2", parameters2, "defaultCon
// and click metric analytics payload, if available
if (data != null && !data.isEmpty()) {

Map<String, String> responseTokens = data.containsKey("responseTokens") ?
(Map<String, String>) data.get("responseTokens") :
Map<String, Object> responseTokens = data.containsKey("responseTokens") ?
(Map<String, Object>) data.get("responseTokens") :
null;

Map<String, String> analyticsPayload = data.containsKey("analytics.payload") ?
Expand Down Expand Up @@ -1006,7 +1006,7 @@ let request2 = TargetRequest(mboxName: "logo", defaultContent: "red", targetPara

// Read the data dictionary containing one or more of response tokens, analytics payload and click-tracking analytics payload, if available.
if let data = data {
let responseTokens = data["responseTokens"] as? [String: String] ?? [:]
let responseTokens = data["responseTokens"] as? [String: Any] ?? [:]

let analyticsPayload = data["analytics.payload"] as? [String: String] ?? [:]

Expand Down

0 comments on commit 7912f2a

Please sign in to comment.