Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Tools
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

Sending Text Messages with Twilio

Evan Farrar
Wednesday, November 17, 2010

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.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

2 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

    November 19, 2010 at 2:40 pm

  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

    November 21, 2010 at 6:11 pm

Add New Comment Cancel reply

Your email address will not be published.

Evan Farrar

Evan Farrar
New York

Recent Posts

  • Rails 3.1 Hackfest NYC July 23rd
  • Testing Service Integrations with Bash and cURL
  • FasterCSV, Ruby 1.8, and Character Encodings
Subscribe to Evan's Feed

Author Topics

nyc (2)
sms (1)
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Tools
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >