Get Data of Qr Code

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

Get the detail of a Qr code, the value of "qrCodeContent" can be used to gernerate your own QR code image, if not in valid period, "qrCodeContent" will not be returned.

Please refree to Generate QR code via JavaScript, Other programming language, please Goggle.

1 Request example

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
qrCodeIdIntYQR code ID, generated by Add QR code
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
lockAliasStringLock alias
typeIntQR code type, 1-period, 2-permanent, 4-cyclic
qrCodeNumberIntQR 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.
qrCodeContentStringQR code data for generating QR code image.
nameStringQr code name
startDateLongThe time when it becomes valid, timestamp in milliseconds
endDateLongThe time when it is expired, timestamp in milliseconds
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.
statusIntStatus: 1-normal, 2-invalid or expired, 3-pending

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.