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