/twilio-test

Testing out the Twilio REST API using node.js and express. https://www.twilio.com/docs/tutorials/walkthrough/server-notifications/node/express#1

Primary LanguageJavaScript

Twilio Test with Node.js and Express

This app uses the Twilio REST API to send SMS messages to my cell.

To install dependencies

[code] npm install [/code]

To run

[code] nodemon app.js [/code]

How to use

  • config.js is where the Twilio tokens are kept, I set the tokens as env variables in my ~./bash-profile
  • Add your own cell number to administrators.json
  • (Number must be verified inside Twilio account since this is a trial)
  • Mine is verified
  • Add new notification methods to twilioNotifications.js
  • Call these methods in app.js

Link to tutorial