Get all created passcodes of a lock

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

List all passcodes of a lock, including random passcodes and custom passcodes.

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
searchStrStringNSearch keywords, fuzzy search by passcode name or precise match by passcode
pageNoIntYPage no, start from 1
pageSizeIntYItems per page, max 200
orderByIntYSort by: 0-by name, 1-reverse order by time, 2-reverse order by name
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
keyboardPwdIdIntPasscode ID
lockIdIntLock ID, generated by Lock init
keyboardPwdStringPasscode
keyboardPwdNameStringPasscode name
keyboardPwdTypeIntPasscode type
startDateLongThe time when it becomes valid (timestamp in millisecond)
endDateLongThe time when it is expired (timestamp in millisecond)
sendDateLongSend time (timestamp in millisecond)
isCustomIntIs custom or not: 1-yes, 0-no
senderUsernameStringThe sender's username