Skip to content

Commit

Permalink
wahtsapp auth change
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhav sasulkar committed Dec 12, 2024
1 parent a7f6809 commit 5cd0a84
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions blocks/whatsappservice/otppopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,16 +288,19 @@ function getWhatsappServicesApi(mobileNumber) {
}

export function getWhatAPIAuth() {
// const requestObj = {
// requestJson: {
// username: '[email protected]',
// password: 'Success@123$',
// bot_id: '1',
// },
// };
const requestObj = {
requestJson: {
username: '[email protected]',
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);
})
Expand Down

0 comments on commit 5cd0a84

Please sign in to comment.