Class: AppleReporter::Reporter

Inherits:
Object
  • Object
show all
Defined in:
lib/apple_reporter/reporter.rb

Direct Known Subclasses

Finance, Sale, Token

Constant Summary collapse

ENDPOINT =
'https://reportingitc-reporter.apple.com/reportservice'
GZIP_MIMETYPE =
'1f8b0800000000000000'.freeze

Instance Method Summary collapse

Constructor Details

#initialize(config = {}) ⇒ Reporter

Usage: reporter = Apple::Reporter::Sale.new(user_id: ‘iscreen’, access_token: ‘secret’, account: ‘myAccount’)



9
10
11
12
13
14
15
16
# File 'lib/apple_reporter/reporter.rb', line 9

def initialize(config = {})
  @config = {
    sales_path: '/sales/v1',
    finance_path: '/finance/v1',
    mode: 'Robot.XML',
    version: '1_0'
  }.merge(config)
end