{{ url('/') }}/generate-qr
| Parameter | Type | Required | Description |
|---|---|---|---|
device |
string | Yes | Number of your device |
api_key |
string | Yes | API Key |
force |
boolean | No | If true, when device is not exist, it will be created |
{
"status": "processing",
"message": "Processing"
}
// If processing, you need to hit the endpoint again to get the result
// Result will be like this
{
"status": false,
"qrcode": "data:image/png;base64,...",
"message": "Please scan QR code"
}
{
"status": false,
"msg": "Invalid data!",
"errors": {} // list of errors
}