examples.rb in twilio-ruby-0.4.0 vs examples.rb in twilio-ruby-3.0.0
- old
+ new
@@ -56,11 +56,9 @@
# print a particular sms message (one http request)
puts @account.sms.messages.get('SMXXXXXXXX').body
# send an sms
@account.sms.messages.create(:from => '+14159341234', :to => '+16105557069', :body => 'Hey there!')
-# or, an alias
-@account.sms.messages.send('+14159341234', '+16105557069', 'Hey there!')
################ PHONE NUMBERS ################
# get a list of supported country codes (api currently doesn't support this)
@account.available_phone_numbers.list