Paging to Get Device Channel Info for Adding Devices - Imou Open Platform
deviceOpenList: paging to get the basic information of the channel for adding devices on the open platform
Function details
Get the basic information of the channel of the added device on the open platform by page.
Note: To query the device bound to the easy4ip App, you need to obtain it through the deviceBaseList interface.
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/deviceOpenList
Incoming parameter description
| Parameter name | Parameter type | Required or not | Default value | Legal value | Parameter description |
|---|---|---|---|---|---|
| token | String | Yes | Administrator accessToken | ||
| bindId | Long | Yes | The numeric value range is: [-1,N], -1 means the first query from the beginning | Last query of the last device Id | |
| limit | Integer | yes | maximum is 128 | number of entries | |
| type | String | Yes | bind: query bound devices; share: query shared devices; bindAndShare: query bound and shared devices | binding type | |
| needApInfo | Boolean | Yes | true: required; false: not required | Do you need accessory list information |
Sample input
{
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"aaf47e07e06e12db918430b4f99c2564",
"time":1603370922,
"nonce":"d1c25a03-0f75-4105-b2f8-ace0b7c25968"
},
"id":"04b3bdac-5a45-414d-a97a-922542a1d218",
"params":{
"limit":"128",
"type":"bind",
"bindId":"-1",
"token":"At_00000ad9e6e87f0142eb92e207aec46a",
"needApInfo":"true"
}
}
Return data field description
| Field name | Field type | Field description | ||
|---|---|---|---|---|
| count | Integer | Number of devices queried this time | ||
| deviceList | bindId | Long | Bind sharing table auto-increment id | |
| deviceId | String | Device serial number | ||
| channels | channelId | String | Channel number | |
| channelName | String | Channel name | ||
| aplist | apId | String | Accessory id | |
| apName | String | Accessory name | ||
| apType | String | Accessories type | ||
Sample output
{
"result":{
"msg":"The operation was successful.",
"code":"0",
"data":{
"count":3,
"deviceList":[
{
"channels":[
{
"channelName":"TP1S-1842",
"channelId":"0"
}
],
"deviceId":"TESTQWERXXXX",
"bindId":16425764,
"aplist":[
]
},
{
"channels":[
{
"channelName":"TP1S-1375",
"channelId":"0"
}
],
"deviceId":"TESTQWERXXXX",
"bindId":15540451,
"aplist":[
]
},
{
"channels":[
{
"channelName":"IPC-6683",
"channelId":"0"
}
],
"deviceId":"TESTQWERXXXX",
"bindId":15394252,
"aplist":[
]
}
]
}
},
"id":"04b3bdac-5a45-414d-a97a-922542a1d218"
}
