Hi Team,
I have tried to use Airship Snippets for Sending Push Notification. but it does not seems to be work.
Request you to kindly provide your support.
Here is the curl code snippet for the same:
curl --location --request POST 'https://go.urbanairship.com/api/push' \
--header 'Authorization: Basic ***********************VrQ3BjRGNTY3ZSQTpLa*******************' \
--header 'Accept: application/vnd.urbanairship+json; version=3;' \
--header 'Content-Type: application/json' \
--data-raw '{
"audience": "all",
"device_types": [
"ios"
],
"notification": {
"alert": "{{>package_prefix}} Nike Shoes {{>delivered_suffix}} 25th May 2021"
},
"snippet_references": {
"snippets": [
{
"name": "package_prefix"
},
{
"name": "delivered_suffix"
}
]
}
}'
Highly appreciate your needful support.
Let me know, in case, you have any query.
Thanks
Comments
1 comment