Please see the docs for Twilio Notify to try out notifications.
Tag users and send group notifications with one request. Twilio alerts everyone that matches the specified tags.
This project is build using Express web framework.
First clone this repository and cd
into it.
$ git clone git@github.com:TwilioDevEd/notifier-node.git
$ cd notifier-node
Install dependencies.
$ npm install
Copy the .env.example
file to .env
, and edit it including your credentials
for the Twilio API (found at https://www.twilio.com/console).
You will also need a Twilio Number.
You can find your TWILIO_NOTIFICATION_SERVICE_SID
in your Twilio console under
services.
Run source .env
to export the environment variables.
Make sure the tests succeed.
$ npm test
Start the server.
$ npm start
Check it out at http://localhost:3000.
Text your Twilio number "help me". e.g.
Help me
Receive a message with instructions.
Text your Twilio number the name of the tag that you want to subscribe to. e.g.
Rogue One
Note: The available movies are "Han Solo Spinoff", "Rogue One", and "Episode VIII".
Receive a confirmation message.
Text your Twilio number with "unsub tag". e.g.
unsub Rogue One
Receive a confirmation message.