Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of philnash

philnash

philnash has asked 8 questions and find answers to 97 problems.

Stats

2.2k
EtPoint
655
Vote count
8
questions
97
answers

About

Phil is a developer evangelist for Twilio and Authy serving developer communities in Melbourne and all over the world. He is a Ruby and JavaScript developer, blogger, speaker and occasionally a brewer. He can be found hanging out at meetups and conferences, playing with new technologies and APIs or writing open source code.

You can find Phil elsewhere online in the following places:

  • Twitter
  • GitHub
  • The Twilio Blog
  • Phil's blog
  • DEV
  • Twitch

Twilio is a communications platform for your applications to connect your users anywhere, on any device in the medium they want. You can try Twilio for free.

To send your first SMS on Twilio, just follow these steps:

  1. Sign up

  2. Get yourself a Twilio number

  3. Find your Account SID and Auth Token in your account portal

  4. Install the Twilio Ruby gem

    $ gem install twilio-ruby
    
  5. Replace the placeholders in this code with your details

    require "twilio-ruby"
    client = Twilio::REST::Client.new(ACCOUNT_SID, AUTH_TOKEN)
    client.messages.create({
      to: YOUR_MOBILE_NUMBER,
      from: YOUR_TWILIO_NUMBER,
      body: "This is my first SMS message from Twilio!"
    }) 
    
  6. Celebrate! 🎉