lib/blurb/snapshot.rb in blurb-0.1.1 vs lib/blurb/snapshot.rb in blurb-0.1.2
- old
+ new
@@ -14,7 +14,16 @@
post_request("/v1/#{params["recordType"]}/snapshot", {
"campaignType" => "sponsoredProducts",
"stateFilter" => params["stateFilter"]
})
end
+
+ def self.status(snapshot_id, opts = {})
+ get_request("/v1/snapshots/#{snapshot_id}")
+ end
+
+ def self.download(location, opts = {})
+ opts.merge!({:full_path => true, :gzip => true, :no_token => true})
+ get_request(location, opts)
+ end
end
end