Skip to content

Scheduled requests

To obtain a response for every scheduled request, /getResults has to be sent after the main request. Most of statistics&analytics API methods need the /getResults to be sent in order to get the stats files or JSON:

getResults

POST https://api.pushwoosh.com/json/1.3/getResults

Retrieves the result of a scheduled request.

Request Body

NameTypeDescription
auth*stringAPI access token from Pushwoosh Control Panel.
request_id*stringRequest ID returned by a scheduled method.
Example
{
"request":{
"auth": "yxoPUlwqm…………pIyEX4H", // required. API access token from Pushwoosh Control Panel.
"request_id": "REQUEST_ID" // required. Request ID returned by the scheduled method.
}
}

Response depends on the request you’re obtaining results for, so it may look different. Below is an example response for the /getMsgStats request:

Example Response
{
"status_code": 200,
"status_message": "OK",
"response": {
"formatter": "hourly",
"rows": [{
"datetime": "2020-05-13 08:00:00",
"action": "send",
"count": 6
}, {
"datetime": "2020-05-13 08:00:00",
"action": "inboxopen",
"count": 0
}, {
"datetime": "2020-05-13 08:00:00",
"action": "delivery",
"count": 1
}, {
"datetime": "2020-05-13 08:00:00",
"action": "open",
"count": 0
}],
"conversion": {
"send": 6,
"delivery": 1,
"open": 0,
"events": []
}
}
}