From 5cd0a84383c6540e4143318888ef318ff97ba9a1 Mon Sep 17 00:00:00 2001 From: Vaibhav sasulkar Date: Thu, 12 Dec 2024 20:17:02 +0530 Subject: [PATCH] wahtsapp auth change --- blocks/whatsappservice/otppopup.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/blocks/whatsappservice/otppopup.js b/blocks/whatsappservice/otppopup.js index 219340d52..decf388e2 100644 --- a/blocks/whatsappservice/otppopup.js +++ b/blocks/whatsappservice/otppopup.js @@ -288,16 +288,19 @@ function getWhatsappServicesApi(mobileNumber) { } export function getWhatAPIAuth() { + // const requestObj = { + // requestJson: { + // username: 'test.kumar@getcogno.ai', + // password: 'Success@123$', + // bot_id: '1', + // }, + // }; const requestObj = { - requestJson: { - username: 'test.kumar@getcogno.ai', - password: 'Success@123$', - bot_id: '1', - }, - }; + requestJson: {} + } return new Promise((resolve, reject) => { // fetchAPI('POST', getWhatAPIAuthURL, requestObj) - fetchAPI('GET', getWhatAPIAuthURL) + fetchAPI('POST', getWhatAPIAuthURL, requestObj) .then((response) => { resolve(response.responseJson); })