Get Organization Information

2022-06-23
No Rating

Device requirement: get the corresponding organization information of device binding code and organization ID

Topic:

thing/product/{pid}/requests

Parameter Explanation:

ParameterRequiredTypeIllustration
tidYstring
bidYstring
methodYstringmessage Type
timestampYint13-bit timestamp
dataYobject
» device_binding_codeYstringDevice binding code
» organization_idYstringOrganization id

Example:

// 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"
  }
}

Device response: get the corresponding organization information of device binding code and organization ID

Topic:

thing/product/{pid}/requests_reply

Parameter Explanation:

ParameterRequiredTypeIllustration
tidYstring
bidYstring
methodYstringmessage Type
timestampYint13-bit timestamp
dataYobject
» resultYintThe response result of 0 means normal
» outputYobjectOutput
»» organization_nameYstringOrganization name

Example:

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