Hitchhiker’s Guide to Twilio Programmable Voice

The Programmable Voice Guide is jam packed with volumes of amazing information about Twilio Programmable Voice.  In this post I’m going to introduce you to three topics that are personal favorites: Getting input during a call, Recording calls and Modifying in-progress calls Let’s go! Gather Input Phone calls don’t have to be a one-way conversation and the Guide can show you how. By using the <Gather> TwiML verb you can… Read More

Send SMS messages like emails in Rails with Textris

The Twilio Ruby helper library makes sending SMS messages with Ruby really easy. In fact, it’s as simple as:

But in the context of a web application this just isn’t very “Rails” is it? Are we mixing views and controllers? Where’s the separation of concerns? What about localisation? If you’ve thought this, or even if you’re just interested in better ways to send SMS messages in your… Read More

How to Send an SMS With Ruby Using Twilio

Here’s all the code you need to send an SMS with Ruby using Twilio:

If you’d like a short explanation about how this works, check out this short video: How About a Walkthrough? The first thing we need for this to work is a Twilio account. Sign up for your free trial account here. We also need an SMS-enabled phone number. You can search for and… Read More

Build a Fantasy Football Hotline with Ruby and Twilio Voice

A phone was once the fastest way for a sports fan to get their news. In the 70s, 80s and 90s a business called Sports Phone served as a fan’s lifeline for up-to-the minute sports reports. Grantland recently ran this fascinating piece on the rise and fall of Sports Phone: The concept couldn’t be simpler: You call a number and hear a minute-long message with the latest scores and sports… Read More

A Simple Way to Receive an SMS with Ruby, Sinatra, and Twilio

Here’s all the code you need to receive an SMS message and to send a reply using Ruby, Sinatra, and Twilio:

If you’d like some explanation on how that code works, watch this short video, or just keep reading. When someone texts your Twilio number, Twilio makes an HTTP request to your app with details about the SMS passed in the request parameters. In this post, we’ll… Read More

It’s getting easier to get sentimental about SMS with Twilio Add-ons

Twilio Add-ons is a marketplace for 3rd party services that you can use to add superpowers to your Twilio applications. I’m a huge fan of Add-ons because they handle tasks we would otherwise need custom code for in our applications. We can also streamline existing applications by replacing our code with an Add-on. Last year I wrote about sentiment analysis of SMS messages using Twilio, Bluemix and… Read More

Real Time Rails 4: Using Server-Sent Events with Authy OneTouch

Server-Sent Events (SSE) are real-time events sent from a server and received by a browser, perfect for updating the front end when a server receives a webhook. We’re going to look at how to use SSE to implement Authy OneTouch using Rails 4. Our end result should look a bit like this: Authy OneTouch Two factor authentication usually means copying a bunch of numbers from your phone to… Read More

Calling Rails 5: Getting started with Twilio on Rails

I’m sad I missed RailsConf 2016 in Kansas City but it got me thinking about Rails again. Rails 5 RaceCar 1 was just released and there is a release candidate around the corner, so it’s about time to see how it plays with Twilio. Let’s build a quick Twilio application with Rails 5. You’ll need Ruby installed, a Twilio account and a Twilio number. If you don’t already… Read More