Guest User

Untitled

a guest
Feb 12th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.40 KB | None | 0 0
  1. require 'rubygems'
  2. require 'twilio-ruby'
  3.  
  4. @account_sid = 'AC16869b3d3bdebaf60e61e59f10cda7eb'
  5. @auth_token = # your authtoken here
  6.  
  7. # set up a client to talk to the Twilio REST API
  8. @client = Twilio::REST::Client.new(@account_sid, @auth_token)
  9.  
  10.  
  11. @account = @client.account
  12. @message = @account.sms.messages.create({:from => '+14155992671', :to => '+551897913632', :body => 'FUNCIOOOOONA'})
  13. puts @message
Add Comment
Please, Sign In to add comment