post https://cp.pushwoosh.com/json/1.3/getAppStats
Gets the statistics for the application.
Enterprise API
Gets the statistics for the application.
Statistic displays registered actions for application, device or message, for the timeframe specified.
Reports are automatically aggregated using the following rules:
yearly > 1 year
monthly > 1 month
daily > 1 day
hourly > 3 hours
minutely in other cases
Actions:
Application Level: open, install
Device Level: register, unregister
Message level: send, open
All statistics objects have the same format:
Field | Type | Description |
---|---|---|
formatter | string | report scale: yearly, monthly, daily, hourly, minutely |
rows | list | report rows |
Each of the report rows is a dictionary:
Field | Type | Description |
---|---|---|
count | int | registered actions count |
action | string | registered action |
datetime | string | Formatted date: Y-m-d H:i:s |
IMPORTANT
As every scheduled request, /getAppStats request requires an additional /getResults request
Response body
Field | Type | Description |
---|---|---|
request_id | string | Scheduled request ID. Please check /getResults method for more information |
Scheduled (/getResults) response body
Field | Type | Description |
---|---|---|
applications | dictionary | statistics for applications |
devices | dictionary | statistics for devices |
messages | dictionary | statistics for messages |
{
"error": {
"code": 0,
"message": "OK"
},
"json_data": {
"applications": {
"formatter": "hourly",
"rows": [{
"count": 0,
"action": "open",
"datetime": "2013-06-06 00:00:00"
}, ...
]
}
}
}