https://api.sciener.com/v3/lock/querySetting
通过网关查询锁的设置项,包括:2-反锁开关、3-防撬通知开关、4-重置键开关、7-开门方向。
其他的锁设置项,如声音开关,声音大小,请用获取锁详情接口查询。
WiFi锁相关设置,如省电模式开关,请用获取WiFi锁信息接口查询。
POST, ContentType:application/x-www-form-urlencoded
xxxxxxxxxx61curl --location -g --request POST 'https://api.sciener.com/v3/lock/querySetting' \2--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \3--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \4--data-urlencode 'lockId=163377' \5--data-urlencode 'type=3' \6--data-urlencode 'date=1625025703000'| 名称 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
| clientId | String | Y | 创建应用分配的client_id |
| accessToken | String | Y | 访问令牌,通过获取访问令牌接口获取 |
| lockId | Int | Y | 锁ID,由锁初始化接口生成 |
| type | Int | Y | 要查询的设置项:2-反锁开关、3-防撬通知开关、4-重置键开关、7-开门方向 |
| date | Long | Y | 当前时间(时间戳,单位毫秒) |
| 参数 | 类型 | 描述 |
|---|---|---|
| value | Int | 设置值: 0-未知、1-开启、2-关闭; 开门方向:0-未知、1-左开、2-右开; |
xxxxxxxxxx31{2"value": 13}