Get Working Mode

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

During working hours: The lock can be unlocked using ekeys, passwords, and other methods.

During non-working hours: The lock automatically enters freeze mode, allowing only mechanical keys to be used, and all other unlocking methods are disabled.

1 Request example

POST, ContentType:application/x-www-form-urlencoded

2 Request parameters

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

3 Response and example

ParameterTypeDescription
workingModeIntWorking status, 1: working all day, 2: not working all day, 3: custom
cyclicConfigStringWorking hours

cyclicConfig中的参数:

ParameterTypeDescription
isAllDayIntWhether it is always open all day: 1-Yes, 2-No
startTimeIntStart time in minutes, e.g. 480 means 8:00
endTimeIntEnd time in minutes, e.g. 1080 means 18:00
weekDaysJsonArray[Int]Cycle validity period: 1-7, such as [1,2,3]