docs/usage/applications.rst in twilio-ruby-3.12.1 vs docs/usage/applications.rst in twilio-ruby-3.12.2

- 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.account.applications.each do |app| + @client.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.account.applications.list({:friendly_name => 'FOO'})}.each do |app| + @client.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.account.applications.create({:friendly_name => "My New App"}) + @application = @client.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.account.applications.get(app_sid) + @application = @client.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.account.applications.get(app_sid) + @client.applications.get(app_sid) @application.delete()