https://api.sciener.com/v3/lock/setHotelCardSector
设置酒店卡扇区后锁只会读取酒店卡相应的扇区,卡的其他扇区可供其他系统使用。
注意:通过APP SDK修改了锁的酒店卡扇区后再调用该接口。
POST, ContentType:application/x-www-form-urlencoded
xxxxxxxxxxcurl --location -g --request POST 'https://api.sciener.com/v3/lock/setHotelCardSector' \--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \--data-urlencode 'lockId=163377' \--data-urlencode 'sector=1,2,3,4,5,6,7,8,9,10' \--data-urlencode 'date=1625025703000'| 名称 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
| clientId | String | Y | 创建应用分配的client_id |
| accessToken | String | Y | 访问令牌,通过获取访问令牌接口获取 |
| lockId | Int | Y | 锁ID,由锁初始化接口生成 |
| sector | String | Y | 酒店卡扇区,例如:1,2,3,4,5,6,7,8,9,10 表示读取卡的第1到10扇区 |
| date | Long | Y | 当前时间(时间戳,单位毫秒) |
| 参数 | 类型 | 描述 |
|---|---|---|
| errcode | Int | 错误码 |
| errmsg | String | 错误信息 |
| description | String | 错误描述 |
xxxxxxxxxx{"errcode": 0,"errmsg": "none error message","description":"表示成功或是"}