Generate a QR code to authenticate and login to the WhatsApp server
cURL
curl --request GET \ --url https://api.example.com/app/login \ --header 'Authorization: <authorization>'
{ "500": {}, "code": "<string>", "message": "<string>", "results": { "qr_duration": 123, "qr_link": "<string>" } }
SUCCESS
Success
30
http://localhost:3000/statics/images/qrcode/scan-qr-b0b7bb43-9a22-455a-814f-5a225c743310.png
curl -X GET 'http://localhost:3000/app/login' \ -u 'username:password' \ -H 'X-Device-Id: my-device-id'
{ "code": "SUCCESS", "message": "Success", "results": { "qr_duration": 30, "qr_link": "http://localhost:3000/statics/images/qrcode/scan-qr-b0b7bb43-9a22-455a-814f-5a225c743310.png" } }
{ "code": "INTERNAL_SERVER_ERROR", "message": "you are not logged in", "results": null }
qr_duration