Last Updated on : 2023-12-07 03:33:49download
This topic describes the APIs of Get door lock alarm record.
Get door lock alarm record
GET: /v1.1/devices/{device_id}/door-lock/alarm-logs
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_id | String | uri | true | Device Number |
page_no | Integer | query | true | Page Number |
page_size | Integer | query | true | Page size |
codes | String | query | true | The standard function code of the alarm function, separated by a comma (,), query general alarms by default |
show_media_info | Boolean | query | true | Whether to display picture information |
Parameter name | Type | Description |
---|---|---|
result | PaginationRadar |
Description of result
Parameter name | Type | Description |
---|---|---|
total | Integer | |
records | List |
GET: /v1.1/devices/6cdb36b2e489885fa57lzm/door-lock/alarm-logs?page_size=20&page_no=1
{
"result": {
"records": [
{
"media_infos": [
{
"file_url": "https ://ty-cn-storage60-1254153901.cos.tuyacn.com",
"file_key": "jxmgqs59gfr899qe"
}
],
"update_time": 1613979671000,
"nick_name": "",
"status": [
{
"code": "alarm_lock",
"value": "wrong_password"
}
]
}
],
"total": 1
},
"t": 1614064019357,
"success": true
}
See Error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback