https://api.sciener.com/v3/lock/getPassageModeConfiguration
xxxxxxxxxxcurl --location --request GET 'https://api.sciener.com/v3/lock/getPassageModeConfiguration?clientId=4773aa036f7f49c68d876bb4be85c80c&accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f&lockId=3827&date=1626674054000'| 名称 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
| clientId | String | Y | 创建应用分配的client_id |
| accessToken | String | Y | 访问令牌,通过获取访问令牌接口获取 |
| lockId | Int | Y | 锁ID,由锁初始化接口生成 |
| date | Long | Y | 当前时间(时间戳,单位毫秒) |
| 参数 | 类型 | 描述 |
|---|---|---|
| passageMode | Int | 常开模式:1-开启、2-关闭 |
| cyclicConfig | JsonArray | 循环时间设置 |
| autoUnlock | Int | 自动开锁:1-开启、2-关闭,开启后锁将在常开模式开始时自动打开 |
cyclicConfig中的对象参数,返回数据将按开始和结束时间排序,全天的在最前面。
| 参数 | 类型 | 描述 |
|---|---|---|
| isAllDay | Int | 是否全天常开:1-是、2-否 |
| startTime | Int | 开始时间,分钟数, 例如 480 代表 8:00 |
| endTime | Int | 结束时间,分钟数, 例如 1080 代表 18:00 |
| weekDays | JsonArray[Int] | 循环有效星期:1-7,如[1,2,3] |
xxxxxxxxxx{"passageMode": 1,"cyclicConfig":[{"isAllDay":2,"startTime":480,"endTime":1080,"weekDays":[1,2]}],"autoUnlock": 1}