queryCloudRecordBitmap: Query cloud recording mask monthly
queryCloudRecordBitmap: Query cloud recording mask monthly
Function details
Query the cloud coverage mask of the device/channel in a certain year and month, and return the Bitmap, indicating whether there is cloud video recording on each day of the month, 1 means there is recording, and 0 means there is no recording.
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/queryCloudRecordBitmap
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 | ||
| year | Integer | Yes | [1,N] (N is a positive integer) | year | |
| month | Integer | yes | [1,12] positive integer | month | |
| cloudType | String | no | video: video recording; snapshot: snapshot recording. | recording type to query. Default value is video |
Sample input
{
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"74bc756ebd53e9eef2836f8cf1730c10",
"time":1599031074,
"nonce":"8ec8a7bd1d1c95420de20d92422d457d"
},
"params":{
"token":"At_12345678901234567890123456789012",
"deviceId":"TESTQWERXXXX",
"channelId":"0",
"year":2016,
"month":5
}
}
Return data field description
| Field name | Field type | Field description | |
|---|---|---|---|
| bitmap | String | Cloud video mask | |
Sample output
{
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"result":{
"data":{
"bitmap":"1111100000111110000011111000001"
},
"code":"0",
"msg":"The operation was successful"
}
}
