Skip to content

Instantly share code, notes, and snippets.

@alexcasalboni
Last active October 8, 2019 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexcasalboni/65835eed3144e2c407c2d2559deab866 to your computer and use it in GitHub Desktop.
Save alexcasalboni/65835eed3144e2c407c2d2559deab866 to your computer and use it in GitHub Desktop.
Amazon Pinpoint - AWS Lambda event (JSON)
{
"MessageConfiguration": {...},
"ApplicationId": "ABC",
"CampaignId": "XYZ",
"TreatmentId": "XYZ2",
"ActivityId": "123",
"ScheduledTime": "2019-10-08T15:00:00.000Z",
"Endpoints": {...}
}
{
"endpoint_id_1": {
"ChannelType": "GCM",
"Address": "4d5e6f1a2b3c4d5e6f7g8h9i0j1a2b3c",
"EndpointStatus": "ACTIVE",
"OptOut": "NONE",
"Demographic": {
"Make": "android"
},
"EffectiveDate": "2019-10-04T21:26:48.598Z",
"User": {}
},
"endpoint_id_1": {
"ChannelType": "APNS",
"Address": "1a2b3c4d5e6f7g8h9i0j1a2b3c4d5e6f",
"EndpointStatus": "ACTIVE",
"OptOut": "NONE",
"Demographic": {
"Make": "apple"
},
"EffectiveDate": "2019-10-05T21:26:48.598Z",
"User": {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment