NB-IoT Suite Product Introduction QuickStart User Guide Device Development Guide Application Development Guide Best Practices FAQ Service agreement Update Log

Acquire the resource list

Request format: GET

URL: http(s)://api.heclouds.com/nbiot/resources

I only want to see examples!!!

Url parameter

Parameter NameFormatRequired?Description
imeistringyesnbiot device identity code
obj_idintnoObject id of the device, determined according to sdk of the terminal device

Return Parameters

NameFormatDescription
errnointCall error code, where 0 means success.
error stringError description, where "succ" means success.
datajsonDevice dependent message returned after the interface is successfully invoked; see Data Description Table
Data Description Table
NameFormatDescription
total_countintNumber of items returned
item array-jsonDetails of returned items; see the item description list.
item description list
NameFormatDescription
obj_idintObject id of the device, determined according to sdk of the terminal device
instancesarray-jsonInstance items under object id; see instances description list.
instances description list
NameFormatDescription
inst_idintInstances id of the device, determined according to sdk of the terminal device
resourcesarray-intAll resource list under the device instances id
Description

Return to the meaning corresponding to errno status code; check API status code.

HTTP content is optional.

Request Example

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=

Return Example

{
    "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.

< create-device

update-dev-info >

个搜索结果,搜索内容 “

    0 个搜索结果,搜索内容 “