查询设备绑定对应的组织信息

2022-07-07
暂无评分

设备请求:获取设备绑定码和组织id对应的组织信息

Topic:

thing/product/{pid}/requests

参数说明:

参数必填类型说明
tidYstring
bidYstring
methodYstringmessage类型
timestampYint13位时间戳
dataYobject
» device_binding_codeYstring设备绑定码
» organization_idYstring组织id

示例:

// topic thing/product/{pid}/requests
{
  "method":"airport_organization_get",
  "bid":"760e126a-0ef0-43b2-aa35-31587237cae5",
  "tid":"135f50f9-8015-4905-9848-256cb7210082",
  "timestamp":1654050986907,
  "data":{
    "device_binding_code":"device_binding_code",
    "organization_id":"organization_id"
  }
}

云端响应: 获取设备绑定码和组织id对应的组织信息

Topic:

thing/product/{pid}/requests_reply

参数说明:

参数必填类型说明
tidYstring
bidYstring
methodYstringmessage类型
timestampYint13位时间戳
dataYobject
» resultYint响应结果0代表正常
» outputYobject输出
»» organization_nameYstring组织名称

示例:

// topic  thing/product/{pid}/requests_reply
{
  "method":"airport_organization_get",
  "tid":"123",
  "bid":"456",
  "timestamp":"1234567890123",
  "data":{
    "result":0,
    "output":{
      "organization_name":"organization_name"
    }
  }
}