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:
- getMsgStats
- getMsgPlatformsStats
- getAppStats
- getCampaignStats
- getEventStatistics
- getTagStats
- getBouncedEmails
getResults
POST
https://api.pushwoosh.com/json/1.3/getResults
Retrieves the result of a scheduled request.
Request Body
Name | Type | Description |
---|---|---|
auth* | string | API access token from Pushwoosh Control Panel. |
request_id* | string | Request ID returned by a scheduled method. |
{ "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:
{ "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": [] } }}