queryCloudRecords:查询设备云录像片
功能详情
查询设备/通道在指定时间段内的云录像片段,并返回指定范围的片段。
请求地址
https://openapi.lechange.cn/openapi/queryCloudRecords
传入参数说明
参数名 | 参数类型 | 是否必填 | 默认值 | 合法值 | 参数说明 |
---|---|---|---|---|---|
token | String | 是 | 授权Token | ||
deviceId | String | 是 | 设备序列号 | ||
channelId | String | 是 | 通道号 | ||
beginTime | String | 是 | 开始时间,yyyy-MM-dd HH:mm:ss | ||
endTime | String | 是 | 结束时间,yyyy-MM-dd HH:mm:ss | ||
queryRange | String | 是 | 查询范围 数字取值范围为:[1,N] (N为正整数,且N>1);差值范围为:[0,99] |
样例输入
{
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"system":{
"ver":"1.0",
"appId":"lcd08b4b07ce224508",
"sign":"74bc756ebd53e9eef2836f8cf1730c10",
"time":1599031074,
"nonce":"8ec8a7bd1d1c95420de20d92422d457d"
},
"params":{
"token":"At_12345678901234567890123456789012",
"deviceId":"MEGREZ0000001842",
"channelId":"0",
"beginTime":"2020-05-19 00:00:00",
"endTime":"2020-05-19 23:59:59",
"queryRange":"1-10"
}
}
返回data字段说明
字段名 | 字段类型 | 字段说明 | |
---|---|---|---|
records | recordId | String | 录像Id |
deviceId | String | 设备序列号 | |
channelId | String | 通道号 | |
beginTime | String | 开始时间 | |
endTime | String | 结束时间 | |
size | String | 云录像的大小(单位byte) | |
thumbUrl | String | 缩略图Url | |
encryptMode | Integer | 加密模式(0:默认加密模式;1:用户加密模式) | |
recordRegionId | String | 录像分区id |
样例输出
{
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"result":{
"data":{
"records":[
{
"recordId":"1234567890",
"deviceId":"2342sdfl-df323-23",
"channelId":"0",
"beginTime":"2020-05-19 00:30:59",
"endTime":"2020-05-19 00:31:36",
"size":"123456",
"thumbUrl":"http://lechangecloud/20160519",
"encryptMode":0,
"recordRegionId":"xxxxxxxxx"
}]
},
"code":"0",
"msg":"操作成功"
}
}