Last Updated on : 2023-06-20 15:38:53download
Get a list of devices and device status based on the application, product, or device ID.
GET: /v1.0/devices
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_ids | String | query | false | The list of device IDs, separated with commas (,). |
product_id | String | query | false | The product ID. |
schema | String | query | false | The unique ID of a specified application. |
last_id | String | query | false | The last query ID of a specified device. |
page_size | Integer | query | true | The number of entries returned on each page. |
page_no | Integer | query | true | The current page number. |
start_time | Long | query | false | The 10-digit timestamp of the start time for the query. |
end_time | Long | query | false | The 10-digit timestamp of the end time for the query. |
Parameter name | Type | Description |
---|---|---|
result | BaseDeviceInfoRes | The returned result. |
Description of result
Parameter name | Type | Description |
---|---|---|
total | Long | The total number of entries. |
devices | List | The list of returned devices. |
last_id | String | The last query ID of a specified device. |
GET: /v1.0/devices?schema=testApp&page_no=1&page_size=20
{
"devices": [
{
"sub": false,
"create_time": 1575017570,
"local_key": "11d7f7286caa****",
"owner_id": "1160****",
"biz_type": 310002,
"ip": "58.251.**.****",
"icon": "smart/program_category_icon/znyxss.png",
"time_zone": "+08:00",
"product_name": "Wi-Fi smart speaker SS190",
"uuid": "12****",
"active_time": 1584063323,
"uid": "ay156531946658X****",
"update_time": 1584939489,
"product_id": "i9vkz***",
"name": "Wi-Fi smart speaker SS190",
"online": false,
"model": "SS190",
"id": "747b2165d9449964****",
"category": "znyxss",
"status": [
{
"code": "smartspeaker_vol",
"value": "26"
},
{
"code": "smartspeaker_mic",
"value": "true"
}
]
}
],
"total": 1,
"last_id": "158493****"
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback