Request format: GET
URL: http(s)://api.heclouds.com/nbiot/resources
I only want to see examples!!!
Parameter Name | Format | Required? | Description |
---|---|---|---|
imei | string | yes | nbiot device identity code |
obj_id | int | no | Object id of the device, determined according to sdk of the terminal device |
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 |
Name | Format | Description |
---|---|---|
total_count | int | Number of items returned |
item | array-json | Details of returned items; see the item description list. |
Name | Format | Description |
---|---|---|
obj_id | int | Object id of the device, determined according to sdk of the terminal device |
instances | array-json | Instance items under object id; see instances description list. |
Name | Format | Description |
---|---|---|
inst_id | int | Instances id of the device, determined according to sdk of the terminal device |
resources | array-int | All resource list under the device instances id |
Return to the meaning corresponding to errno status code; check API status code.。
HTTP content is optional.
GET http://api.heclouds.com/nbiot/resources HTTP/1.1
api-key: WhI*************v1c= //Must be MasterKey, because it involves personal privacy, use "*******" instead
Authorization: version=2018-10-31&res=products/23104&et=1554398783&method=sha1&sign=fsBwuj0udOpU3BLoHmpbFwyIo30=
{
"errno": 0,
"error": "succ",
"data":{
"total_count":123,
"item":[
{
"obj_id":3200,
"instances":[
{
"inst_id":0,
"resources":[5500,5050]
},
{…},
…
]
},
{……},
……
]
}
} //In the response message, errno represents the error code, and error represents the cause of the error.