Search for and buy Twilio phone numbers with Ruby

You’re in a hurry and you need a new phone number! All you have is your Twilio Account SID, Auth Token and a command line with Ruby installed. What do you do? Don’t worry, just grab your keyboard, open your terminal and you’ll have that new number in no time. Let’s buy a phone number Make sure you have the twilio-ruby gem installed. This will make things a lot… Read More

Curing the Post MAGFest Blues with Twilio, Ruby, Sinatra and SEGA music

MAGFest is a video game music festival with just about everything fun that you can imagine: a giant arcade, amazing video game cover bands, tons of nerdy merchandise and a fantastic community. Going back to normal life can be a bit of a bummer after partying with some best friends you only see a few times a year. Based on a suggestion from my pals at theshizz, I built a phone-based… Read More

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