更新时间:2024-08-19 06:20:52下载pdf
本文介绍获取临时密码信息的 API。
获取门锁指定的临时密码信息。
GET: /v1.0/devices/{device_id}/door-lock/temp-password/{password_id}
| 参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
|---|---|---|---|---|
| device_id | String | uri | true | 设备 ID |
| password_id | Long | uri | true | 密码编号 |
| 参数名 | 类型 | 说明 |
|---|---|---|
| result | JSONObject |
result 说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | Long | 临时密码的编号 |
| name | String | 临时密码的名称 |
| phase | Integer | 密码状态
|
| effective_time | Long | 生效时间,10 位时间戳 |
| invalid_time | Long | 过期时间,10 位时间戳 |
| phone | String | 手机号码 |
| time_zone | String | 时区 |
| delivery_status | Integer | 操作确认状态,Zigbee 时返回
|
| schedule_list | List | 周期性功能参数列表 |
schedule_list 说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| invalid_time | Long | 结束时间。分钟形式存放,例如,"07:30"的取值为 7x60+30=450 |
GET: /v1.0/devices/vdevo15345926009****/door-lock/temp-password/xxx
{
"result": {
"effective_time": 1530841779,
"phase": 1,
"time_zone": "Asia/Shanghai",
"phone": "123547127362",
"name": "租客A的密码",
"invalid_time": 1530881779,
"id": 1001,
"delivery_status": 1
},
"t": 1542626129429,
"success": true
}
参考 错误码。
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈