To connect your Custom App with WAPush, you need to follow the easy steps below:
Step 1
First of all, you will need to install SyncMate extension from chrome store or click on SyncMate extension & need to add WhatsApp configuration, for refrence go to Configuration guide.
Step 2
Navigate to products page or click on https://app.assistro.co/product and click on Applications button of SyncMate X WAPush card.
Step 3
After going to products page, click on Settings button of Custom card.
Step 4
You will need to add an application by clicking on Add Application button.
Step 5
A popup will be visible with a form, You will need to fill the Application name and Select Configuration in the form.
Step 6
After submitting the form, you need to go to the Settings where you will get the API key.
Step 7
You will now be able to see the API key, and can regenerate the new API key if you want.
Step 8
You will need to make a post request on :
https://app.assistro.co/api/v1/wapush
The parameters that are required to make a post request on the above URL:
headers = {
"Authorization": "Bearer {bearer_token}",
"Content-Type": "application/json"
}
The API key, which is generated in the Settings page, will be passed in the authorization field.
Request body = {
"wts_phone_number": 919876543210,
"msgs": [
{
"number" : 919998887776,
"message" : "Hello, good morning !"
},
{
"number" : 919988776655,
"message" : "Have a good day"
}
]
}