Steps to setup twilio whatsapp sandbox
-
Enter the details in the config file located at the root of the repo after the sandbox setup.
-
Refer to the image "How to get twilio credentials.png" to add "accountSid", "authToken".
-
Once the twilio setup is done, add the pin code and dates you want to get information for on different whatsapp numbers registered in the sandbox.
-
Make sure you send the message to sandbox from the numbers you configure and add the sandbox number to your contacts.
-
Dont add too many dates and numbers twilio will rate limit the requests otherwise.
Steps to Run the script
-
The dependencies for the script can be donwloaded using
npm install
-
The script can be run using
node index.js
"WhatsAppScreenShot.jpg" image shows the whatsapp messages received.