queryLocalRecordNum: Query the total number of local recordings of the device
queryLocalRecordNum: Query the total number of local recordings of the device
Function details
Query the total number of local recordings of the specified type of the device/channel in the specified time period.
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/queryLocalRecordNum
Minimum permissions required for sub-account token request
"Permission":"RecordReplay" "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 | ||
| beginTime | String | Yes | Format: yyyy-MM-dd HH:mm:ss | Start Time | |
| endTime | String | Yes | Format: yyyy-MM-dd HH:mm:ss | End time | |
| type | String | No | "All", that is, query all videos | Type |
Sample input
{
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"74bc756ebd53e9eef2836f8cf1730c10",
"time":1599031074,
"nonce":"8ec8a7bd1d1c95420de20d92422d457d"
},
"params":{
"token":"At_00006acr3456d12312d3grf60147de7ec",
"deviceId":"TESTQWERXXXX",
"channelId":"0",
"beginTime":"2020-05-19 00:00:00",
"endTime":"2020-05-19 23:59:59",
"type":"All"
}
}
Return data field description
| Field name | Field type | Field description | |
|---|---|---|---|
| recordNum | Integer | Total number of recordings | |
Sample output
{
"result":{
"msg":"The operation was successful.",
"code":"0",
"data":{
"recordNum":20
}
},
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af"
}
