Push API
You need to make a POST request to the following endpoint with a JSON body like below:
Endpoint: http://api.pushamplify.com/send
POST JSON body:
{
"apikey": "<your apikey>",
"deviceids": [<array of deviceids to send pushes to>],
"payload": {
<any key value pair data that will be delivered to your PushHandler
}
}
Example POST body:
{
"apikey": "a3af1b4b-8ad7-4fe8-995b-14abd68f01d3",
"deviceids": ["44267df9-d395-49b8-a46b-8233a5aa9b98"],
"payload": {
"title": "My push title",
"body": "My push body"
}
}
The response contains one uniqid identifying the push sent to each of the deviceids like below:
{
"status": "success",
"uniqids": [<array of uniqids identifying push sent to each of the deviceids>]
}
Example response:
{
"status": "success",
"uniqids": ["195f1f93-1a71-4118-b0a0-e66e79cc7375"]
}