blurb 0.1.1 → 0.1.2

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: 928e005a12bfa4aa4ed10d4f0a2cf15ef22e8153
4
- data.tar.gz: 45e8e3dff5107ade531d12940c2dcb814860dc4a
3
+ metadata.gz: c4dbb2bb4d310954fc88eb34aa67d42855edc270
4
+ data.tar.gz: e8875b313e4ed401c7187aa7f2e8287c076069c4
5
5
  SHA512:
6
- metadata.gz: 4c1298fed2c2ae82d9e1a1b237c442402426ec7b025c14972163b005bd518bd2e7cff14d856ce5639345aee8a243864d73d26abbc5681f16d9251214036f3874
7
- data.tar.gz: 0db358d2dbd433cc970ab77d060b6b3164ac9557e955c5c4d8d5ef24991a5f2c25e7630a51c4f7b8243057b8bda349c3c298fc6dc3a883c6485768b529c0908a
6
+ metadata.gz: fc4a236ed208b06b0873869fadaaf1c6d18c8c02f8c259e5eae570ba10e44c29c3de09aea2862c10dcc184092303c47eb4e7a24b057fc993687bd6eff4bd17b7
7
+ data.tar.gz: 6431425442c125f580a44ad34155ab374dc7f50e8d1327de26d17ee090c1909f8b4c31dcfb55ad16f0b86a97d739288a2f64f001b14eeada704dd968da638291
data/README.md CHANGED
@@ -184,6 +184,51 @@ Blurb::Report::AD_GROUPS
184
184
  Blurb::Report::PRODUCT_ADS
185
185
  ```
186
186
 
187
+ Check report status
188
+
189
+ ```ruby
190
+ Blurb::Report.status(report_id)
191
+ ```
192
+
193
+ Download report file content
194
+
195
+ ```ruby
196
+ Blurb::Report.download(report_location_url)
197
+ ```
198
+
199
+ ### Snapshots
200
+ Request a snapshot
201
+
202
+ ```ruby
203
+ payload_response = Blurb::Snapshot.create({
204
+ "recordType" => Blurb::Snapshot::KEYWORDS,
205
+ "stateFilter" => "enabled,paused,archived"
206
+ })
207
+ ```
208
+
209
+ Report record types are
210
+
211
+ ```ruby
212
+ Blurb::Snapshot::KEYWORDS
213
+ Blurb::Snapshot::CAMPAIGNS
214
+ Blurb::Snapshot::AD_GROUPS
215
+ Blurb::Snapshot::PRODUCT_ADS
216
+ Blurb::Snapshot::NEGATIVE_KEYWORDS
217
+ Blurb::Snapshot::CAMPAIGN_NEGATIVE_KEYWORDS
218
+ ```
219
+
220
+ Check snapshot status
221
+
222
+ ```ruby
223
+ Blurb::Snapshot.status(snapshot_id)
224
+ ```
225
+
226
+ Download snapshot file content
227
+
228
+ ```ruby
229
+ Blurb::Snapshot.download(snapshot_location_url)
230
+ ```
231
+
187
232
  ### Suggested Keywords
188
233
  Suggestions by ASIN
189
234
 
@@ -16,5 +16,14 @@ module Blurb
16
16
  "stateFilter" => params["stateFilter"]
17
17
  })
18
18
  end
19
+
20
+ def self.status(snapshot_id, opts = {})
21
+ get_request("/v1/snapshots/#{snapshot_id}")
22
+ end
23
+
24
+ def self.download(location, opts = {})
25
+ opts.merge!({:full_path => true, :gzip => true, :no_token => true})
26
+ get_request(location, opts)
27
+ end
19
28
  end
20
29
  end
data/lib/blurb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Blurb
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blurb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - dlbunker