This weekend at Midsouth Tech Corner I decided to see if I could write a program to send myself an SMS using Twilio. I tried Coffeescript/Node.js for a bit but got bogged down in my own lack of knowledge about sending an https POST with specific parameters. The node libraries for Twilio aren’t fully baked either, though I’m sure they work with a bit of effort. Later that evening I thought to look up the official Python library and things worked great from that point on. Special thanks to Ben Hamilton for helping me figure out the basics of Twilio by letting me look over his .NET app MealARoni.
The Twilio Python library is a pleasure to use. It wraps their RESTful API in a nicely designed package, making it only a few lines to send yourself messages.
Here’s the script I wrote on my VPS to allow me to send myself texts from the command line. Note that you’ll need a Twilio account and phone number ($1/mo. for the number, 1¢ per text).
Related articles
- How to Send Twilio SMS Messages Using Python on Google App Engine (twilio.com)
- Announcing New Official Twilio Helper Libraries for PHP, Ruby, Python, .NET and Java (twilio.com)
- Plivo: An Open Source Alternative to Tropo and Twilio (readwriteweb.com)




Comments are closed.