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.
xxxxxxxxxx11curl --location -g --request GET 'https://api.sciener.com/v3/qrCode/getData?clientId=fd2ff35ee3d8424c8665c07b7b9a7f45&accessToken=780f7671b6e6be3010d9787f19207aca&qrCodeId=34242&date=1625025703000'| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | client_id from Create application |
| accessToken | String | Y | Access token,refer to: Get access token |
| qrCodeId | Int | Y | QR code ID, generated by Add QR code |
| date | Long | Y | Current time (timestamp in millisecond) |
| Parameter | Type | Description |
|---|---|---|
| lockAlias | String | Lock alias |
| type | Int | QR code type, 1-period, 2-permanent, 4-cyclic |
| qrCodeNumber | Int | QR 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. |
| qrCodeContent | String | QR code data for generating QR code image. |
| name | String | Qr code name |
| startDate | Long | The time when it becomes valid, timestamp in milliseconds |
| endDate | Long | The time when it is expired, timestamp in milliseconds |
| refreshTime | Int | QR code refresh time, time in minutes |
| cyclicConfig | JSONArray | Recurring 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. |
| status | Int | Status: 1-normal, 2-invalid or expired, 3-pending |
cyclicConfig:
| Parameter | Type | Description |
|---|---|---|
| startTime | Int | Start time of cyclic, in minutes, for example 480 for 8:00 |
| endTime | Int | End time of cyclic, in minutes, for example 1080 for 18:00 |
| weekDay | Int | Week day, 1-7, 1 for monday and 7 for sunday. |
xxxxxxxxxx101{2"lockAlias": "Front door lock",3"type": 1,4"qrCodeNumber": 2,5"qrCodeContent": "xxxxxxxxxxxxxxx",6"name": "QR code for alexa",7"startDate": 1625025703000,8"endDate": 1665025703000,9"status": 110}