Sha256: 47a8d639f03341ccb4eefb4febd426c5903ec08b48bb66297a44a75abb121367

Contents?: true

Size: 302 Bytes

Versions: 2

Compression:

Stored size: 302 Bytes

Contents

$:.unshift(File.expand_path(File.join(File.dirname(__FILE__),"..", "lib")))
require 'ctm'
require 'set'

access_token = CTM::Auth.authenticate(ENV['CTM_TOKEN'], ENV['CTM_SECRET'])
account = access_token.accounts.first

call =  account.calls.get(692389)

call.record_sale({value:100, conversion: true})

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ctm-0.4.4 examples/record_sale.rb
ctm-0.4.2 examples/record_sale.rb