Active devices by date
Purpose
This API provides the active device count for the set date range.
Request URL
https://apptics.zoho.com/cx/api/v1/activedevice/countbydate
Request body (JSON)
Parameter | Type | Data type | Allowed values | Description |
startdate | definite | string | Date | dd-MM-yyyy |
enddate | definite | string | Date | dd-MM-yyyy |
platform | non-definite. | string | iOS/Android/ Windows/tvOS/watchOS/macOS | |
limit | non-definite | integer | number | default 500 |
offset | non-definite | integer | number | Start index for the list of values |
Request Headers
zak - <API_KEY>
Authorization - Zoho-oauthtoken xyz
Limitations
- If startdate and enddate is not givien by user, it will show the past 7 days of data.
- Max of 500 events values can be fetched, if there are more than 500 events, you should use offset.
Sample response
Copied{
"data": {
"result": {
"tvOS": [
{
"DATE": 1647072000000,
"ActiveDevices COUNT": 2
},
{
"DATE": 1647158400000,
"ActiveDevices COUNT": 2
}
],
"iOS": [
{
"DATE": 1647072000000,
"ActiveDevices COUNT": 4
},
{
"DATE": 1647158400000,
"ActiveDevices COUNT": 3
}
],
"macOS": [
{
"DATE": 1647072000000,
"ActiveDevices COUNT": 2
},
{
"DATE": 1647158400000,
"ActiveDevices COUNT": 1
}
],
"Android": [
{
"DATE": 1647072000000,
"ActiveDevices COUNT": 3
},
{
"DATE": 1647158400000,
"ActiveDevices COUNT": 1
}
]
},
"userParams": {
"StartDate": "12-Mar-2022",
"EndDate": "13-Mar-2022"
}
},
"status": 200