Last Updated on : 2023-12-07 03:33:51download
This topic describes the APIs of Interface for real-time acquisition of alarm cover image and video address.
Interface to get the alarm cover image and video address in real time
GET: /v1.0/devices/{dev_id}/door-lock/media/url
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
dev_id | String | uri | true | Device Number |
bucket | String | query | true | The warehouse to which the file belongs |
file_path | String | query | true | Cover image path |
media_bucket | String | query | true | Video Warehouse |
media_path | String | query | true | File Path |
Parameter name | Type | Description |
---|---|---|
result | MediaInfoVO |
Description of result
Parameter name | Type | Description |
---|---|---|
serial_version_u_i_d | Long | |
file_url | String | |
file_key | String | |
bucket | String | |
file_path | String | |
media_url | String | |
media_key | String | |
media_path | String | |
media_bucket | String |
GET: /v1.0/devices/6cdb36b2e489885fa57lzm/door-lock/media/url?file_type=1
{
"result": {
"file_url": "https://ty-cn-storage60-1254153901.cos.tuyacn.com"
},
"t": 1614063667512,
"success": true
}
See Error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback