Sha256: da33431aaf1757e3fcfaf0f8686bdb53d58c21e52560b4dcbc83086ad7008281
Contents?: true
Size: 769 Bytes
Versions: 13
Compression:
Stored size: 769 Bytes
Contents
require 'test_helper' require 'epom/analytic' class AnalyticTest < ActiveSupport::TestCase test "truth" do assert_kind_of Class, Epom::Analytic end test "analytics" do timestamp = Time.now.to_i * 1000 url_params = { :format => 'CSV', :login => ENV['username'], :timestamp => timestamp, :hash => Epom.create_hash(Epom.create_hash(ENV['password']), timestamp) } body_params = { :displayIds => true, :range => 'CURRENT_MONTH', :groupBy => 'ADVERTISER,CAMPAIGN,BANNER,SITE,ZONE,PLACEMENT', # :eqLong => {'ADVERTISER' => ENV['advertiser_id'], 'SITE' => ENV['site_id']} } response = Epom::Analytic.analytics(url_params, body_params) assert_not_instance_of Fixnum, response end end
Version data entries
13 entries across 13 versions & 1 rubygems