queryOpenDeviceChannelInfo - Device Channel Info on Open Platform - Imou Open Platform
queryOpenDeviceChannelInfo: Obtain the basic channel information of the device added on the open platform
Function details
Obtain the basic information of the channel for adding devices to the open platform according to the set of device serial numbers.
Note: Querying the device bound to the easy4ip App needs to be obtained through the queryBaseDeviceChannelInfo interface.
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/queryOpenDeviceChannelInfo
The sub-account token can request any permission
"Resource":"dev:serial number"
Incoming parameter description
| Parameter name | Parameter type | Required or not | Default value | Legal value | Parameter description |
|---|---|---|---|---|---|
| token | String | Yes | Administrator or sub-account accessToken | ||
| deviceIds | String | Yes | Multiple devices are separated by English commas, for example: "xxxxx,xxxxx,xxxxx", supports up to 10 devices | List of device serial numbers |
Sample input
{
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"99d56940b330fc8e9f5d30c066e6cc0d",
"time":1603371196,
"nonce":"6c342163-9cca-4194-ad37-6189989b0a2f"
},
"id":"abb1128c-40d8-4340-ad69-18cd7fa46d22",
"params":{
"deviceIds":"TESTQWERXXXX",
"token":"At_00000ad9e6e87f0142eb92e207aec46a"
}
}
Return data field description
| Field name | Field type | Field description | ||
|---|---|---|---|---|
| devices | deviceId | String | Device serial number | |
| status | String | Device status, online: online, offline: offline, sleep: hibernation, upgrading | ||
| channels | channelId | String | Channel number | |
| channelName | String | Channel name | ||
| status | String | Channel status, online: online, offline: offline, close: not configured, sleep: hibernation, upgrading in progress | ||
Sample output
{
"result":{
"msg":"The operation was successful.",
"code":"0",
"data":{
"devices":[
{
"channels":[
{
"channelName":"TP1S-1842",
"channelId":"0",
"status":"online"
}
],
"deviceId":"TESTQWERXXXX",
"status":"online"
}
]
}
},
"id":"abb1128c-40d8-4340-ad69-18cd7fa46d22"
}
