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 +4 -4
- data/README.md +2 -2
- data/lib/apple_reporter/reporter.rb +2 -2
- data/lib/apple_reporter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa91e538a8469cc35b2bc53534febcc12944b9af
|
4
|
+
data.tar.gz: df6b6655e7a3876fd5ce675961c78dfa72f149a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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',
|
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',
|
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',
|
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
|
-
|
26
|
+
accesstoken: @config[:access_token],
|
27
27
|
version: @config[:version],
|
28
28
|
mode: @config[:mode],
|
29
29
|
queryInput: "[p=Reporter.properties, #{params}]"
|
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.
|
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-
|
11
|
+
date: 2017-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|