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'| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | client_id from Create application |
| accessToken | String | Y | Access token,refer to: Get access token |
| lockId | Int | Y | Lock ID, generated by Lock init |
| date | Long | Y | Current time (timestamp in millisecond) |
| Parameter | Type | Description |
|---|---|---|
| passageMode | Int | Passage mode: 1-on, 2-off |
| cyclicConfig | JsonArray | Cycle time setting |
| autoUnlock | Int | Auto unlock:1-on, 2-off, set to 1 then the lock will auto unlock at the time the passage mode start |
Description of parameters in cyclicConfig, the returned data will be sorted by start and end time, with all-day at the top.
| Parameter | Type | Description |
|---|---|---|
| isAllDay | Int | All Hours: 1-YES, 2-NO, if is all hours, then startDate and endDate params is ignored. |
| startTime | Int | The time when it becomes valid, in minute, for example 480 for 8:00 |
| endTime | Int | The time when it becomes validit is expired, in minute, for example 1080 for 18:00 |
| weekDays | JsonArray[Int] | Cycle valid days of the week:1-7, e.g. [1,2,3] |
xxxxxxxxxx{"passageMode": 1,"cyclicConfig":[{"isAllDay":2,"startTime":480,"endTime":1080,"weekDays":[1,2]}],"autoUnlock": 1}