Request format: POST
URL: http(s)://api.heclouds.com/nbiot/execute
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 nbiot device, equivalent to the data flow id in the platform model, required |
obj_inst_id | int | yes | id of a specific instance under the device object, corresponding to a part of key value at the data point in the platform model, required |
res_id | int | yes | Resource id of nbiot device, required |
timeout | int | no | Request time-out period, 25 by default (unit: s), value range [ 5,40] |
Parameter Name | Format | Required? | Description |
---|---|---|---|
args | string | yes | Command character string, size restricted to be 2k |
Name | Format | Description |
---|---|---|
errno | int | Call error code, where 0 means success. |
error | string | Error description, where "succ" means success. |
Return to the meaning corresponding to errno status code; check API status code.。
HTTP content is optional.
POST http://api.heclouds.com/nbiot/execute HTTP/1.1
api-key: WhI*************v1c= //Must be MasterKey, because it involves personal privacy, use "*******" instead
Content-Type:application/json
Authorization: version=2018-10-31&res=products/23104&et=1554398783&method=sha1&sign=fsBwuj0udOpU3BLoHmpbFwyIo30=
Request parameter example
{
"args": "ping" // string
}// The HTTP content part is optional.
Return example
{
"errno": 0,
"error": "succ"
} //In the response message, errno represents the error code, and error represents the cause of the error.