Skip to content
ulkeroz edited this page Mar 5, 2015 · 3 revisions

This API is used for sending push messages to devices.

  • GET /sapi/push/status/{pushId}/{timestamp}/{hash}

  • Content-Type: application/json

  • pushId : ID of sent push @Curio

  • timestamp : Current timestamp as long (in milliseconds)

  • hash : a token which is generated using HmacMD5 encryption on “pushId + timestamp + apiKey of the application @Curio”

{

"pushState": "FINISHED",
"messages": [
    {
        "customId": null,
        "token": "6a46c93468fc7510f85173f307aaa81e720789c2db6593c6e9448b5191cec263",
        "status": "SUCCESS",
        "sendDate": 1419580676189,
        "error": null,
        "result": "[1] transmitted {\"pId\":\"34737\",\"aps\":{\"sound\":\"default\",\"alert\":\"test\"}} on first attempt to token 6a46c..ec263"
    }
]

}

  • pushState : The state of the push message which is being queried.

  • messages : List of sent messages with customId and token information.

  • RUNNING

  • CANCELLED

  • FINISHED

  • ERROR

Clone this wiki locally