docs/usage/applications.rst in twilio-ruby-3.11.0 vs docs/usage/applications.rst in twilio-ruby-3.11.1

- old
+ new

@@ -24,11 +24,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 - @client.applications.each do |app| + @client.account.applications.each do |app| puts app.friendly_name end Filtering Applications @@ -43,11 +43,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 - @client.applications.list({:friendly_name => 'FOO'})}.each do |app| + @client.account.applications.list({:friendly_name => 'FOO'})}.each do |app| puts app.sid end Creating an Application @@ -64,11 +64,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 - @application = @client.applications.create({:friendly_name => "My New App"}) + @application = @client.account.applications.create({:friendly_name => "My New App"}) Updating an Application ------------------------ @@ -83,11 +83,11 @@ @client = Twilio::REST::Client.new account_sid, auth_token url = "http://twimlets.com/holdmusic?Bucket=com.twilio.music.ambient" app_sid = 'AP123' # the app you'd like to update - @application = @client.applications.get(app_sid) + @application = @client.account.applications.get(app_sid) @application.update({:voice_url => url}) Deleting an Application ------------------------- @@ -101,8 +101,8 @@ auth_token = "YYYYYYYYYYYYYYYYYY" @client = Twilio::REST::Client.new account_sid, auth_token app_sid = 'AP123' # the app you'd like to delete - @client.applications.get(app_sid) + @client.account.applications.get(app_sid) @application.delete()