Closed arifwidianto08 closed 2 years ago
Convert the QR response from the Baileys to an image and create a new endpoint to Get it.
GET
URL : {{base_url}}/otp
{{base_url}}/otp
Response :
{ "meta": { "message": "Your phone is still disconnected.", "statusCode": 200 }, "data": { "qr_image_url": null, "status": "disconnected" } }
{ "meta": { "message": "Your phone is connected.", "statusCode": 200 }, "data": { "qr_image_url": "https://warung-io.s3.ap-southeast-1.amazonaws.com/qr.svg", "status": "connected" } }
Description
Convert the QR response from the Baileys to an image and create a new endpoint to Get it.
Proposal
Acceptance Criteria
Routes
A. OTP
1.
GET
OTP / Connection StatusURL :
{{base_url}}/otp
Response :
a. Sucess - Disconnected
b. Sucess - Connected
References