Skip to content

Commit

Permalink
Merge pull request #564 from WWWPiramalFinanceCOM/whatsapp-auth
Browse files Browse the repository at this point in the history
 wahtsapp auth change
  • Loading branch information
VaibhavSasulkar authored Dec 12, 2024
2 parents a7f6809 + 5cd0a84 commit 303c465
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 303c465

Please sign in to comment.