Get passage mode configuration of a lock

https://api.sciener.com/v3/lock/getPassageModeConfiguration

1 Request example

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
lockIdIntYLock ID, generated by Lock init
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
passageModeIntPassage mode: 1-on, 2-off
cyclicConfigJsonArrayCycle time setting
autoUnlockIntAuto 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.

ParameterTypeDescription
isAllDayIntAll Hours: 1-YES, 2-NO, if is all hours, then startDate and endDate params is ignored.
startTimeIntThe time when it becomes valid, in minute, for example 480 for 8:00
endTimeIntThe time when it becomes validit is expired, in minute, for example 1080 for 18:00
weekDaysJsonArray[Int]Cycle valid days of the week:1-7, e.g. [1,2,3]