Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Sm1pleScr1pt committed Dec 13, 2024
2 parents a01d056 + 303c465 commit 2b02557
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 2b02557

Please sign in to comment.