sales_client 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/analytics/client.rb +10 -2
- data/lib/sales_client/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: 55d31037c37706e6aeb91aed4e79fc93130301a5
|
4
|
+
data.tar.gz: a531d022a0d4ba68af012e76a1893def5fbec779
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ebaf2be98bb309eb37f91a9fffa2aa006e0085b55f07a5627c74fc19eba9dc23f6c481f42c9fe15e21417676557848e7ba10e8594035fea2916e3908fc93266
|
7
|
+
data.tar.gz: 7a45e9799fef3219455c67542c31e0a637cf094138aac5fc16000d7e84f92ddb88d5ba7dea48e82443bb0e3698859419fb07740bc6c5357391f1e0d33d2a2295
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# Itunes Sales & Analytics Client
|
2
2
|
|
3
3
|
A [fastlane](https://github.com/fastlane/fastlane) extension gem to get apps sales and analytics reports from itunes connect.
|
4
4
|
Get multiple apps reports with single request.
|
@@ -9,7 +9,7 @@ Add this lines to your application's Gemfile:
|
|
9
9
|
|
10
10
|
```ruby
|
11
11
|
gem 'fastlane'
|
12
|
-
gem 'sales_client'
|
12
|
+
gem 'sales_client', '~> 0.3.0'
|
13
13
|
```
|
14
14
|
|
15
15
|
And then execute:
|
data/lib/analytics/client.rb
CHANGED
@@ -7,7 +7,7 @@ module Spaceship
|
|
7
7
|
#####################################################
|
8
8
|
|
9
9
|
def self.hostname
|
10
|
-
"https://
|
10
|
+
"https://analytics.itunes.apple.com/"
|
11
11
|
end
|
12
12
|
|
13
13
|
def get_data(id, start_time = Date.today - 30.day, end_time = Date.today)
|
@@ -16,7 +16,15 @@ module Spaceship
|
|
16
16
|
|
17
17
|
ids = [id]
|
18
18
|
|
19
|
-
body = {
|
19
|
+
body = {
|
20
|
+
"adamId": ids,
|
21
|
+
"frequency": "DAY",
|
22
|
+
"measures": ["pageViewCount"],
|
23
|
+
"group": nil,
|
24
|
+
"dimensionFilters": [],
|
25
|
+
"startTime": start_time,
|
26
|
+
"endTime": end_time
|
27
|
+
}
|
20
28
|
|
21
29
|
response = request(:post) do |req|
|
22
30
|
req.url "analytics/api/v1/data/time-series"
|
data/lib/sales_client/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sales_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadik Ay
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|