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:
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:
Sign up
Get yourself a Twilio number
Find your Account SID and Auth Token in your account portal
Install the Twilio Ruby gem
$ gem install twilio-ruby
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!"
})
Celebrate! 🎉