Request format: GET
URL: http(s)://api.heclouds.com/nbiot
I only want to see examples!!!
| Parameter Name | Format | Required? | Description |
|---|---|---|---|
| imei | string | Yes | nbiot device identity code |
| obj_id | int | Yes | object id of device, equivalent to the data flow id in the platform model |
| obj_inst_id | int | No | id of a specific instance under the object of nbiot device, corresponding to a part of key value at the data point in the platform model, optional id of instance, corresponding to a part of key value at the data point in the platform model, required |
| res_id | int | No | Resource id of nbiot device, optional |
| timeout | int | Notd> | Time-out period, optional, 25s by default, value range [5, 40] |
| Name | Format | Description |
|---|---|---|
| errno | int | Call error code, where 0 means success. |
| error | string | Error description, where "succ" means success. |
| data | array-json | Device resource information returned after the interface is successfully invoked; see data description list. |
| Name | Format | Description |
|---|---|---|
| obj_inst_id | int | id of object instance |
| res | array-json | res list |
| Name | Format | Description |
|---|---|---|
| res_id | int | resource id |
| val | object | resource idvalobjectValue of the resource read, bool, string, long, double type |
Return to the meaning corresponding to errno status code; check API status code.。
If obj_instance_id does not exist, resource_id msut not exist.
GET http://api.heclouds.com/devices/nbiot?imei=**&obj_id=*** 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": [{
"obj_inst_id":123,
"res":[
{
"res_id":1234,
"val": Object //could be boolean、string、long、double
},
………
]
},
………
]
} //In the response message, errno represents the error code, and error represents the cause of the error.