Get passage mode configuration of a lock
https://cnapi.sciener.com/v3/lock/getPassageModeConfig
1 Request example
javascript
curl --location --request GET 'https://cnapi.sciener.com/v3/lock/getPassageModeConfig?clientId=4773aa036f7f49c68d876bb4be85c80c&accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f&lockId=3827&date=1626674054000'2 Request parameters
| 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) |
3 Response and example
| Parameter | Type | Description |
|---|---|---|
| passageMode | Int | Passage mode: 1-on, 2-off |
| startDate | Int | Start time of cyclic, in minutes, for example 480 for 8:00 |
| endDate | Int | End time of cyclic, in minutes, for example 1080 for 18:00 |
| isAllDay | Int | All Hours: 1-YES, 2-NO, if is all hours, then startDate and endDate params is ignored. |
| weekDays | JsonArray[Int] | Week days, for example: [1,7], for monday and sunday. |
| autoUnlock | Int | Auto unlock:1-on, 2-off, set to 1 then the lock will auto unlock at the time the passage mode start |
{
"passageMode": 1,
"startDate": 480,
"endDate": 1080,
"isAllDay": 2,
"weekDays": [1,2,3],
"autoUnlock": 1
}