MailchimpTransactional 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/MailchimpTransactional.gemspec +45 -0
- data/README.md +174 -0
- data/lib/MailchimpTransactional.rb +123 -0
- data/lib/MailchimpTransactional/api/exports_api.rb +176 -0
- data/lib/MailchimpTransactional/api/inbound_api.rb +296 -0
- data/lib/MailchimpTransactional/api/ips_api.rb +416 -0
- data/lib/MailchimpTransactional/api/messages_api.rb +356 -0
- data/lib/MailchimpTransactional/api/metadata_api.rb +146 -0
- data/lib/MailchimpTransactional/api/rejects_api.rb +116 -0
- data/lib/MailchimpTransactional/api/senders_api.rb +236 -0
- data/lib/MailchimpTransactional/api/subaccounts_api.rb +236 -0
- data/lib/MailchimpTransactional/api/tags_api.rb +176 -0
- data/lib/MailchimpTransactional/api/templates_api.rb +266 -0
- data/lib/MailchimpTransactional/api/urls_api.rb +206 -0
- data/lib/MailchimpTransactional/api/users_api.rb +146 -0
- data/lib/MailchimpTransactional/api/webhooks_api.rb +176 -0
- data/lib/MailchimpTransactional/api/whitelists_api.rb +116 -0
- data/lib/MailchimpTransactional/api_client.rb +94 -0
- data/lib/MailchimpTransactional/api_error.rb +38 -0
- data/lib/MailchimpTransactional/configuration.rb +202 -0
- data/lib/MailchimpTransactional/version.rb +15 -0
- metadata +245 -0
@@ -0,0 +1,176 @@
|
|
1
|
+
=begin
|
2
|
+
#Mailchimp Transactional API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.4
|
7
|
+
Contact: apihelp@mandrill.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module MailchimpTransactional
|
16
|
+
class TagsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
attr_accessor :api_key
|
20
|
+
|
21
|
+
def initialize(api_key = '', api_client = ApiClient.default)
|
22
|
+
@api_key = api_key
|
23
|
+
@api_client = api_client
|
24
|
+
end
|
25
|
+
# /tags/all-time-series
|
26
|
+
# Return the recent history (hourly stats for the last 30 days) for all tags
|
27
|
+
# @param body
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @return [Array<InlineResponse20028>]
|
30
|
+
def all_time_series(body = {}, opts = {})
|
31
|
+
data, _status_code, _headers = all_time_series_with_http_info(body, opts)
|
32
|
+
data
|
33
|
+
end
|
34
|
+
|
35
|
+
# /tags/all-time-series
|
36
|
+
# Return the recent history (hourly stats for the last 30 days) for all tags
|
37
|
+
# @param body
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [Array<(Array<InlineResponse20028>, Fixnum, Hash)>] Array<InlineResponse20028> data, response status code and response headers
|
40
|
+
def all_time_series_with_http_info(body, opts = {})
|
41
|
+
# add api key to request body
|
42
|
+
body[:key] = @api_key
|
43
|
+
|
44
|
+
# resource path
|
45
|
+
local_var_path = '/tags/all-time-series'
|
46
|
+
|
47
|
+
# http body (model)
|
48
|
+
auth_names = []
|
49
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
50
|
+
:body => body,
|
51
|
+
:auth_names => auth_names,
|
52
|
+
:return_type => 'Array<InlineResponse20028>')
|
53
|
+
return data, status_code, headers
|
54
|
+
end
|
55
|
+
# /tags/delete
|
56
|
+
# Deletes a tag permanently. Deleting a tag removes the tag from any messages that have been sent, and also deletes the tag's stats. There is no way to undo this operation, so use it carefully.
|
57
|
+
# @param body
|
58
|
+
# @param [Hash] opts the optional parameters
|
59
|
+
# @return [InlineResponse20055]
|
60
|
+
def delete(body = {}, opts = {})
|
61
|
+
data, _status_code, _headers = delete_with_http_info(body, opts)
|
62
|
+
data
|
63
|
+
end
|
64
|
+
|
65
|
+
# /tags/delete
|
66
|
+
# Deletes a tag permanently. Deleting a tag removes the tag from any messages that have been sent, and also deletes the tag's stats. There is no way to undo this operation, so use it carefully.
|
67
|
+
# @param body
|
68
|
+
# @param [Hash] opts the optional parameters
|
69
|
+
# @return [Array<(InlineResponse20055, Fixnum, Hash)>] InlineResponse20055 data, response status code and response headers
|
70
|
+
def delete_with_http_info(body, opts = {})
|
71
|
+
# add api key to request body
|
72
|
+
body[:key] = @api_key
|
73
|
+
|
74
|
+
# resource path
|
75
|
+
local_var_path = '/tags/delete'
|
76
|
+
|
77
|
+
# http body (model)
|
78
|
+
auth_names = []
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
80
|
+
:body => body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => 'InlineResponse20055')
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
# /tags/info
|
86
|
+
# Return more detailed information about a single tag, including aggregates of recent stats
|
87
|
+
# @param body
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [InlineResponse20056]
|
90
|
+
def info(body = {}, opts = {})
|
91
|
+
data, _status_code, _headers = info_with_http_info(body, opts)
|
92
|
+
data
|
93
|
+
end
|
94
|
+
|
95
|
+
# /tags/info
|
96
|
+
# Return more detailed information about a single tag, including aggregates of recent stats
|
97
|
+
# @param body
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @return [Array<(InlineResponse20056, Fixnum, Hash)>] InlineResponse20056 data, response status code and response headers
|
100
|
+
def info_with_http_info(body, opts = {})
|
101
|
+
# add api key to request body
|
102
|
+
body[:key] = @api_key
|
103
|
+
|
104
|
+
# resource path
|
105
|
+
local_var_path = '/tags/info'
|
106
|
+
|
107
|
+
# http body (model)
|
108
|
+
auth_names = []
|
109
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
110
|
+
:body => body,
|
111
|
+
:auth_names => auth_names,
|
112
|
+
:return_type => 'InlineResponse20056')
|
113
|
+
return data, status_code, headers
|
114
|
+
end
|
115
|
+
# /tags/list
|
116
|
+
# Return all of the user-defined tag information
|
117
|
+
# @param body
|
118
|
+
# @param [Hash] opts the optional parameters
|
119
|
+
# @return [Array<InlineResponse20054>]
|
120
|
+
def list(body = {}, opts = {})
|
121
|
+
data, _status_code, _headers = list_with_http_info(body, opts)
|
122
|
+
data
|
123
|
+
end
|
124
|
+
|
125
|
+
# /tags/list
|
126
|
+
# Return all of the user-defined tag information
|
127
|
+
# @param body
|
128
|
+
# @param [Hash] opts the optional parameters
|
129
|
+
# @return [Array<(Array<InlineResponse20054>, Fixnum, Hash)>] Array<InlineResponse20054> data, response status code and response headers
|
130
|
+
def list_with_http_info(body, opts = {})
|
131
|
+
# add api key to request body
|
132
|
+
body[:key] = @api_key
|
133
|
+
|
134
|
+
# resource path
|
135
|
+
local_var_path = '/tags/list'
|
136
|
+
|
137
|
+
# http body (model)
|
138
|
+
auth_names = []
|
139
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
140
|
+
:body => body,
|
141
|
+
:auth_names => auth_names,
|
142
|
+
:return_type => 'Array<InlineResponse20054>')
|
143
|
+
return data, status_code, headers
|
144
|
+
end
|
145
|
+
# /tags/time-series
|
146
|
+
# Return the recent history (hourly stats for the last 30 days) for a tag
|
147
|
+
# @param body
|
148
|
+
# @param [Hash] opts the optional parameters
|
149
|
+
# @return [Array<InlineResponse20028>]
|
150
|
+
def time_series(body = {}, opts = {})
|
151
|
+
data, _status_code, _headers = time_series_with_http_info(body, opts)
|
152
|
+
data
|
153
|
+
end
|
154
|
+
|
155
|
+
# /tags/time-series
|
156
|
+
# Return the recent history (hourly stats for the last 30 days) for a tag
|
157
|
+
# @param body
|
158
|
+
# @param [Hash] opts the optional parameters
|
159
|
+
# @return [Array<(Array<InlineResponse20028>, Fixnum, Hash)>] Array<InlineResponse20028> data, response status code and response headers
|
160
|
+
def time_series_with_http_info(body, opts = {})
|
161
|
+
# add api key to request body
|
162
|
+
body[:key] = @api_key
|
163
|
+
|
164
|
+
# resource path
|
165
|
+
local_var_path = '/tags/time-series'
|
166
|
+
|
167
|
+
# http body (model)
|
168
|
+
auth_names = []
|
169
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
170
|
+
:body => body,
|
171
|
+
:auth_names => auth_names,
|
172
|
+
:return_type => 'Array<InlineResponse20028>')
|
173
|
+
return data, status_code, headers
|
174
|
+
end
|
175
|
+
end
|
176
|
+
end
|
@@ -0,0 +1,266 @@
|
|
1
|
+
=begin
|
2
|
+
#Mailchimp Transactional API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.4
|
7
|
+
Contact: apihelp@mandrill.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module MailchimpTransactional
|
16
|
+
class TemplatesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
attr_accessor :api_key
|
20
|
+
|
21
|
+
def initialize(api_key = '', api_client = ApiClient.default)
|
22
|
+
@api_key = api_key
|
23
|
+
@api_client = api_client
|
24
|
+
end
|
25
|
+
# /templates/add
|
26
|
+
# Add a new template
|
27
|
+
# @param body
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @return [InlineResponse20057]
|
30
|
+
def add(body = {}, opts = {})
|
31
|
+
data, _status_code, _headers = add_with_http_info(body, opts)
|
32
|
+
data
|
33
|
+
end
|
34
|
+
|
35
|
+
# /templates/add
|
36
|
+
# Add a new template
|
37
|
+
# @param body
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [Array<(InlineResponse20057, Fixnum, Hash)>] InlineResponse20057 data, response status code and response headers
|
40
|
+
def add_with_http_info(body, opts = {})
|
41
|
+
# add api key to request body
|
42
|
+
body[:key] = @api_key
|
43
|
+
|
44
|
+
# resource path
|
45
|
+
local_var_path = '/templates/add'
|
46
|
+
|
47
|
+
# http body (model)
|
48
|
+
auth_names = []
|
49
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
50
|
+
:body => body,
|
51
|
+
:auth_names => auth_names,
|
52
|
+
:return_type => 'InlineResponse20057')
|
53
|
+
return data, status_code, headers
|
54
|
+
end
|
55
|
+
# /templates/delete
|
56
|
+
# Delete a template
|
57
|
+
# @param body
|
58
|
+
# @param [Hash] opts the optional parameters
|
59
|
+
# @return [InlineResponse20061]
|
60
|
+
def delete(body = {}, opts = {})
|
61
|
+
data, _status_code, _headers = delete_with_http_info(body, opts)
|
62
|
+
data
|
63
|
+
end
|
64
|
+
|
65
|
+
# /templates/delete
|
66
|
+
# Delete a template
|
67
|
+
# @param body
|
68
|
+
# @param [Hash] opts the optional parameters
|
69
|
+
# @return [Array<(InlineResponse20061, Fixnum, Hash)>] InlineResponse20061 data, response status code and response headers
|
70
|
+
def delete_with_http_info(body, opts = {})
|
71
|
+
# add api key to request body
|
72
|
+
body[:key] = @api_key
|
73
|
+
|
74
|
+
# resource path
|
75
|
+
local_var_path = '/templates/delete'
|
76
|
+
|
77
|
+
# http body (model)
|
78
|
+
auth_names = []
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
80
|
+
:body => body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => 'InlineResponse20061')
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
# /templates/info
|
86
|
+
# Get the information for an existing template
|
87
|
+
# @param body
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [InlineResponse20058]
|
90
|
+
def info(body = {}, opts = {})
|
91
|
+
data, _status_code, _headers = info_with_http_info(body, opts)
|
92
|
+
data
|
93
|
+
end
|
94
|
+
|
95
|
+
# /templates/info
|
96
|
+
# Get the information for an existing template
|
97
|
+
# @param body
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @return [Array<(InlineResponse20058, Fixnum, Hash)>] InlineResponse20058 data, response status code and response headers
|
100
|
+
def info_with_http_info(body, opts = {})
|
101
|
+
# add api key to request body
|
102
|
+
body[:key] = @api_key
|
103
|
+
|
104
|
+
# resource path
|
105
|
+
local_var_path = '/templates/info'
|
106
|
+
|
107
|
+
# http body (model)
|
108
|
+
auth_names = []
|
109
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
110
|
+
:body => body,
|
111
|
+
:auth_names => auth_names,
|
112
|
+
:return_type => 'InlineResponse20058')
|
113
|
+
return data, status_code, headers
|
114
|
+
end
|
115
|
+
# /templates/list
|
116
|
+
# Return a list of all the templates available to this user
|
117
|
+
# @param body
|
118
|
+
# @param [Hash] opts the optional parameters
|
119
|
+
# @return [Array<InlineResponse20062>]
|
120
|
+
def list(body = {}, opts = {})
|
121
|
+
data, _status_code, _headers = list_with_http_info(body, opts)
|
122
|
+
data
|
123
|
+
end
|
124
|
+
|
125
|
+
# /templates/list
|
126
|
+
# Return a list of all the templates available to this user
|
127
|
+
# @param body
|
128
|
+
# @param [Hash] opts the optional parameters
|
129
|
+
# @return [Array<(Array<InlineResponse20062>, Fixnum, Hash)>] Array<InlineResponse20062> data, response status code and response headers
|
130
|
+
def list_with_http_info(body, opts = {})
|
131
|
+
# add api key to request body
|
132
|
+
body[:key] = @api_key
|
133
|
+
|
134
|
+
# resource path
|
135
|
+
local_var_path = '/templates/list'
|
136
|
+
|
137
|
+
# http body (model)
|
138
|
+
auth_names = []
|
139
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
140
|
+
:body => body,
|
141
|
+
:auth_names => auth_names,
|
142
|
+
:return_type => 'Array<InlineResponse20062>')
|
143
|
+
return data, status_code, headers
|
144
|
+
end
|
145
|
+
# /templates/publish
|
146
|
+
# Publish the content for the template. Any new messages sent using this template will start using the content that was previously in draft.
|
147
|
+
# @param body
|
148
|
+
# @param [Hash] opts the optional parameters
|
149
|
+
# @return [InlineResponse20060]
|
150
|
+
def publish(body = {}, opts = {})
|
151
|
+
data, _status_code, _headers = publish_with_http_info(body, opts)
|
152
|
+
data
|
153
|
+
end
|
154
|
+
|
155
|
+
# /templates/publish
|
156
|
+
# Publish the content for the template. Any new messages sent using this template will start using the content that was previously in draft.
|
157
|
+
# @param body
|
158
|
+
# @param [Hash] opts the optional parameters
|
159
|
+
# @return [Array<(InlineResponse20060, Fixnum, Hash)>] InlineResponse20060 data, response status code and response headers
|
160
|
+
def publish_with_http_info(body, opts = {})
|
161
|
+
# add api key to request body
|
162
|
+
body[:key] = @api_key
|
163
|
+
|
164
|
+
# resource path
|
165
|
+
local_var_path = '/templates/publish'
|
166
|
+
|
167
|
+
# http body (model)
|
168
|
+
auth_names = []
|
169
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
170
|
+
:body => body,
|
171
|
+
:auth_names => auth_names,
|
172
|
+
:return_type => 'InlineResponse20060')
|
173
|
+
return data, status_code, headers
|
174
|
+
end
|
175
|
+
# /templates/render
|
176
|
+
# Inject content and optionally merge fields into a template, returning the HTML that results
|
177
|
+
# @param body
|
178
|
+
# @param [Hash] opts the optional parameters
|
179
|
+
# @return [InlineResponse20063]
|
180
|
+
def render(body = {}, opts = {})
|
181
|
+
data, _status_code, _headers = render_with_http_info(body, opts)
|
182
|
+
data
|
183
|
+
end
|
184
|
+
|
185
|
+
# /templates/render
|
186
|
+
# Inject content and optionally merge fields into a template, returning the HTML that results
|
187
|
+
# @param body
|
188
|
+
# @param [Hash] opts the optional parameters
|
189
|
+
# @return [Array<(InlineResponse20063, Fixnum, Hash)>] InlineResponse20063 data, response status code and response headers
|
190
|
+
def render_with_http_info(body, opts = {})
|
191
|
+
# add api key to request body
|
192
|
+
body[:key] = @api_key
|
193
|
+
|
194
|
+
# resource path
|
195
|
+
local_var_path = '/templates/render'
|
196
|
+
|
197
|
+
# http body (model)
|
198
|
+
auth_names = []
|
199
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
200
|
+
:body => body,
|
201
|
+
:auth_names => auth_names,
|
202
|
+
:return_type => 'InlineResponse20063')
|
203
|
+
return data, status_code, headers
|
204
|
+
end
|
205
|
+
# /templates/time-series
|
206
|
+
# Return the recent history (hourly stats for the last 30 days) for a template
|
207
|
+
# @param body
|
208
|
+
# @param [Hash] opts the optional parameters
|
209
|
+
# @return [Array<InlineResponse20046>]
|
210
|
+
def time_series(body = {}, opts = {})
|
211
|
+
data, _status_code, _headers = time_series_with_http_info(body, opts)
|
212
|
+
data
|
213
|
+
end
|
214
|
+
|
215
|
+
# /templates/time-series
|
216
|
+
# Return the recent history (hourly stats for the last 30 days) for a template
|
217
|
+
# @param body
|
218
|
+
# @param [Hash] opts the optional parameters
|
219
|
+
# @return [Array<(Array<InlineResponse20046>, Fixnum, Hash)>] Array<InlineResponse20046> data, response status code and response headers
|
220
|
+
def time_series_with_http_info(body, opts = {})
|
221
|
+
# add api key to request body
|
222
|
+
body[:key] = @api_key
|
223
|
+
|
224
|
+
# resource path
|
225
|
+
local_var_path = '/templates/time-series'
|
226
|
+
|
227
|
+
# http body (model)
|
228
|
+
auth_names = []
|
229
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
230
|
+
:body => body,
|
231
|
+
:auth_names => auth_names,
|
232
|
+
:return_type => 'Array<InlineResponse20046>')
|
233
|
+
return data, status_code, headers
|
234
|
+
end
|
235
|
+
# /templates/update
|
236
|
+
# Update the code for an existing template. If null is provided for any fields, the values will remain unchanged.
|
237
|
+
# @param body
|
238
|
+
# @param [Hash] opts the optional parameters
|
239
|
+
# @return [InlineResponse20059]
|
240
|
+
def update(body = {}, opts = {})
|
241
|
+
data, _status_code, _headers = update_with_http_info(body, opts)
|
242
|
+
data
|
243
|
+
end
|
244
|
+
|
245
|
+
# /templates/update
|
246
|
+
# Update the code for an existing template. If null is provided for any fields, the values will remain unchanged.
|
247
|
+
# @param body
|
248
|
+
# @param [Hash] opts the optional parameters
|
249
|
+
# @return [Array<(InlineResponse20059, Fixnum, Hash)>] InlineResponse20059 data, response status code and response headers
|
250
|
+
def update_with_http_info(body, opts = {})
|
251
|
+
# add api key to request body
|
252
|
+
body[:key] = @api_key
|
253
|
+
|
254
|
+
# resource path
|
255
|
+
local_var_path = '/templates/update'
|
256
|
+
|
257
|
+
# http body (model)
|
258
|
+
auth_names = []
|
259
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
260
|
+
:body => body,
|
261
|
+
:auth_names => auth_names,
|
262
|
+
:return_type => 'InlineResponse20059')
|
263
|
+
return data, status_code, headers
|
264
|
+
end
|
265
|
+
end
|
266
|
+
end
|
@@ -0,0 +1,206 @@
|
|
1
|
+
=begin
|
2
|
+
#Mailchimp Transactional API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.4
|
7
|
+
Contact: apihelp@mandrill.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module MailchimpTransactional
|
16
|
+
class UrlsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
attr_accessor :api_key
|
20
|
+
|
21
|
+
def initialize(api_key = '', api_client = ApiClient.default)
|
22
|
+
@api_key = api_key
|
23
|
+
@api_client = api_client
|
24
|
+
end
|
25
|
+
# /urls/add-tracking-domain
|
26
|
+
# Add a tracking domain to your account
|
27
|
+
# @param body
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @return [InlineResponse20068]
|
30
|
+
def add_tracking_domain(body = {}, opts = {})
|
31
|
+
data, _status_code, _headers = add_tracking_domain_with_http_info(body, opts)
|
32
|
+
data
|
33
|
+
end
|
34
|
+
|
35
|
+
# /urls/add-tracking-domain
|
36
|
+
# Add a tracking domain to your account
|
37
|
+
# @param body
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [Array<(InlineResponse20068, Fixnum, Hash)>] InlineResponse20068 data, response status code and response headers
|
40
|
+
def add_tracking_domain_with_http_info(body, opts = {})
|
41
|
+
# add api key to request body
|
42
|
+
body[:key] = @api_key
|
43
|
+
|
44
|
+
# resource path
|
45
|
+
local_var_path = '/urls/add-tracking-domain'
|
46
|
+
|
47
|
+
# http body (model)
|
48
|
+
auth_names = []
|
49
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
50
|
+
:body => body,
|
51
|
+
:auth_names => auth_names,
|
52
|
+
:return_type => 'InlineResponse20068')
|
53
|
+
return data, status_code, headers
|
54
|
+
end
|
55
|
+
# /urls/check-tracking-domain
|
56
|
+
# Checks the CNAME settings for a tracking domain. The domain must have been added already with the add-tracking-domain call
|
57
|
+
# @param body
|
58
|
+
# @param [Hash] opts the optional parameters
|
59
|
+
# @return [InlineResponse20068]
|
60
|
+
def check_tracking_domain(body = {}, opts = {})
|
61
|
+
data, _status_code, _headers = check_tracking_domain_with_http_info(body, opts)
|
62
|
+
data
|
63
|
+
end
|
64
|
+
|
65
|
+
# /urls/check-tracking-domain
|
66
|
+
# Checks the CNAME settings for a tracking domain. The domain must have been added already with the add-tracking-domain call
|
67
|
+
# @param body
|
68
|
+
# @param [Hash] opts the optional parameters
|
69
|
+
# @return [Array<(InlineResponse20068, Fixnum, Hash)>] InlineResponse20068 data, response status code and response headers
|
70
|
+
def check_tracking_domain_with_http_info(body, opts = {})
|
71
|
+
# add api key to request body
|
72
|
+
body[:key] = @api_key
|
73
|
+
|
74
|
+
# resource path
|
75
|
+
local_var_path = '/urls/check-tracking-domain'
|
76
|
+
|
77
|
+
# http body (model)
|
78
|
+
auth_names = []
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
80
|
+
:body => body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => 'InlineResponse20068')
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
# /urls/list
|
86
|
+
# Get the 100 most clicked URLs
|
87
|
+
# @param body
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [Array<InlineResponse20064>]
|
90
|
+
def list(body = {}, opts = {})
|
91
|
+
data, _status_code, _headers = list_with_http_info(body, opts)
|
92
|
+
data
|
93
|
+
end
|
94
|
+
|
95
|
+
# /urls/list
|
96
|
+
# Get the 100 most clicked URLs
|
97
|
+
# @param body
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @return [Array<(Array<InlineResponse20064>, Fixnum, Hash)>] Array<InlineResponse20064> data, response status code and response headers
|
100
|
+
def list_with_http_info(body, opts = {})
|
101
|
+
# add api key to request body
|
102
|
+
body[:key] = @api_key
|
103
|
+
|
104
|
+
# resource path
|
105
|
+
local_var_path = '/urls/list'
|
106
|
+
|
107
|
+
# http body (model)
|
108
|
+
auth_names = []
|
109
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
110
|
+
:body => body,
|
111
|
+
:auth_names => auth_names,
|
112
|
+
:return_type => 'Array<InlineResponse20064>')
|
113
|
+
return data, status_code, headers
|
114
|
+
end
|
115
|
+
# /urls/search (deprecated)
|
116
|
+
# Return the 100 most clicked URLs that match the search query given
|
117
|
+
# @param body
|
118
|
+
# @param [Hash] opts the optional parameters
|
119
|
+
# @return [Array<InlineResponse20065>]
|
120
|
+
def search(body = {}, opts = {})
|
121
|
+
data, _status_code, _headers = search_with_http_info(body, opts)
|
122
|
+
data
|
123
|
+
end
|
124
|
+
|
125
|
+
# /urls/search (deprecated)
|
126
|
+
# Return the 100 most clicked URLs that match the search query given
|
127
|
+
# @param body
|
128
|
+
# @param [Hash] opts the optional parameters
|
129
|
+
# @return [Array<(Array<InlineResponse20065>, Fixnum, Hash)>] Array<InlineResponse20065> data, response status code and response headers
|
130
|
+
def search_with_http_info(body, opts = {})
|
131
|
+
# add api key to request body
|
132
|
+
body[:key] = @api_key
|
133
|
+
|
134
|
+
# resource path
|
135
|
+
local_var_path = '/urls/search'
|
136
|
+
|
137
|
+
# http body (model)
|
138
|
+
auth_names = []
|
139
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
140
|
+
:body => body,
|
141
|
+
:auth_names => auth_names,
|
142
|
+
:return_type => 'Array<InlineResponse20065>')
|
143
|
+
return data, status_code, headers
|
144
|
+
end
|
145
|
+
# /urls/time-series
|
146
|
+
# Return the recent history (hourly stats for the last 30 days) for a url
|
147
|
+
# @param body
|
148
|
+
# @param [Hash] opts the optional parameters
|
149
|
+
# @return [Array<InlineResponse20066>]
|
150
|
+
def time_series(body = {}, opts = {})
|
151
|
+
data, _status_code, _headers = time_series_with_http_info(body, opts)
|
152
|
+
data
|
153
|
+
end
|
154
|
+
|
155
|
+
# /urls/time-series
|
156
|
+
# Return the recent history (hourly stats for the last 30 days) for a url
|
157
|
+
# @param body
|
158
|
+
# @param [Hash] opts the optional parameters
|
159
|
+
# @return [Array<(Array<InlineResponse20066>, Fixnum, Hash)>] Array<InlineResponse20066> data, response status code and response headers
|
160
|
+
def time_series_with_http_info(body, opts = {})
|
161
|
+
# add api key to request body
|
162
|
+
body[:key] = @api_key
|
163
|
+
|
164
|
+
# resource path
|
165
|
+
local_var_path = '/urls/time-series'
|
166
|
+
|
167
|
+
# http body (model)
|
168
|
+
auth_names = []
|
169
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
170
|
+
:body => body,
|
171
|
+
:auth_names => auth_names,
|
172
|
+
:return_type => 'Array<InlineResponse20066>')
|
173
|
+
return data, status_code, headers
|
174
|
+
end
|
175
|
+
# /urls/tracking-domains
|
176
|
+
# Get the list of tracking domains set up for this account
|
177
|
+
# @param body
|
178
|
+
# @param [Hash] opts the optional parameters
|
179
|
+
# @return [Array<InlineResponse20067>]
|
180
|
+
def tracking_domains(body = {}, opts = {})
|
181
|
+
data, _status_code, _headers = tracking_domains_with_http_info(body, opts)
|
182
|
+
data
|
183
|
+
end
|
184
|
+
|
185
|
+
# /urls/tracking-domains
|
186
|
+
# Get the list of tracking domains set up for this account
|
187
|
+
# @param body
|
188
|
+
# @param [Hash] opts the optional parameters
|
189
|
+
# @return [Array<(Array<InlineResponse20067>, Fixnum, Hash)>] Array<InlineResponse20067> data, response status code and response headers
|
190
|
+
def tracking_domains_with_http_info(body, opts = {})
|
191
|
+
# add api key to request body
|
192
|
+
body[:key] = @api_key
|
193
|
+
|
194
|
+
# resource path
|
195
|
+
local_var_path = '/urls/tracking-domains'
|
196
|
+
|
197
|
+
# http body (model)
|
198
|
+
auth_names = []
|
199
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
200
|
+
:body => body,
|
201
|
+
:auth_names => auth_names,
|
202
|
+
:return_type => 'Array<InlineResponse20067>')
|
203
|
+
return data, status_code, headers
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|