Get Overview of App Device Data

Last Updated on : 2023-07-28 06:23:54download

Get an overview of device data on the app based on the app schema, including the number of activated devices and the number of active devices.

API address

GET: /v1.0/apps/{schema}/devices-survey

Request parameter

Parameter nameTypeINRequiredDescription
schemaStringuritrueApp schema

Return parameter

Parameter nameTypeDescription
resultJSONObjectThe returned result.

Description of result

Parameter nameTypeDescription
today_addStringThe number of devices activated today.
yesterday_addStringThe number of devices activated yesterday.
all_addStringTotal activated devices.
today_liveStringThe number of active devices today.
yesterday_liveStringThe number of active devices yesterday.
compared_with_yesterday_addStringThe difference between the number of devices activated today and that of yesterday.
compared_with_yesterday_liveStringThe difference between the number of active devices today and that of yesterday.

Request example

GET: /v1.0/apps/smart/devices-survey

Return example

{
    "result": {
        "all_add": "7914",
        "today_live": "7",
        "yesterday_live": "14",
        "today_add": "0",
        "compared_with_yesterday_live": "-30.00%",
        "yesterday_add": "0",
        "compared_with_yesterday_add": "0.00%"
    },
    "t": 1545286492204,
    "success": true
}

Error code

For more information, see error code.