Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

LABS
Sending Text Messages with Twilio

I recently got the chance to use Twilio to connect college students to other people with their interests for Red Rover (a client of Pivotal). I’ve done SMS integrations over email before and considered it here; MMS2R is nice for that (and free of carrier charges) but Twilio sends and receives using a real phone number. Using Pat Nakajima’s sms-rb I was able to quickly send out text messages:

require 'sms-rb'
SMS.twilio_id = "DE4DB33F"
SMS.twilio_secret = "ASDFGHJK123456"
SMS.twilio_phone = "+15555555555"
SMS.text("eat more cake", :to => "+13121234567")

By configuring Twilio to hit a URL in your rails app you can also receive messages easily:

class TextMessageParrotController < ApplicationController
  def parrot
    SMS.text("*SQUAWK* #{params[:body]} *SQUAWK*", :to => params[:from])
  end
end

And it’s as simple as that. Don’t hesitate to try out Twilio. They give you an ample amount of SMS credit when you sign up — more than enough test messages to bootstrap any sort of SMS integration in your Rails application. It’s a lot of fun!

Red Rover, by the way, is looking to hire some developers. It’s a great company that is passionate about engaging students with their university and each other. Their technologies at work include Rails, Solr, rspec, SMS, hadoop, and RSS. But experience with Rails, knowledge of test driven development and great communication are what they are really hoping to have. I’d love to see folks in the New York City area who can come pair with us at pivotal, but working remotely is certainly possible too. Just shoot a mail to kevin < at > redroverhq.com if you are interested.

Comments
  1. Lisa Weitekamp says:

    Hey Mark,

    Thanks for the great shoutout! We’d love to send you a t-shirt for the great work you’ve done with your app. Could you email me your address and shirt size?

    Thanks!
    Lisa

  2. Danielle Morrill says:

    If reading this post inspire you to get started with Twilio email us at help@twilio.com and we’ll upgrade your account for free and you can keep the $30 trial credit

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *