examples/print_call_log.rb in twilio-ruby-5.6.3 vs examples/print_call_log.rb in twilio-ruby-5.6.4
- old
+ new
@@ -10,10 +10,10 @@
auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
# set up a client
client = Twilio::REST::Client.new(account_sid, auth_token)
-calls = client.calls.page
+calls = client.calls.list
loop do
calls.each do |call|
price = call.price || '0.00' # since apparently prices can be nil...
puts call.sid + "\t" + call.from + "\t" + call.to + "\t" + price.to_s