Class: HasOffersV3::Report

Inherits:
Base
  • Object
show all
Defined in:
lib/hasoffersv3/report.rb

Instance Method Summary collapse

Methods inherited from Base

#client, client, #get_request, #initialize, #make_request, method_missing, #post_request, #requires!, #target, target

Constructor Details

This class inherits a constructor from HasOffersV3::Base

Instance Method Details

#get_conversions(params = {}, &block) ⇒ Object



3
4
5
6
7
# File 'lib/hasoffersv3/report.rb', line 3

def get_conversions(params = {}, &block)
  # TODO: This *should* be a GET request, however, if we use that here we get: "The requested URL's length exceeds the capacity limit for this server."
  #       because the number of affiliate_ids we pass in is too high.
  post_request 'getConversions', params, &block
end

#get_mod_summary_logs(params = {}, &block) ⇒ Object



9
10
11
# File 'lib/hasoffersv3/report.rb', line 9

def get_mod_summary_logs(params = {}, &block)
  get_request 'getModSummaryLogs', params, &block
end

#get_stats(params = {}, &block) ⇒ Object



13
14
15
# File 'lib/hasoffersv3/report.rb', line 13

def get_stats(params = {}, &block)
  post_request 'getStats', params, &block
end