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  TypeData type Allowed valuesDescription
startdatedefinitestringDatedd-MM-yyyy
enddatedefinitestringDatedd-MM-yyyy
platformnon-definite. stringiOS/Android/ Windows/tvOS/watchOS/macOS 
limitnon-definiteintegernumberdefault 500
offsetnon-definiteintegernumberStart index for the list of values

Request Headers

zak - <API_KEY>

Authorization - Zoho-oauthtoken xyz


Limitations

  1. If startdate and enddate is not givien by user, it will show the past 7 days of data.
  2. 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