获取锁额外设置信息
https://euapi.ttlock.com/v3/lock/getExtraSetting
主要包括未授权报警等等信息
如果通过查询云端获取未授权报警信息时,没有数据,需要通过 蓝牙APP SDK或者网关、WIFI锁通道获取最新未授权报警信息。
1 HTTP请求方法及示例
POST, ContentType:application/x-www-form-urlencoded
javascript
curl --location -g --request POST 'https://euapi.ttlock.com/v3/lock/getExtraSetting' \
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'lockId=3001' \
--data-urlencode 'date=1625025703000'
--data-urlencode 'type=1'2 参数说明
| 名称 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
| clientId | String | Y | 创建应用分配的client_id |
| accessToken | String | Y | 访问令牌,通过获取访问令牌接口获取 |
| lockId | Int | Y | 锁ID |
| type | Int | Y | 0-从云端获取信息 1-通过网关或者WIFI锁获取最新的未授权报警信息 |
| date | Long | Y | 当前时间(时间戳,单位毫秒) |
3 返回参数及示例
| 参数 | 类型 | 描述 |
|---|---|---|
| unauthorizedAttemptAlertFlag | Int | 未授权报警,1-打开,0-关闭 |
| unauthorizedAttemptAlertCount | Int | 未授权报警,失败次数,0表示关闭 |
| unauthorizedAttemptAlertLockTime | Int | 未授权报警,锁定时间,单位-秒 |
| unauthorizedAttemptAlertPwd | Int | 未授权报警,密码标志位,1-打开,0-关闭 |
| unauthorizedAttemptAlertCard | Int | 未授权报警,IC卡标志位,1-打开,0-关闭 |
| unauthorizedAttemptAlertFingerprint | Int | 未授权报警,指纹标志位,1-打开,0-关闭 |
| faceImageSize | Int | 人脸照片url下发参数, 图片大小 单位:KB |
| faceImageHeight | Int | 人脸照片url下发参数,图片高 单位:像素 |
| faceImageWidth | Int | 人脸照片url下发参数,图片宽 单位:像素 |
| faceImageType | Int | 人脸照片url下发参数,图片类型 1-JPG |
| wifiFirmwareRevision | String | WIFI固件版本 |
{
"unauthorizedAttemptAlertPwd": 1,
"unauthorizedAttemptAlertFingerprint": 1,
"unauthorizedAttemptAlertCount": 5,
"unauthorizedAttemptAlertCard": 1,
"unauthorizedAttemptAlertFlag": 1,
"unauthorizedAttemptAlertLockTime": 1,
"faceImageType": 1,
"faceImageWidth": 720,
"faceImageSize": 512,
"faceImageHeight": 1280,
"wifiFirmwareRevision": "1.0.3"
}