Recommend a review of Twilio documentation here:
https://www.twilio.com/docs/guides/how-to-send-sms-messages-in-ruby
There are some changes to the Ruby Helper Library 5.x. (Please note that the old version 4.x will only be supported until 10/15/17 - see Disclaimer).
Using 5.x SMS can be sent as follows:
@client = Twilio::REST::Client.new(account_sid, auth_token)
@message = @client.messages.create(
from: '+15017250604',
to: '+15558675309',
body: 'This is the ship that made the Kessel Run in fourteen parsecs?'
)
- v5.2.1.