Class: Naver::Searchad::Api::Bizmoney::Service
Instance Attribute Summary
#base_path, #client_options, #request_options, #url
Instance Method Summary
collapse
-
#get_bizmoney(options: nil, &block) ⇒ Object
-
#get_bizmoney_charge(start_date, end_date, options: nil, &block) ⇒ Object
-
#get_bizmoney_cost(start_date, end_date, options: nil, &block) ⇒ Object
-
#get_bizmoney_exhaust(start_date, end_date, options: nil, &block) ⇒ Object
-
#get_bizmoney_period(start_date, end_date, options: nil, &block) ⇒ Object
-
#initialize ⇒ Service
constructor
A new instance of Service.
#authorization, #authorization=, #client
#logger
Constructor Details
Returns a new instance of Service.
9
10
11
|
# File 'lib/naver/searchad/api/bizmoney/service.rb', line 9
def initialize
super('https://api.searchad.naver.com/', 'billing/')
end
|
Instance Method Details
#get_bizmoney(options: nil, &block) ⇒ Object
13
14
15
16
|
# File 'lib/naver/searchad/api/bizmoney/service.rb', line 13
def get_bizmoney(options: nil, &block)
command = make_command(:get, 'bizmoney', options)
execute_command(command, &block)
end
|
#get_bizmoney_charge(start_date, end_date, options: nil, &block) ⇒ Object
25
26
27
28
29
30
|
# File 'lib/naver/searchad/api/bizmoney/service.rb', line 25
def get_bizmoney_charge(start_date, end_date, options: nil, &block)
command = make_command(:get, 'bizmoney/histories/charge', options)
command.query['searchStartDt'] = start_date.strftime('%Y%m%d')
command.query['searchEndDt'] = end_date.strftime('%Y%m%d')
execute_command(command, &block)
end
|
#get_bizmoney_cost(start_date, end_date, options: nil, &block) ⇒ Object
18
19
20
21
22
23
|
# File 'lib/naver/searchad/api/bizmoney/service.rb', line 18
def get_bizmoney_cost(start_date, end_date, options: nil, &block)
command = make_command(:get, 'bizmoney/cost', options)
command.query['searchStartDt'] = start_date.strftime('%Y%m%d')
command.query['searchEndDt'] = end_date.strftime('%Y%m%d')
execute_command(command, &block)
end
|
#get_bizmoney_exhaust(start_date, end_date, options: nil, &block) ⇒ Object
32
33
34
35
36
37
|
# File 'lib/naver/searchad/api/bizmoney/service.rb', line 32
def get_bizmoney_exhaust(start_date, end_date, options: nil, &block)
command = make_command(:get, 'bizmoney/histories/exhaust', options)
command.query['searchStartDt'] = start_date.strftime('%Y%m%d')
command.query['searchEndDt'] = end_date.strftime('%Y%m%d')
execute_command(command, &block)
end
|
#get_bizmoney_period(start_date, end_date, options: nil, &block) ⇒ Object
39
40
41
42
43
44
|
# File 'lib/naver/searchad/api/bizmoney/service.rb', line 39
def get_bizmoney_period(start_date, end_date, options: nil, &block)
command = make_command(:get, 'bizmoney/histories/period', options)
command.query['searchStartDt'] = start_date.strftime('%Y%m%d')
command.query['searchEndDt'] = end_date.strftime('%Y%m%d')
execute_command(command, &block)
end
|