Last Updated on : 2023-12-07 03:33:47download
This topic describes the APIs of Query door opening record.
Query door opening record
GET: /v1.1/devices/{device_id}/door-lock/open-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 |
start_time | Long | query | true | Start Time |
end_time | Long | query | true | Device Number |
show_media_info | Boolean | query | true | Whether to display picture information |
Parameter name | Type | Description |
---|---|---|
result | DoorLockHistoryVO |
Description of result
Parameter name | Type | Description |
---|---|---|
serial_version_u_i_d | Long | |
total | Long | |
logs | List |
Description of logs
Parameter name | Type | Description |
---|---|---|
update_time | Long | |
status | StatusItemVO | |
user_id | String | |
avatar | String | |
nick_name | String | |
unlock_name | String | |
media_infos | List |
Description of media_infos
Parameter name | Type | Description |
---|---|---|
file_url | String | |
file_key | String | |
media_url | String | |
media_key | String |
Description of status
Parameter name | Type | Description |
---|---|---|
serial_version_u_i_d | Long | |
code | String | |
value | Object |
GET: /v1.1/devices/6cdb36b2e489885fa57lzm/door-lock/open-logs?page_no=1&page_size=3&start_time=1553053133000&end_time=1614008938000&show_media_info=true
{
"result": {
"total": 1,
"logs": [
{
"unlock_name": "",
"avatar": "https://images.tuyacn.com /smart/user_res/avatar/scale/user_icon_default.png",
"media_infos": [
{
"file_url": "https://ty-cn -storage60-1254153901.cos.tuyacn.com",
"file_key": "uwu5m7kvj45av47g"
}
],
"update_time": 1613978384000,
"user_id": "0",
"nick_name": "",
"status": {
"code": "unlock_app",
"value": "0"
}
}
]
},
"t": 1614063791358,
"success": true
}
See Error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback