Last Updated on : 2023-12-07 03:34:02
Get a list of temporary passwords for door locks, you can view valid, invalid and other data
GET: /v1.0/devices/{device_id}/door-lock/template/temp-password
Parameter name | Type | IN | Required | Description |
---|
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
is_record | Boolean | false | Whether to include records | |
data_type | Integer | false |
| |
page_size | Integer | false | Records per page | |
offset | Integer | false | Offset | |
device_id | String | uri | true | device id |
Parameter name | Type | Description |
---|---|---|
result | OpenApiPagination |
Description of result
Parameter name | Type | Description |
---|---|---|
total | Integer | Total data |
unread_count | Integer | |
total_pages | Integer | Total pages |
records | List | Pagination data |
has_more | Boolean | Is there any more data |
Description of records
Parameter name | Type | Description |
---|---|---|
pwd_id | Long | Password number |
password | String | Password |
pwd_type | Integer |
|
msg_id | Integer | Password information number |
pwd_type_code | String |
|
name | String | Password Name |
gmt_create | Long | Password creation time (milliseconds) |
effective_time | Long | Password effective time (milliseconds) |
expired_time | Long | Password expiration time (milliseconds) |
phone | String | Mobile phone number (with country code), for example: 86-15158065546 |
schedule_details | List | periodic information, the value may be changed only when the type is periodical password |
sn | Integer | Serial number of the periodic password |
operate | String |
|
delivery_status | String | Delivery Status. Value:
|
dev_name_list | List | List of device names that can be unlocked |
dev_id_list | List | List of device numbers that can be unlocked |
dev_ack | Integer | Device return status is set according to dp definition |
Description of schedule_details
Parameter name | Type | Description |
---|---|---|
effective_time | Long | Start time. Stored in minutes, such as "07:30", the value is 7x60+30=450 |
invalid_time | Long | End time. Stored in minutes, such as "08:30", the value is 8x60+30=510 |
working_day | Integer | Week, each value accumulates:
|
time_zone_id | String | Time Zone |
all_day | Boolean | Whether it is all day |
GET: /v1.0/devices/6c7129x1yanlxgwx/door-lock/template/temp-password
{
"isRecord": "true",
"dataType": "0"
}
{
"tid": "1e5e62243ed811ed84fd2237f0528b74",
"result": {
"records": [
{
"effective_time": 1664269200,
"schedule_details": [
{
"effective_time": 0,
"all_day ": false,
"working_day": 127,
"invalid_time": 1439
}
],
"pwd_id": 2876895,
"expired_time": 1666861200,
"password": "E86342BEF4228A1E741E38A5900FA61A",
"operate ": "CREATE",
"name": "test9",
"sn": "- 1",
"msg_id": 81,
"delivery_status": "ONGOING"
},
{
"effective_time": 1664269200,
"pwd_id": 2873619,
"expired_time": 1666861200,
"dev_ack": 2,
"password": " 080A9B713292AEE8203ADA6141F721E2",
"operate": "DELETE",
"schedule_detail s": [
{
"effective_time": 0,
"working_day": 127,
"all_day": false,
"invalid_time": 1439
}
],
"name": "test13",
"sn": 49,
"msg_id": 80,
"delivery_status": "FAILED"
},
{
"effective_time": 1664269229,
"pwd_id": 2871896,
"expired_time": 1666861214,
"password": "BC981F3595A36532EC6778EEE50DF3CE",
"name": "test",
"sn": 48,
"msg_id": 74,
"delivery_status": "SUCCESS",
"schedule_details ": [
{
"effective_time": 0,
"working_day": 127,
"all_day": false,
"invalid_time": 1439
}
]
}
],
"has_more": true
},
"t": 1664333346974,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback