Last Updated on : 2024-07-18 02:45:53download
Count the number of daily activated devices based on the start date and end date. The start and end dates cannot be more than 60 days apart.
GET: /v1.0/cloud/analytics/devices/active-datas/date
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
start_day | String | query | true | The start date in the format of yyyyMMdd . |
end_day | String | query | true | The end date in the format of yyyyMMdd . The start and end dates cannot be more than 60 days apart. |
product_id | String | query | false | The ID of the specified product in the cloud development project under the Tuya Developer Platform account. |
Parameter name | Type | Description |
---|---|---|
result | List | The returned result. |
success | Boolean | Indicates whether the operation is successful. Valid values:
|
t | Long | The timestamp. |
tid | String | The link ID. |
Description of result
Parameter name | Type | Description |
---|---|---|
The date. | Integer | The number of activated devices under the product ID (if a product_id is specified) or under all product IDs under the Tuya Developer Platform account (if a product_id is not specified) on the current day. |
GET: /v1.0/cloud/analytics/devices/active-datas/date?start_day=20230723&end_day=20230729
{
"tid": "3b135d8f2b9611ee8b88c69b14dfb1da",
"result": [
{
"20230724": 11
},
{
"20230725": 9
},
{
"20230726": 0
}
],
"t": 1690363473511,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback