Query Base Device Channel Info for easy4ip App - Imou Open Platform
queryBaseDeviceChannelInfo: Get the basic information of the channel added or shared by the easy4ip app
Function details
According to the device serial number collection, obtain the basic information of the channel of the device added or shared by the easy4ip app.
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/queryBaseDeviceChannelInfo
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
{
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"74bc756ebd53e9eef2836f8cf1730c10",
"time":1599031074,
"nonce":"8ec8a7bd1d1c95420de20d92422d457d"
},
"params":{
"token":"At_00006acr3456d12312d3grf60147de7ec",
"deviceIds":"TESTQWERXXXX"
}
}
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":[{
"deviceId":"TESTQWERXXXX",
"status":"online",
"channels":[{
"channelId":"0",
"channelName":"TESTQWERXXXX-0",
"status":"online"
}]
}]
}
},
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af"
}
