apple_reporter 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ed43e7a7f1538a77ee1fb572cb708b3403532ab
4
- data.tar.gz: 12e363659fb1f8bad6ba6c5a2d59eb1c89d58a0c
3
+ metadata.gz: fa91e538a8469cc35b2bc53534febcc12944b9af
4
+ data.tar.gz: df6b6655e7a3876fd5ce675961c78dfa72f149a7
5
5
  SHA512:
6
- metadata.gz: 39ae8a9493f32a85c3fdb913564554c768e67505a1d3f9538045cb7ef38c311e81fd7d986aa8bd1a717eccc4ebb73c3eafc5234eb0880050c8f32f1809afe0fe
7
- data.tar.gz: a208e8362a4586eb5d99a2bd4a7efe16ca8bec96acb6b1cabe4b1c3117e2d8b6e3d951c927a9ede0ea4528da5a63eac35c214ab119aaf2d60cab37ba356c1133
6
+ metadata.gz: '09568ebf9a69689919895cd4abb828174989418d7c2de0095ef9dc39c02c16b959a25efbfc7e04379ccacb74e367a4cf8412e3483655b543791379d8d59310e5'
7
+ data.tar.gz: 43c0e8a9c184b1be2bf1429600855e9394b5f814e813b3d82fc64beeceb70bd30c7e11fcc8b638cce7eff056cc16c94c6f4a579912baacf648c6701af809739c
data/README.md CHANGED
@@ -31,7 +31,7 @@ Or install it yourself as:
31
31
  - getReport
32
32
 
33
33
  ```
34
- reporter = AppleReporter::Sale.new(user_id: 'your user id', password: 'your password')
34
+ reporter = AppleReporter::Sale.new(user_id: 'your user id', access_token: 'your access token')
35
35
  report = reporter.getReport(
36
36
  {
37
37
  vendor_number: 'your vender id',
@@ -46,7 +46,7 @@ report = reporter.getReport(
46
46
 
47
47
  - getReport
48
48
  ```
49
- reporter = AppleReporter::Finance.new(user_id: 'your user id', password: 'your password')
49
+ reporter = AppleReporter::Finance.new(user_id: 'your user id', access_token: 'your access token')
50
50
  report = reporter.getReport(
51
51
  {
52
52
  vendor_number: 'your vender id',
@@ -4,7 +4,7 @@ module AppleReporter
4
4
 
5
5
  #
6
6
  # Usage:
7
- # reporter = Apple::Reporter::Sale.new(user_id: 'iscreen', password: 'secret', account: 'myAccount')
7
+ # reporter = Apple::Reporter::Sale.new(user_id: 'iscreen', access_token: 'secret', account: 'myAccount')
8
8
  #
9
9
  def initialize(config = {})
10
10
  @config = {
@@ -23,7 +23,7 @@ module AppleReporter
23
23
  }
24
24
  payload = {
25
25
  userid: @config[:user_id],
26
- password: @config[:password],
26
+ accesstoken: @config[:access_token],
27
27
  version: @config[:version],
28
28
  mode: @config[:mode],
29
29
  queryInput: "[p=Reporter.properties, #{params}]"
@@ -1,3 +1,3 @@
1
1
  module AppleReporter
2
- VERSION = "0.1.2"
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apple_reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Lin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-15 00:00:00.000000000 Z
11
+ date: 2017-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client