forked from adobe-rnd/aem-boilerplate-xwalk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #564 from WWWPiramalFinanceCOM/whatsapp-auth
wahtsapp auth change
- Loading branch information
Showing
1 changed file
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
}) | ||
|