临时密码分页查询
- 接口功能
查询已添加的智能锁临时密码
- 请求地址
https://open.ys7.com/api/component/saas/smartlock/tmppwd/list/page
- 请求方式
POST
- 参数列表
参数名 | 类型 | 描述 | 是否必填 |
---|---|---|---|
accessToken | String | 开放平台授权获取的访问令牌 | Y |
deviceSerial | String | 智能锁序列号 | N |
tmpPwdIndex | String | 临时密码索引 | N |
tmpPwdEnable | String | 临时密码是否使能 | N |
userName | String | 用户名 | N |
beginTime | String | 卡效期起始时间 | N |
endTime | String | 卡效期结束时间 | N |
- 请求报文
POST https://open.ys7.com/api/component/saas/smartlock/tmppwd/list/page HTTP/1.1
Host: open.ys7.com
content-type: application/x-www-form-urlencoded
accessToken=at.axk5tx9j6y2pkjnacqzz461x7qyy7oej-837w5x8x8a-1qwxmsq-goctoffs8&deviceSerial=C74528358
- 返回数据
{
"code": "200",
"data": [{
"deviceSerial": "C74528358",
"tmpPwdIndex": "1",
"tmpPwdEnable": "1",
"userName": "YY",
"beginTime": "2018-11-25 08:30:00",
"endTime": "2020-11-25 08:30:00",
"tmpPwd": "444449",
"tmpPwdNum": "100",
"tmpPwdAvailable": "100",
"remarks": "",
"createTime": "2019-06-21 20:42:32",
"updateTime": "2019-06-25 16:33:16"
}, {
"deviceSerial": "C74528358",
"tmpPwdIndex": "2",
"tmpPwdEnable": "1",
"userName": "YY",
"beginTime": "2018-11-25 08:30:00",
"endTime": "2020-11-25 08:30:00",
"tmpPwd": "444448",
"tmpPwdNum": "100",
"tmpPwdAvailable": "99",
"remarks": "",
"createTime": "2019-06-21 20:34:17",
"updateTime": "2019-06-25 16:33:16"
}],
"msg": "操作成功",
"page": {
"page": 1,
"size": 10,
"total": 2
}
}
- 参数说明
参数名 | 类型 | 描述 | 是否必须 |
---|---|---|---|
code | int | 状态码-200,表示成功 | Y |
msg | String | 具体错误描述信息 | Y |
data | object | 业务结果 | Y |
data[i].deviceSerial | String | 设备序列号 | Y |
data[i].tmpPwdIndex | String | 临时密码索引 | Y |
data[i].tmpPwdEnable | String | 临时密码是否使能(0-不使能;1-使能) | Y |
data[i].userName | String | 临时密码对应用户名 | Y |
data[i].beginTime | String | 临时密码有效期开始时间 | Y |
data[i].endTime | String | 临时密码有效期结束时间 | Y |
data[i].tmpPwd | String | 临时密码内容(安全原因返回*) | Y |
data[i].tmpPwdNum | String | 临时密码总有效次数 | Y |
data[i].tmpPwdAvailable | String | 临时密码有效次数 | Y |
data[i].createTime | String | 临时密码创建时间 | Y |
data[i].updateTime | String | 临时密码最后编辑时间 | Y |