Get Organization Information
Device requirement: get the corresponding organization information of device binding code and organization ID
Topic:
thing/product/{pid}/requests
Parameter Explanation:
Parameter | Required | Type | Illustration |
---|---|---|---|
tid | Y | string | |
bid | Y | string | |
method | Y | string | message Type |
timestamp | Y | int | 13-bit timestamp |
data | Y | object | |
» device_binding_code | Y | string | Device binding code |
» organization_id | Y | string | Organization 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:
Parameter | Required | Type | Illustration |
---|---|---|---|
tid | Y | string | |
bid | Y | string | |
method | Y | string | message Type |
timestamp | Y | int | 13-bit timestamp |
data | Y | object | |
» result | Y | int | The response result of 0 means normal |
» output | Y | object | Output |
»» organization_name | Y | string | Organization 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"
}
}
}