bindDeviceChannelInfo - Obtain Device Channel Information - Imou Open Platform
bindDeviceChannelInfo: Obtain the detailed information of a single device channel
Function details
Get information about a single device channel.
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/bindDeviceChannelInfo
The sub-account token can request any permission
"Resource":"cam:Serial Number:Channel 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 | ||
| deviceId | String | Yes | Device serial number | ||
| channelId | String | Yes | Channel ID |
Sample input
{
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"66e3c999d175d9296822f3e80322c600",
"time":1603370040,
"nonce":"abd1e79d-d3b5-4760-959e-e7959a22cb5e"
},
"id":"65f772cf-ad91-49a5-aa90-bb344e3e0f7c",
"params":{
"deviceId":"TESTQWERXXXX",
"channelId":"0",
"token":"At_00000ad9e6e87f0142eb92e207aec46a"
}
}
Return data field description
| Field name | Field type | Field description | |
|---|---|---|---|
| deviceId | String | Device serial number | |
| alarmStatus | Integer | Motion check switch state 0: closed state, 1: open state | |
| channelId | Integer | Device channel number | |
| channelName | String | Channel name | |
| channelOnline | String | Whether it is online, online-online offline-offline close-not configured sleep-hibernation is upgrading | |
| channelPicUrl | String | Thumbnail URL, new devices can update the field by refreshing the device channel cover image or uploading the device channel cover image | |
| shareStatus | String | "": The device belongs to itself; "share": Share to this user through Lecheng app; "auth": Authorize to this user through Lecheng PC client; "shareAndAuth": Share to this user through Lecheng app And authorized to this user through easy4ip PC client | |
| shareFunctions | String | Optional, a list of permissions and functions to be shared and authorized (separated by commas) | |
| csStatus | String | Cloud storage status, notExist: the package has not been activated, using: cloud storage has been activated and has not expired, expired: the package has expired | |
Note: When there is no channel on the device, the interface only returns the deviceId field, other fields do not return
Sample output
{
"result":{
"msg":"The operation was successful.",
"code":"0",
"data":{
"csStatus":"notExist",
"shareFunctions":"",
"alarmStatus":1,
"channelName":"TP1S-1842",
"channelOnline":"online",
"channelAbility":"PTZ,MDW,MDS,ChnLocalStorage",
"deviceId":"TESTQWERXXXX",
"channelId":0,
"channelPicUrl":"",
"shareStatus":""
}
},
"id":"65f772cf-ad91-49a5-aa90-bb344e3e0f7c"
}
