Get unlock records

https://api.sciener.com/v3/lockRecord/list

Query the records of a lock uploaded to the cloud server, can be filtered by operate time.

Notice: The cloud server only save the records in the last 6 months, earlier records can't be queried.

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
startDateLongNStart time, search by operate time(timestamp in millisecond)
endDateLongNEnd time, search by operate time (timestamp in millisecond)
pageNoIntYPage no, start from 1
pageSizeIntYItems per page, max 200
uidIntNUser ID,for searching the operation records of a certain user
recordTypeIntNRecord type:-5-face、-4-QR code、4-keyboard password、7-IC card、8-fingerprint、55-remote,Default return all records
searchStrStringNSearch key string:face number、QR code number、password、IC card number、fingerprint number、remote Mac
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
listJSONArraylist of records
pageNoIntPage no, start from 1
pageSizeIntItems per page, max 200
pagesIntTotal number of pages
totalIntTotal number of records

The objects in the list

ParameterTypeDescription
recordIdLongRecord ID
lockIdIntLock ID
recordTypeFromLockIntRecord type from lock,refer to: Record type from lock
recordTypeIntRecord type, refer to: Record type from cloud for details
successIntIs success: 0-No, 1-Yes
usernameStringOperator account or username:
APP user account for records of unlocking by APP
password name for records of unlocking by passcodes
Card name for records of unlocking by cards
Fingerprint name for records of unlocking by fingerprints
keyboardPwdStringPasscode, card number or fingerprint number
lockDateLongOperate time on the lock (timestamp in millisecond).
serverDateLongTime of record uploaded to the cloud server (timestamp in millisecond).
subRecordTypeLongWhen recordType=123, network abnormalities may occur due to: 1- Chip abnormal reset; 2- Data transmission failure; 3- Unexpected WiFi disconnection; 4- IP address loss or conflict; 5- Gateway unreachable (please check your router); 6- ISP network timeout; 7- Incorrect WiFi password; 8- Server disconnection; 9- Server connection refused; 10- Network heartbeat timeout; 11- Firewall reset.