- JavaScript
- NodeJS
- ExpressJS
- Twilio Messaging API
-
Create a twilio account
-
Store the credientials in a .env file
BASE_URL=<cowin-api> TWILIO_ACCOUNT=<ACCOUNT SID> TWILIO_TOKEN=<AUTH TOKEN>
-
Go to Programmable Messaging->settings-> whatsapp sandbox settings in twilio.
-
Twilio will provide a whatsapp number to start messaging or you can create your own
-
Fork the repository and clone it to your local machine
-
Install dependencies
npm install
-
Run the app
npm start
-
Expose your local development server to the Internet (eg. using ngrok)
-
Run it in your terminal
-
Paste the URL from ngrok in the whatsapp sandbox settings
-
Start messaging