-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #879 from Iterable/evan/MOB-8301-add-placement-id-…
…to-sync-messages [MOB-8301] adds optional parameter to syncMessages
- Loading branch information
Showing
5 changed files
with
134 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
iterableapi/src/test/resources/embedded_payload_single_placement_id_0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"placements": [ | ||
{ | ||
"placementId": 0, | ||
"embeddedMessages": [ | ||
{ | ||
"metadata": { | ||
"messageId": "doibjo4590340oidiobnw", | ||
"placementId": 0, | ||
"campaignId": 2324, | ||
"isProof": true | ||
}, | ||
"elements": { | ||
"title": "Iterable Coffee Shoppe", | ||
"body": "SAVE 15% OFF NOW", | ||
"mediaUrl": "http://placekitten.com/200/300", | ||
"defaultAction": { | ||
"type": "someType", | ||
"data": "someData" | ||
}, | ||
"buttons": [{ | ||
"id": "reward-button", | ||
"title": "REDEEM MEOW", | ||
"action": { | ||
"type": "openUrl", | ||
"data": "https://www.google.com" | ||
} | ||
}], | ||
"text": [{ | ||
"id": "body", | ||
"text": "CATS RULE!!!", | ||
"label": "label" | ||
}] | ||
}, | ||
"payload": { | ||
"someKey": "someValue" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
42 changes: 42 additions & 0 deletions
42
iterableapi/src/test/resources/embedded_payload_single_placement_id_2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"placements": [ | ||
{ | ||
"placementId": 2, | ||
"embeddedMessages": [ | ||
{ | ||
"metadata": { | ||
"messageId": "grewdvb54ut87y", | ||
"placementId": 2, | ||
"campaignId": 1910, | ||
"isProof": true | ||
}, | ||
"elements": { | ||
"title": "Experience the great outdoors", | ||
"body": "Trips are going fast!", | ||
"mediaUrl": "http://placekitten.com/200/300", | ||
"defaultAction": { | ||
"type": "someType", | ||
"data": "someData" | ||
}, | ||
"buttons": [{ | ||
"id": "reward-button", | ||
"title": "REDEEM MEOW", | ||
"action": { | ||
"type": "openUrl", | ||
"data": "https://www.google.com" | ||
} | ||
}], | ||
"text": [{ | ||
"id": "body", | ||
"text": "CATS RULE!!!", | ||
"label": "label" | ||
}] | ||
}, | ||
"payload": { | ||
"someKey": "someValue" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |