Get the latest remote door opening or alarm cover picture

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

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

API description

Get the last remote door opening or alarm cover image

API address

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

Request parameter

Parameter name Type IN Required Description
dev_id String uri true Device Number
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.