Class: YandexOffers::Api::V1::Campaigns

Inherits:
Object
  • Object
show all
Defined in:
lib/yandex_offers/api/v1/campaigns.rb

Instance Method Summary collapse

Instance Method Details

#add_pins(*args) ⇒ Object



31
32
33
34
# File 'lib/yandex_offers/api/v1/campaigns.rb', line 31

def add_pins(*args)
  options = { body: args, headers: headers }
  Request.post("/campaigns/add_pins", options)
end

#create(*args) ⇒ Object



6
7
8
9
# File 'lib/yandex_offers/api/v1/campaigns.rb', line 6

def create(*args)
  options = { body: args, headers: headers }
  Request.post("/campaigns/create", options)
end

#get(*args) ⇒ Object



21
22
23
24
# File 'lib/yandex_offers/api/v1/campaigns.rb', line 21

def get(*args)
  options = { body: args, headers: headers }
  Request.post("/campaigns/get", options)
end

#get_all_campaigns(*args) ⇒ Object



26
27
28
29
# File 'lib/yandex_offers/api/v1/campaigns.rb', line 26

def get_all_campaigns(*args)
  options = { body: args, headers: headers }
  Request.post("/campaigns/get_all_campaigns", options)
end

#start(*args) ⇒ Object



11
12
13
14
# File 'lib/yandex_offers/api/v1/campaigns.rb', line 11

def start(*args)
  options = { body: args, headers: headers }
  Request.post("/campaigns/start", options)
end

#stop(*args) ⇒ Object



16
17
18
19
# File 'lib/yandex_offers/api/v1/campaigns.rb', line 16

def stop(*args)
  options = { body: args, headers: headers }
  Request.post("/campaigns/stop", options)
end