Company
Date Published
Author
Brent Schooley
Word count
350
Language
English
Hacker News points
None

Summary

To send an SMS with Ruby using Twilio, you need a Twilio account and an SMS-enabled phone number. You can install the twilio-ruby gem and create a REST client object using your credentials stored in system environment variables. Then, use the client to send an SMS message from your Twilio number to your cell phone. The process is made simple by providing a helper library that makes it easy to make an HTTP POST request to the /Messages resource in the Twilio API. After running the script, you should receive your text message in just a few seconds.