adops_report_scrapper 0.2.37 → 0.2.38
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/CHANGELOG +3 -0
- data/lib/adops_report_scrapper/springserve_client.rb +3 -1
- data/lib/adops_report_scrapper/version.rb +1 -1
- data/secret.sample.yml +2 -0
- 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: f5b8ad7a22018c511df995c7fcf413724ed94878
|
|
4
|
+
data.tar.gz: 49571246c78e5f8f7a946f34b3b96d74a0c5d336
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 964df614675bc98c05a7f3bc9012f8cc25f4ed65975a27d181206570f58302c371163bc8b0fd2673616d645c002e53e97287ec6e1d2f832dd745c3a5900a5b54
|
|
7
|
+
data.tar.gz: 74d9fb2f09099bf013ae0ea114df3d45f1534ea501dab81a049aa7fa4b6ac5e8e23f10fd4d14b9e06f59f3f822baecc2e8845b44cbe4f1b3455242e0a954dbd8
|
data/CHANGELOG
CHANGED
|
@@ -9,6 +9,8 @@ class AdopsReportScrapper::SpringserveClient < AdopsReportScrapper::BaseClient
|
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
def before_quit_with_error
|
|
12
|
+
fail 'please specify springserve account_id' unless @options['account_id']
|
|
13
|
+
@account_id = @options['account_id']
|
|
12
14
|
end
|
|
13
15
|
|
|
14
16
|
private
|
|
@@ -22,7 +24,7 @@ class AdopsReportScrapper::SpringserveClient < AdopsReportScrapper::BaseClient
|
|
|
22
24
|
|
|
23
25
|
headers = { content_type: :json, accept: :json, authorization: token }
|
|
24
26
|
|
|
25
|
-
response = RestClient.post "https://video.springserve.com/api/v0/report", { timezone: 'America/New_York', date_range: 'Yesterday', interval: 'cumulative', dimensions: ['country', 'supply_tag_id']}.to_json, headers
|
|
27
|
+
response = RestClient.post "https://video.springserve.com/api/v0/report", { timezone: 'America/New_York', date_range: 'Yesterday', interval: 'cumulative', dimensions: ['country', 'supply_tag_id'], account_id: @account_id }.to_json, headers
|
|
26
28
|
data = JSON.parse response
|
|
27
29
|
header = data[0].keys
|
|
28
30
|
@data = [header]
|
data/secret.sample.yml
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: adops_report_scrapper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.38
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stayman Hou
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-10-
|
|
11
|
+
date: 2017-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httpclient
|