Sha256: a89c492ff688531e2d589e8c06d9360f4175f400ababd19f09501adf2a561ba2
Contents?: true
Size: 740 Bytes
Versions: 2
Compression:
Stored size: 740 Bytes
Contents
require 'twilio-ruby' # print a list of all phone calls, what phone number each was to/from, and how # much each one cost. # put your Twilio credentials here. you can find your AccountSid and AuthToken # at the top of your account dashboard page located at: # https://www.twilio.com/user/account account_sid = 'ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy' # set up a client client = Twilio::REST::Client.new(account_sid, auth_token) calls = client.calls.page() 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.to_s end calls = calls.next_page end while not calls.nil?
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twilio-ruby-5.0.0.rc26 | examples/print-call-log.rb |
twilio-ruby-5.0.0.rc25 | examples/print-call-log.rb |