examples/examples.rb in twilio-ruby-3.11.4 vs examples/examples.rb in twilio-ruby-3.11.5
- old
+ new
@@ -79,9 +79,12 @@
@account.incoming_phone_numbers.create(:phone_number => @numbers[0].phone_number)
# update an existing phone number's voice url
@account.incoming_phone_numbers.get('PNdba508c5616a7f5e141789f44f022cc3').update({:voice_url => 'http://example.com/voice'})
+# decommission an existing phone number
+numbers = @account.incoming_phone_numbers.list(:friendly_name => 'A Fabulous Friendly Name')
+numbers[0].delete
################ CONFERENCES ################
# get a particular conference's participants object and stash it
@participants = @account.conferences.get('CFbbe46ff1274e283f7e3ac1df0072ab39').participants