Class: DSP::API::IllegalAds
- Inherits:
-
Object
- Object
- DSP::API::IllegalAds
- Defined in:
- lib/dsp/api/illegal_ads.rb
Constant Summary collapse
- @@target_url =
"#{DSP::ADX_URL}/file/denylist"
Class Method Summary collapse
-
.download(date = '') ⇒ Object
date format YYYY-MM-DD.
Class Method Details
.download(date = '') ⇒ Object
date format YYYY-MM-DD
8 9 10 11 12 |
# File 'lib/dsp/api/illegal_ads.rb', line 8 def download(date = '') body = {date: date}.merge(DSP::AUTH) req = HTTParty.post(@@target_url, body: body).body JSON.parse(req) end |