Query device condition in batch
Request format: GET
URL: http(s)://api.heclouds.com/devices/status
I only want to see examples!!!
Url parameter
Parameter Name | Format | Required? | Description |
devIds | string | Yes | Device idid of more than one device is spaced with commaat most 1000 devices |
Return Parameters
Name | Format | Description |
errno | int | Call error code, where 0 means success. |
error | string | Error description, where "succ" means success. |
data | json | Device dependent message returned after the interface is successfully invoked; see Data Description Table |
Data Description Table
Name | Format | Description |
total_count | int | Total |
devices | array-json | Json data array of the device condition; see devices description list. |
Description table of devices
Name | Format | Description |
id | string | Device id |
title | string | Device name |
online | bool | Online state |
Request Example
GET http://api.heclouds.com/devices/status?devIds=1221,12233,1123 HTTP/1.1
api-key: WhI*************v1c=
Content-Type: application/json
Return Example
{
"errno": 0,
"data": {
"total_count":121,
"devices":[
{
"id":1221,
"title":"device1",
"online":false
},
{
"id":12333,
"title":"device2",
"online":true
},
...
]
},
"error": "succ"
}