Closed arifwidianto08 closed 2 years ago
Permisi Mas @ariaseta , minta tolong direview ya Mas, makasih.
{{url}}/api/whatsapp/qr
to Get QR Image URL and Bot Connection Status.qrcode
to convert QR Token from the Baileys to QR Code Image.https://watch.screencastify.com/v/0Tfv7uT2u33SaIlGQDpF
cc Mas @ariaseta
Minta tolong direview kembali ya Mas @ariaseta proposalnya, terimakasih.
GET
QR Image URLURL : {{url}}/api/whatsapp/qr
Response :
{
"data": {
"qr_image_url": "http://localhost:3000/qr/qr.png"
},
"meta": {
"message": "Your bot is offline.",
"statusCode": 200
}
}
{
"meta": {
"message": "Your phone is online.",
"statusCode": 200
},
"data": {
"qr_image_url": null
}
}
GET
Status ( Bot Connection Status )URL : {{url}}/api/whatsapp/status
Response :
{
"data": {
"status": "OFFLINE"
},
"meta": {
"message": "Your bot is online.",
"statusCode": 200
}
}
{
"data": {
"status": "ONLINE"
},
"meta": {
"message": "Your bot is online.",
"statusCode": 200
}
}
cc Mas @ariaseta
Description
Convert the QR response from the Baileys to an image and create a new endpoint to Get it.
Proposal
Acceptance Criteria
Routes
A. QR
1.
GET
QR Image URLURL :
{{url}}/api/whatsapp/qr
Response :
a. Sucess - Disconnected
b. Sucess - Online
A. Connection Status
1.
GET
Connection StatusURL :
{{url}}/api/whatsapp/status
Response :
a. Sucess - Disconnected
b. Sucess - Online
References