List QR code of a lock

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

List all QR codes added to a lock.

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
pageNoIntYPage no, start from 1
pageSizeIntYItems per page, max 200
dateLongYCurrent time (timestamp in millisecond)
nameStringNQRcode‘s name

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
qrCodeIdIntQR code id
lockIdIntLock ID
typeIntQR code type, 1-period, 2-permanent, 4-cyclic
qrCodeNumberStringQR code number: the unique number of QR code in a lock. It's will be contained in the unlocking records for identifing which code unlock the lock.
nameStringQr code name
startDateLongThe time when it becomes valid (timestamp in millisecond)
endDateLongThe time when it is expired (timestamp in millisecond)
refreshTimeIntQR code refresh time, time in minutes
cyclicConfigJSONArrayRecurring time period, the valid time period of each week day must be the same, for example:
[{"weekDay":1, "startTime":480,"endTime":1080},{"weekDay":2, "startTime":480,"endTime":1080}] for valid from 8:00 to 18:00 in Monday and Tuesday.
createDateLongCreate time (timestamp in millisecond)
statusIntStatus: 1-normal, 2-invalid or expired, 3-pending
creatorStringcreator
linkIntThe H5 page URL displaying QR code
qrCodeVersionIntQR code versions:
1- Random cloud-based QR code
3- Custom QR code

cyclicConfig:

ParameterTypeDescription
startTimeIntStart time of cyclic, in minutes, for example 480 for 8:00
endTimeIntEnd time of cyclic, in minutes, for example 1080 for 18:00
weekDayIntWeek day, 1-7, 1 for monday and 7 for sunday.