Sync the ekey data
https://api.sciener.com/v3/key/syncData
If you don't assign any value to the parameter lastUpdateDate, you will get a list of all ekeys
If you assign a time to the parameter lastUpdateDate, you will get a list of ekeys which have been updated since lastUpdateDate.
1. Description
Name Type Required Description
clientId String Y The app_id which is assigned by system when you create an application
accessToken String Y Access token
lastUpdateDate Long N Last time you sync the ekey data.All ekeys will be returned if you not assign any time to it.
date Long Y Current time (timestamp in millisecond)
2.Response
Parameter Type Description
keyList JsonArray ekey list
lastUpdateDate Long The time of current request to sync ekey data. You can assign it to parameter lastUpdateDate next time when you want to sync ekey

The objects of the returning data
Parameter Type Description
keyId Int ekey ID
lockId Int Lock ID
userType String ekey type:110301-admin ekey, 110302-common user ekey
keyStatus String ekey status, reference:/doc/api/keyStatus
lockName String Lock name
lockAlias String Lock alias
lockKey String The key data which will be used to unlock
lockMac String Lock MAC
lockFlagPos Int The flag which will be used to check the validity of the ekey
adminPwd String admin code, which only belongs to the admin ekey, will be used to verify the admin permission.
noKeyPwd String Super passcode, which only belongs to the admin ekey, can be entered on the keypad to unlock
deletePwd String Erasing passcode,which belongs to old locks, has been abandoned. Please don't use it.
electricQuantity Int Lock battery
aesKeyStr String AES encryption key
lockVersion JsonObject Lock version
startDate Long The time when it becomes valid, timestamp in milliseconds
endDate Long The time when it is expired, timestamp in milliseconds
timezoneRawOffset Long The offset between your time zone and UTC, in millisecond
remarks String Comment
keyRight Int Is key authorized:0-NO,1-yes
keyboardPwdVersion Int Passcode version: 0、1、2、3、4
specialValue Int characteristic value. it is used to indicate what kinds of feature do a lock support.
remoteEnable Int Is remote unlock enabled: 1-yes,2-no

Parameter in lockVersion object
Parameter Type Description
protocolType Int Protocol type
protocolVersion Int Protocol version
scene Int Scene
groupId Int ClientID
orgId Int ClientSubID