Get the latest remote door opening or alarm cover image

Last Updated on : 2023-12-07 03:33:54download

This topic describes the APIs of Get the latest remote door opening or alarm cover image.

API description

Get the latest remote door opening or alarm cover image

API address

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

Request parameter

Parameter name Type IN Required Description
device_id String uri true Device ID
file_type Integer query true File type 1. Open the door remotely, 2. Alarm

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/latest/media/url?file_type=1

Return example

{ "result": { "file_path": "/3039e1-30532026-fd19f820d483fa63.jpg", "file_url": "https://ty-cn-storage60-1254153901.cos.tuyacn.com/", "bucket": "ty-cn-storage60-1254153901", "file_key": "3qmuy74sgd877p3e" }, "t": 1614063394528, "success": true }

Error code

See Error code.