Interface for real-time acquisition of alarm cover image and video address

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.

API description

Interface to get the alarm cover image and video address in real time

API address

GET: /v1.0/devices/{dev_id}/door-lock/media/url

Request parameter

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

Return parameter

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

Request example

GET: /v1.0/devices/6cdb36b2e489885fa57lzm/door-lock/media/url?file_type=1

Return example

{ "result": { "file_url": "https://ty-cn-storage60-1254153901.cos.tuyacn.com" }, "t": 1614063667512, "success": true }

Error code

See Error code.