docs/getting-started.rst in twilio-ruby-3.11.0 vs docs/getting-started.rst in twilio-ruby-3.11.1
- old
+ new
@@ -17,11 +17,11 @@
# To find these visit https://www.twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXX"
auth_token = "YYYYYYYYYYYYYYYYYY"
@client = Twilio::REST::Client.new account_sid, auth_token
- @call = @client.calls.create({:to => "9991231234", :from => "9991231234",
+ @call = @client.account.calls.create({:to => "9991231234", :from => "9991231234",
:url => "http://twimlets.com/holdmusic?Bucket=com.twilio.music.ambient"})
puts @call.length
puts @call.sid
@@ -36,11 +36,11 @@
account_sid = "ACXXXXXXXXXXXXXXXXX"
auth_token = "YYYYYYYYYYYYYYYYYY"
@client = Twilio::REST::Client.new account_sid, auth_token
- @message = client.messages.create({:to => "+12316851234",
+ @message = @client.account.messages.create({:to => "+12316851234",
:from => "+15555555555",
:body => "Hello there!"})
Send an MMS
@@ -54,10 +54,10 @@
account_sid = "ACXXXXXXXXXXXXXXXXX"
auth_token = "YYYYYYYYYYYYYYYYYY"
@client = Twilio::REST::Client.new account_sid, auth_token
- @message = client.messages.create({:to => "+15558676309",
+ @message = @client.account.messages.create({:to => "+15558676309",
:from => "+15555555555",
:body => "Jenny I need you!",
:media_url => "http://twilio.com/heart.jpg"})