examples/print-call-log.rb in twilio-ruby-3.12.1 vs examples/print-call-log.rb in twilio-ruby-3.12.2
- old
+ new
@@ -11,10 +11,10 @@
auth_token = '62ea81de3a5b414154eb263595357c69'
# set up a client
client = Twilio::REST::Client.new(account_sid, auth_token)
-calls = client.account.calls.list
+calls = client.calls.list
begin
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