Get lock details

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

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

Only lock's administrator is allowed to get lock details. Note: If the lock does not support certain feature, or has never been configured, the configuration information may not appear in this list.

ParameterTypeDescription
lockIdIntLock ID
lockNameStringLock name
lockAliasStringLock alias
lockMacStringLock MAC
noKeyPwdStringSuper passcode, which only belongs to the admin ekey, can be entered on the keypad to unlock
electricQuantityIntLock battery
featureValueStringcharacteristic value. it is used to indicate what kinds of feature do a lock support.
timezoneRawOffsetLongThe offset between your time zone and UTC, in millisecond
modelNumStringProduct model (for firmware update)
hardwareRevisionStringHardware version (for firmware update)
firmwareRevisionStringFirmware version (for firmware update)
autoLockTimeIntAuto lock time (in seconds), -1 for disable auto lock
lockSoundIntLock sound: 0-unknow、1-on, 2-off
soundVolumeIntSound Volume:1-5
hasGatewayIntConnected to a gateway:0-false、1-true
privacyLockIntPrivacy lock:0-unknow、1-on, 2-off
tamperAlertIntTamper alert:0-unknow、1-on, 2-off
resetButtonIntReset button:0-unknow、1-on, 2-off
openDirectionIntOpen direction:0-unknow、1-left open、2-right open
passageModeIntPassage mode:1-enable、2-disable
passageModeAutoUnlockIntPassagemode auto unlock:1-on, 2-off, set to 1 then the lock will auto unlock at the time the passage mode start
dateLongLock init time (timestamp in millisecond)