MailchimpTransactional 1.0.6 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MailchimpTransactional.gemspec +1 -1
- data/README.md +27 -8
- data/lib/MailchimpTransactional.rb +1 -1
- data/lib/MailchimpTransactional/api/exports_api.rb +26 -46
- data/lib/MailchimpTransactional/api/inbound_api.rb +60 -96
- data/lib/MailchimpTransactional/api/ips_api.rb +70 -122
- data/lib/MailchimpTransactional/api/messages_api.rb +74 -118
- data/lib/MailchimpTransactional/api/metadata_api.rb +23 -39
- data/lib/MailchimpTransactional/api/rejects_api.rb +16 -28
- data/lib/MailchimpTransactional/api/senders_api.rb +46 -74
- data/lib/MailchimpTransactional/api/subaccounts_api.rb +46 -74
- data/lib/MailchimpTransactional/api/tags_api.rb +34 -54
- data/lib/MailchimpTransactional/api/templates_api.rb +53 -85
- data/lib/MailchimpTransactional/api/urls_api.rb +43 -67
- data/lib/MailchimpTransactional/api/users_api.rb +29 -45
- data/lib/MailchimpTransactional/api/webhooks_api.rb +36 -56
- data/lib/MailchimpTransactional/api/whitelists_api.rb +16 -28
- data/lib/MailchimpTransactional/api_client.rb +1 -1
- data/lib/MailchimpTransactional/api_error.rb +1 -1
- data/lib/MailchimpTransactional/configuration.rb +1 -1
- data/lib/MailchimpTransactional/version.rb +2 -2
- metadata +2 -2
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.0.
|
6
|
+
OpenAPI spec version: 1.0.8
|
7
7
|
Contact: apihelp@mandrill.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
@@ -22,17 +22,17 @@ module MailchimpTransactional
|
|
22
22
|
@api_key = api_key
|
23
23
|
@api_client = api_client
|
24
24
|
end
|
25
|
-
#
|
25
|
+
# Cancel ip warmup
|
26
26
|
# Cancels the warmup process for a dedicated IP.
|
27
27
|
# @param body
|
28
28
|
# @param [Hash] opts the optional parameters
|
29
29
|
# @return [InlineResponse20017]
|
30
30
|
def cancel_warmup(body = {}, opts = {})
|
31
|
-
data
|
31
|
+
data = cancel_warmup_with_http_info(body, opts)
|
32
32
|
data
|
33
33
|
end
|
34
34
|
|
35
|
-
#
|
35
|
+
# Cancel ip warmup
|
36
36
|
# Cancels the warmup process for a dedicated IP.
|
37
37
|
# @param body
|
38
38
|
# @param [Hash] opts the optional parameters
|
@@ -45,24 +45,20 @@ module MailchimpTransactional
|
|
45
45
|
local_var_path = '/ips/cancel-warmup'
|
46
46
|
|
47
47
|
# http body (model)
|
48
|
-
|
49
|
-
data
|
50
|
-
:body => body,
|
51
|
-
:auth_names => auth_names,
|
52
|
-
:return_type => 'InlineResponse20017')
|
53
|
-
return data, status_code, headers
|
48
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
49
|
+
return data
|
54
50
|
end
|
55
|
-
#
|
51
|
+
# Test custom dns
|
56
52
|
# Tests whether a domain name is valid for use as the custom reverse DNS for a dedicated IP.
|
57
53
|
# @param body
|
58
54
|
# @param [Hash] opts the optional parameters
|
59
55
|
# @return [InlineResponse20023]
|
60
56
|
def check_custom_dns(body = {}, opts = {})
|
61
|
-
data
|
57
|
+
data = check_custom_dns_with_http_info(body, opts)
|
62
58
|
data
|
63
59
|
end
|
64
60
|
|
65
|
-
#
|
61
|
+
# Test custom dns
|
66
62
|
# Tests whether a domain name is valid for use as the custom reverse DNS for a dedicated IP.
|
67
63
|
# @param body
|
68
64
|
# @param [Hash] opts the optional parameters
|
@@ -75,24 +71,20 @@ module MailchimpTransactional
|
|
75
71
|
local_var_path = '/ips/check-custom-dns'
|
76
72
|
|
77
73
|
# http body (model)
|
78
|
-
|
79
|
-
data
|
80
|
-
:body => body,
|
81
|
-
:auth_names => auth_names,
|
82
|
-
:return_type => 'InlineResponse20023')
|
83
|
-
return data, status_code, headers
|
74
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
75
|
+
return data
|
84
76
|
end
|
85
|
-
#
|
77
|
+
# Add ip pool
|
86
78
|
# Creates a pool and returns it. If a pool already exists with this name, no action will be performed.
|
87
79
|
# @param body
|
88
80
|
# @param [Hash] opts the optional parameters
|
89
81
|
# @return [InlineResponse20021]
|
90
82
|
def create_pool(body = {}, opts = {})
|
91
|
-
data
|
83
|
+
data = create_pool_with_http_info(body, opts)
|
92
84
|
data
|
93
85
|
end
|
94
86
|
|
95
|
-
#
|
87
|
+
# Add ip pool
|
96
88
|
# Creates a pool and returns it. If a pool already exists with this name, no action will be performed.
|
97
89
|
# @param body
|
98
90
|
# @param [Hash] opts the optional parameters
|
@@ -105,24 +97,20 @@ module MailchimpTransactional
|
|
105
97
|
local_var_path = '/ips/create-pool'
|
106
98
|
|
107
99
|
# http body (model)
|
108
|
-
|
109
|
-
data
|
110
|
-
:body => body,
|
111
|
-
:auth_names => auth_names,
|
112
|
-
:return_type => 'InlineResponse20021')
|
113
|
-
return data, status_code, headers
|
100
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
101
|
+
return data
|
114
102
|
end
|
115
|
-
#
|
103
|
+
# Delete ip address
|
116
104
|
# Deletes a dedicated IP. This is permanent and cannot be undone.
|
117
105
|
# @param body
|
118
106
|
# @param [Hash] opts the optional parameters
|
119
107
|
# @return [InlineResponse20019]
|
120
108
|
def delete(body = {}, opts = {})
|
121
|
-
data
|
109
|
+
data = delete_with_http_info(body, opts)
|
122
110
|
data
|
123
111
|
end
|
124
112
|
|
125
|
-
#
|
113
|
+
# Delete ip address
|
126
114
|
# Deletes a dedicated IP. This is permanent and cannot be undone.
|
127
115
|
# @param body
|
128
116
|
# @param [Hash] opts the optional parameters
|
@@ -135,24 +123,20 @@ module MailchimpTransactional
|
|
135
123
|
local_var_path = '/ips/delete'
|
136
124
|
|
137
125
|
# http body (model)
|
138
|
-
|
139
|
-
data
|
140
|
-
:body => body,
|
141
|
-
:auth_names => auth_names,
|
142
|
-
:return_type => 'InlineResponse20019')
|
143
|
-
return data, status_code, headers
|
126
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
127
|
+
return data
|
144
128
|
end
|
145
|
-
#
|
129
|
+
# Delete ip pool
|
146
130
|
# Deletes a pool. A pool must be empty before you can delete it, and you cannot delete your default pool.
|
147
131
|
# @param body
|
148
132
|
# @param [Hash] opts the optional parameters
|
149
133
|
# @return [InlineResponse20022]
|
150
134
|
def delete_pool(body = {}, opts = {})
|
151
|
-
data
|
135
|
+
data = delete_pool_with_http_info(body, opts)
|
152
136
|
data
|
153
137
|
end
|
154
138
|
|
155
|
-
#
|
139
|
+
# Delete ip pool
|
156
140
|
# Deletes a pool. A pool must be empty before you can delete it, and you cannot delete your default pool.
|
157
141
|
# @param body
|
158
142
|
# @param [Hash] opts the optional parameters
|
@@ -165,25 +149,21 @@ module MailchimpTransactional
|
|
165
149
|
local_var_path = '/ips/delete-pool'
|
166
150
|
|
167
151
|
# http body (model)
|
168
|
-
|
169
|
-
data
|
170
|
-
:body => body,
|
171
|
-
:auth_names => auth_names,
|
172
|
-
:return_type => 'InlineResponse20022')
|
173
|
-
return data, status_code, headers
|
152
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
153
|
+
return data
|
174
154
|
end
|
175
|
-
#
|
176
|
-
# Retrieves information about a single dedicated
|
155
|
+
# Get ip info
|
156
|
+
# Retrieves information about a single dedicated IP.
|
177
157
|
# @param body
|
178
158
|
# @param [Hash] opts the optional parameters
|
179
159
|
# @return [InlineResponse20015]
|
180
160
|
def info(body = {}, opts = {})
|
181
|
-
data
|
161
|
+
data = info_with_http_info(body, opts)
|
182
162
|
data
|
183
163
|
end
|
184
164
|
|
185
|
-
#
|
186
|
-
# Retrieves information about a single dedicated
|
165
|
+
# Get ip info
|
166
|
+
# Retrieves information about a single dedicated IP.
|
187
167
|
# @param body
|
188
168
|
# @param [Hash] opts the optional parameters
|
189
169
|
# @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
|
@@ -195,24 +175,20 @@ module MailchimpTransactional
|
|
195
175
|
local_var_path = '/ips/info'
|
196
176
|
|
197
177
|
# http body (model)
|
198
|
-
|
199
|
-
data
|
200
|
-
:body => body,
|
201
|
-
:auth_names => auth_names,
|
202
|
-
:return_type => 'InlineResponse20015')
|
203
|
-
return data, status_code, headers
|
178
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
179
|
+
return data
|
204
180
|
end
|
205
|
-
#
|
181
|
+
# List ip addresses
|
206
182
|
# Lists your dedicated IPs.
|
207
183
|
# @param body
|
208
184
|
# @param [Hash] opts the optional parameters
|
209
185
|
# @return [Array<InlineResponse20014>]
|
210
186
|
def list(body = {}, opts = {})
|
211
|
-
data
|
187
|
+
data = list_with_http_info(body, opts)
|
212
188
|
data
|
213
189
|
end
|
214
190
|
|
215
|
-
#
|
191
|
+
# List ip addresses
|
216
192
|
# Lists your dedicated IPs.
|
217
193
|
# @param body
|
218
194
|
# @param [Hash] opts the optional parameters
|
@@ -225,24 +201,20 @@ module MailchimpTransactional
|
|
225
201
|
local_var_path = '/ips/list'
|
226
202
|
|
227
203
|
# http body (model)
|
228
|
-
|
229
|
-
data
|
230
|
-
:body => body,
|
231
|
-
:auth_names => auth_names,
|
232
|
-
:return_type => 'Array<InlineResponse20014>')
|
233
|
-
return data, status_code, headers
|
204
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
205
|
+
return data
|
234
206
|
end
|
235
|
-
#
|
207
|
+
# List ip pools
|
236
208
|
# Lists your dedicated IP pools.
|
237
209
|
# @param body
|
238
210
|
# @param [Hash] opts the optional parameters
|
239
211
|
# @return [Array<InlineResponse20020>]
|
240
212
|
def list_pools(body = {}, opts = {})
|
241
|
-
data
|
213
|
+
data = list_pools_with_http_info(body, opts)
|
242
214
|
data
|
243
215
|
end
|
244
216
|
|
245
|
-
#
|
217
|
+
# List ip pools
|
246
218
|
# Lists your dedicated IP pools.
|
247
219
|
# @param body
|
248
220
|
# @param [Hash] opts the optional parameters
|
@@ -255,24 +227,20 @@ module MailchimpTransactional
|
|
255
227
|
local_var_path = '/ips/list-pools'
|
256
228
|
|
257
229
|
# http body (model)
|
258
|
-
|
259
|
-
data
|
260
|
-
:body => body,
|
261
|
-
:auth_names => auth_names,
|
262
|
-
:return_type => 'Array<InlineResponse20020>')
|
263
|
-
return data, status_code, headers
|
230
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
231
|
+
return data
|
264
232
|
end
|
265
|
-
#
|
233
|
+
# Get ip pool info
|
266
234
|
# Describes a single dedicated IP pool.
|
267
235
|
# @param body
|
268
236
|
# @param [Hash] opts the optional parameters
|
269
237
|
# @return [InlineResponse20021]
|
270
238
|
def pool_info(body = {}, opts = {})
|
271
|
-
data
|
239
|
+
data = pool_info_with_http_info(body, opts)
|
272
240
|
data
|
273
241
|
end
|
274
242
|
|
275
|
-
#
|
243
|
+
# Get ip pool info
|
276
244
|
# Describes a single dedicated IP pool.
|
277
245
|
# @param body
|
278
246
|
# @param [Hash] opts the optional parameters
|
@@ -285,24 +253,20 @@ module MailchimpTransactional
|
|
285
253
|
local_var_path = '/ips/pool-info'
|
286
254
|
|
287
255
|
# http body (model)
|
288
|
-
|
289
|
-
data
|
290
|
-
:body => body,
|
291
|
-
:auth_names => auth_names,
|
292
|
-
:return_type => 'InlineResponse20021')
|
293
|
-
return data, status_code, headers
|
256
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
257
|
+
return data
|
294
258
|
end
|
295
|
-
#
|
259
|
+
# Request additional ip
|
296
260
|
# Requests an additional dedicated IP for your account. Accounts may have one outstanding request at any time, and provisioning requests are processed within 24 hours.
|
297
261
|
# @param body
|
298
262
|
# @param [Hash] opts the optional parameters
|
299
263
|
# @return [InlineResponse20016]
|
300
264
|
def provision(body = {}, opts = {})
|
301
|
-
data
|
265
|
+
data = provision_with_http_info(body, opts)
|
302
266
|
data
|
303
267
|
end
|
304
268
|
|
305
|
-
#
|
269
|
+
# Request additional ip
|
306
270
|
# Requests an additional dedicated IP for your account. Accounts may have one outstanding request at any time, and provisioning requests are processed within 24 hours.
|
307
271
|
# @param body
|
308
272
|
# @param [Hash] opts the optional parameters
|
@@ -315,24 +279,20 @@ module MailchimpTransactional
|
|
315
279
|
local_var_path = '/ips/provision'
|
316
280
|
|
317
281
|
# http body (model)
|
318
|
-
|
319
|
-
data
|
320
|
-
:body => body,
|
321
|
-
:auth_names => auth_names,
|
322
|
-
:return_type => 'InlineResponse20016')
|
323
|
-
return data, status_code, headers
|
282
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
283
|
+
return data
|
324
284
|
end
|
325
|
-
#
|
285
|
+
# Set custom dns
|
326
286
|
# Configures the custom DNS name for a dedicated IP.
|
327
287
|
# @param body
|
328
288
|
# @param [Hash] opts the optional parameters
|
329
289
|
# @return [InlineResponse20024]
|
330
290
|
def set_custom_dns(body = {}, opts = {})
|
331
|
-
data
|
291
|
+
data = set_custom_dns_with_http_info(body, opts)
|
332
292
|
data
|
333
293
|
end
|
334
294
|
|
335
|
-
#
|
295
|
+
# Set custom dns
|
336
296
|
# Configures the custom DNS name for a dedicated IP.
|
337
297
|
# @param body
|
338
298
|
# @param [Hash] opts the optional parameters
|
@@ -345,24 +305,20 @@ module MailchimpTransactional
|
|
345
305
|
local_var_path = '/ips/set-custom-dns'
|
346
306
|
|
347
307
|
# http body (model)
|
348
|
-
|
349
|
-
data
|
350
|
-
:body => body,
|
351
|
-
:auth_names => auth_names,
|
352
|
-
:return_type => 'InlineResponse20024')
|
353
|
-
return data, status_code, headers
|
308
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
309
|
+
return data
|
354
310
|
end
|
355
|
-
#
|
311
|
+
# Move ip to different pool
|
356
312
|
# Moves a dedicated IP to a different pool.
|
357
313
|
# @param body
|
358
314
|
# @param [Hash] opts the optional parameters
|
359
315
|
# @return [InlineResponse20018]
|
360
316
|
def set_pool(body = {}, opts = {})
|
361
|
-
data
|
317
|
+
data = set_pool_with_http_info(body, opts)
|
362
318
|
data
|
363
319
|
end
|
364
320
|
|
365
|
-
#
|
321
|
+
# Move ip to different pool
|
366
322
|
# Moves a dedicated IP to a different pool.
|
367
323
|
# @param body
|
368
324
|
# @param [Hash] opts the optional parameters
|
@@ -375,25 +331,21 @@ module MailchimpTransactional
|
|
375
331
|
local_var_path = '/ips/set-pool'
|
376
332
|
|
377
333
|
# http body (model)
|
378
|
-
|
379
|
-
data
|
380
|
-
:body => body,
|
381
|
-
:auth_names => auth_names,
|
382
|
-
:return_type => 'InlineResponse20018')
|
383
|
-
return data, status_code, headers
|
334
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
335
|
+
return data
|
384
336
|
end
|
385
|
-
#
|
386
|
-
# Begins the warmup process for a dedicated IP. During the warmup process,
|
337
|
+
# Start ip warmup
|
338
|
+
# Begins the warmup process for a dedicated IP. During the warmup process, the Transactional API will gradually increase the percentage of your mail that is sent over the warming-up IP, over a period of roughly 30 days. The rest of your mail will be sent over shared IPs or other dedicated IPs in the same pool.
|
387
339
|
# @param body
|
388
340
|
# @param [Hash] opts the optional parameters
|
389
341
|
# @return [InlineResponse20017]
|
390
342
|
def start_warmup(body = {}, opts = {})
|
391
|
-
data
|
343
|
+
data = start_warmup_with_http_info(body, opts)
|
392
344
|
data
|
393
345
|
end
|
394
346
|
|
395
|
-
#
|
396
|
-
# Begins the warmup process for a dedicated IP. During the warmup process,
|
347
|
+
# Start ip warmup
|
348
|
+
# Begins the warmup process for a dedicated IP. During the warmup process, the Transactional API will gradually increase the percentage of your mail that is sent over the warming-up IP, over a period of roughly 30 days. The rest of your mail will be sent over shared IPs or other dedicated IPs in the same pool.
|
397
349
|
# @param body
|
398
350
|
# @param [Hash] opts the optional parameters
|
399
351
|
# @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
|
@@ -405,12 +357,8 @@ module MailchimpTransactional
|
|
405
357
|
local_var_path = '/ips/start-warmup'
|
406
358
|
|
407
359
|
# http body (model)
|
408
|
-
|
409
|
-
data
|
410
|
-
:body => body,
|
411
|
-
:auth_names => auth_names,
|
412
|
-
:return_type => 'InlineResponse20017')
|
413
|
-
return data, status_code, headers
|
360
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
361
|
+
return data
|
414
362
|
end
|
415
363
|
end
|
416
364
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.0.
|
6
|
+
OpenAPI spec version: 1.0.8
|
7
7
|
Contact: apihelp@mandrill.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
@@ -22,18 +22,18 @@ module MailchimpTransactional
|
|
22
22
|
@api_key = api_key
|
23
23
|
@api_client = api_client
|
24
24
|
end
|
25
|
-
#
|
26
|
-
#
|
25
|
+
# Cancel scheduled email
|
26
|
+
# Cancels a scheduled email.
|
27
27
|
# @param body
|
28
28
|
# @param [Hash] opts the optional parameters
|
29
29
|
# @return [Array<InlineResponse20032>]
|
30
30
|
def cancel_scheduled(body = {}, opts = {})
|
31
|
-
data
|
31
|
+
data = cancel_scheduled_with_http_info(body, opts)
|
32
32
|
data
|
33
33
|
end
|
34
34
|
|
35
|
-
#
|
36
|
-
#
|
35
|
+
# Cancel scheduled email
|
36
|
+
# Cancels a scheduled email.
|
37
37
|
# @param body
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [Array<(Array<InlineResponse20032>, Fixnum, Hash)>] Array<InlineResponse20032> data, response status code and response headers
|
@@ -45,25 +45,21 @@ module MailchimpTransactional
|
|
45
45
|
local_var_path = '/messages/cancel-scheduled'
|
46
46
|
|
47
47
|
# http body (model)
|
48
|
-
|
49
|
-
data
|
50
|
-
:body => body,
|
51
|
-
:auth_names => auth_names,
|
52
|
-
:return_type => 'Array<InlineResponse20032>')
|
53
|
-
return data, status_code, headers
|
48
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
49
|
+
return data
|
54
50
|
end
|
55
|
-
#
|
56
|
-
# Get the full content of a recently sent message
|
51
|
+
# Get message content
|
52
|
+
# Get the full content of a recently sent message.
|
57
53
|
# @param body
|
58
54
|
# @param [Hash] opts the optional parameters
|
59
55
|
# @return [InlineResponse20030]
|
60
56
|
def content(body = {}, opts = {})
|
61
|
-
data
|
57
|
+
data = content_with_http_info(body, opts)
|
62
58
|
data
|
63
59
|
end
|
64
60
|
|
65
|
-
#
|
66
|
-
# Get the full content of a recently sent message
|
61
|
+
# Get message content
|
62
|
+
# Get the full content of a recently sent message.
|
67
63
|
# @param body
|
68
64
|
# @param [Hash] opts the optional parameters
|
69
65
|
# @return [Array<(InlineResponse20030, Fixnum, Hash)>] InlineResponse20030 data, response status code and response headers
|
@@ -75,25 +71,21 @@ module MailchimpTransactional
|
|
75
71
|
local_var_path = '/messages/content'
|
76
72
|
|
77
73
|
# http body (model)
|
78
|
-
|
79
|
-
data
|
80
|
-
:body => body,
|
81
|
-
:auth_names => auth_names,
|
82
|
-
:return_type => 'InlineResponse20030')
|
83
|
-
return data, status_code, headers
|
74
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
75
|
+
return data
|
84
76
|
end
|
85
|
-
#
|
86
|
-
# Get the information for a single recently sent message
|
77
|
+
# Get message info
|
78
|
+
# Get the information for a single recently sent message.
|
87
79
|
# @param body
|
88
80
|
# @param [Hash] opts the optional parameters
|
89
81
|
# @return [InlineResponse20029]
|
90
82
|
def info(body = {}, opts = {})
|
91
|
-
data
|
83
|
+
data = info_with_http_info(body, opts)
|
92
84
|
data
|
93
85
|
end
|
94
86
|
|
95
|
-
#
|
96
|
-
# Get the information for a single recently sent message
|
87
|
+
# Get message info
|
88
|
+
# Get the information for a single recently sent message.
|
97
89
|
# @param body
|
98
90
|
# @param [Hash] opts the optional parameters
|
99
91
|
# @return [Array<(InlineResponse20029, Fixnum, Hash)>] InlineResponse20029 data, response status code and response headers
|
@@ -105,24 +97,20 @@ module MailchimpTransactional
|
|
105
97
|
local_var_path = '/messages/info'
|
106
98
|
|
107
99
|
# http body (model)
|
108
|
-
|
109
|
-
data
|
110
|
-
:body => body,
|
111
|
-
:auth_names => auth_names,
|
112
|
-
:return_type => 'InlineResponse20029')
|
113
|
-
return data, status_code, headers
|
100
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
101
|
+
return data
|
114
102
|
end
|
115
|
-
#
|
103
|
+
# List scheduled emails
|
116
104
|
# Queries your scheduled emails.
|
117
105
|
# @param body
|
118
106
|
# @param [Hash] opts the optional parameters
|
119
107
|
# @return [Array<InlineResponse20032>]
|
120
108
|
def list_scheduled(body = {}, opts = {})
|
121
|
-
data
|
109
|
+
data = list_scheduled_with_http_info(body, opts)
|
122
110
|
data
|
123
111
|
end
|
124
112
|
|
125
|
-
#
|
113
|
+
# List scheduled emails
|
126
114
|
# Queries your scheduled emails.
|
127
115
|
# @param body
|
128
116
|
# @param [Hash] opts the optional parameters
|
@@ -135,25 +123,21 @@ module MailchimpTransactional
|
|
135
123
|
local_var_path = '/messages/list-scheduled'
|
136
124
|
|
137
125
|
# http body (model)
|
138
|
-
|
139
|
-
data
|
140
|
-
:body => body,
|
141
|
-
:auth_names => auth_names,
|
142
|
-
:return_type => 'Array<InlineResponse20032>')
|
143
|
-
return data, status_code, headers
|
126
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
127
|
+
return data
|
144
128
|
end
|
145
|
-
#
|
146
|
-
# Parse the full MIME document for an email message, returning the content of the message broken into its constituent pieces
|
129
|
+
# Parse mime document
|
130
|
+
# Parse the full MIME document for an email message, returning the content of the message broken into its constituent pieces.
|
147
131
|
# @param body
|
148
132
|
# @param [Hash] opts the optional parameters
|
149
133
|
# @return [InlineResponse20031]
|
150
134
|
def parse(body = {}, opts = {})
|
151
|
-
data
|
135
|
+
data = parse_with_http_info(body, opts)
|
152
136
|
data
|
153
137
|
end
|
154
138
|
|
155
|
-
#
|
156
|
-
# Parse the full MIME document for an email message, returning the content of the message broken into its constituent pieces
|
139
|
+
# Parse mime document
|
140
|
+
# Parse the full MIME document for an email message, returning the content of the message broken into its constituent pieces.
|
157
141
|
# @param body
|
158
142
|
# @param [Hash] opts the optional parameters
|
159
143
|
# @return [Array<(InlineResponse20031, Fixnum, Hash)>] InlineResponse20031 data, response status code and response headers
|
@@ -165,25 +149,21 @@ module MailchimpTransactional
|
|
165
149
|
local_var_path = '/messages/parse'
|
166
150
|
|
167
151
|
# http body (model)
|
168
|
-
|
169
|
-
data
|
170
|
-
:body => body,
|
171
|
-
:auth_names => auth_names,
|
172
|
-
:return_type => 'InlineResponse20031')
|
173
|
-
return data, status_code, headers
|
152
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
153
|
+
return data
|
174
154
|
end
|
175
|
-
#
|
176
|
-
#
|
155
|
+
# Reschedule email
|
156
|
+
# Reschedules a scheduled email.
|
177
157
|
# @param body
|
178
158
|
# @param [Hash] opts the optional parameters
|
179
159
|
# @return [Array<InlineResponse20032>]
|
180
160
|
def reschedule(body = {}, opts = {})
|
181
|
-
data
|
161
|
+
data = reschedule_with_http_info(body, opts)
|
182
162
|
data
|
183
163
|
end
|
184
164
|
|
185
|
-
#
|
186
|
-
#
|
165
|
+
# Reschedule email
|
166
|
+
# Reschedules a scheduled email.
|
187
167
|
# @param body
|
188
168
|
# @param [Hash] opts the optional parameters
|
189
169
|
# @return [Array<(Array<InlineResponse20032>, Fixnum, Hash)>] Array<InlineResponse20032> data, response status code and response headers
|
@@ -195,24 +175,20 @@ module MailchimpTransactional
|
|
195
175
|
local_var_path = '/messages/reschedule'
|
196
176
|
|
197
177
|
# http body (model)
|
198
|
-
|
199
|
-
data
|
200
|
-
:body => body,
|
201
|
-
:auth_names => auth_names,
|
202
|
-
:return_type => 'Array<InlineResponse20032>')
|
203
|
-
return data, status_code, headers
|
178
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
179
|
+
return data
|
204
180
|
end
|
205
|
-
#
|
181
|
+
# Search messages by date
|
206
182
|
# Search recently sent messages and optionally narrow by date range, tags, senders, and API keys. If no date range is specified, results within the last 7 days are returned. This method may be called up to 20 times per minute. If you need the data more often, you can use /messages/info.json to get the information for a single message, or webhooks to push activity to your own application for querying.
|
207
183
|
# @param body
|
208
184
|
# @param [Hash] opts the optional parameters
|
209
185
|
# @return [Array<InlineResponse20027>]
|
210
186
|
def search(body = {}, opts = {})
|
211
|
-
data
|
187
|
+
data = search_with_http_info(body, opts)
|
212
188
|
data
|
213
189
|
end
|
214
190
|
|
215
|
-
#
|
191
|
+
# Search messages by date
|
216
192
|
# Search recently sent messages and optionally narrow by date range, tags, senders, and API keys. If no date range is specified, results within the last 7 days are returned. This method may be called up to 20 times per minute. If you need the data more often, you can use /messages/info.json to get the information for a single message, or webhooks to push activity to your own application for querying.
|
217
193
|
# @param body
|
218
194
|
# @param [Hash] opts the optional parameters
|
@@ -225,25 +201,21 @@ module MailchimpTransactional
|
|
225
201
|
local_var_path = '/messages/search'
|
226
202
|
|
227
203
|
# http body (model)
|
228
|
-
|
229
|
-
data
|
230
|
-
:body => body,
|
231
|
-
:auth_names => auth_names,
|
232
|
-
:return_type => 'Array<InlineResponse20027>')
|
233
|
-
return data, status_code, headers
|
204
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
205
|
+
return data
|
234
206
|
end
|
235
|
-
#
|
236
|
-
# Search the content of recently sent messages and return the aggregated hourly stats for matching messages
|
207
|
+
# Search messages by hour
|
208
|
+
# Search the content of recently sent messages and return the aggregated hourly stats for matching messages.
|
237
209
|
# @param body
|
238
210
|
# @param [Hash] opts the optional parameters
|
239
211
|
# @return [Array<InlineResponse20028>]
|
240
212
|
def search_time_series(body = {}, opts = {})
|
241
|
-
data
|
213
|
+
data = search_time_series_with_http_info(body, opts)
|
242
214
|
data
|
243
215
|
end
|
244
216
|
|
245
|
-
#
|
246
|
-
# Search the content of recently sent messages and return the aggregated hourly stats for matching messages
|
217
|
+
# Search messages by hour
|
218
|
+
# Search the content of recently sent messages and return the aggregated hourly stats for matching messages.
|
247
219
|
# @param body
|
248
220
|
# @param [Hash] opts the optional parameters
|
249
221
|
# @return [Array<(Array<InlineResponse20028>, Fixnum, Hash)>] Array<InlineResponse20028> data, response status code and response headers
|
@@ -255,25 +227,21 @@ module MailchimpTransactional
|
|
255
227
|
local_var_path = '/messages/search-time-series'
|
256
228
|
|
257
229
|
# http body (model)
|
258
|
-
|
259
|
-
data
|
260
|
-
:body => body,
|
261
|
-
:auth_names => auth_names,
|
262
|
-
:return_type => 'Array<InlineResponse20028>')
|
263
|
-
return data, status_code, headers
|
230
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
231
|
+
return data
|
264
232
|
end
|
265
|
-
#
|
266
|
-
# Send a new transactional message through
|
233
|
+
# Send new message
|
234
|
+
# Send a new transactional message through the Transactional API.
|
267
235
|
# @param body
|
268
236
|
# @param [Hash] opts the optional parameters
|
269
237
|
# @return [Array<InlineResponse20025>]
|
270
238
|
def send(body = {}, opts = {})
|
271
|
-
data
|
239
|
+
data = send_with_http_info(body, opts)
|
272
240
|
data
|
273
241
|
end
|
274
242
|
|
275
|
-
#
|
276
|
-
# Send a new transactional message through
|
243
|
+
# Send new message
|
244
|
+
# Send a new transactional message through the Transactional API.
|
277
245
|
# @param body
|
278
246
|
# @param [Hash] opts the optional parameters
|
279
247
|
# @return [Array<(Array<InlineResponse20025>, Fixnum, Hash)>] Array<InlineResponse20025> data, response status code and response headers
|
@@ -285,25 +253,21 @@ module MailchimpTransactional
|
|
285
253
|
local_var_path = '/messages/send'
|
286
254
|
|
287
255
|
# http body (model)
|
288
|
-
|
289
|
-
data
|
290
|
-
:body => body,
|
291
|
-
:auth_names => auth_names,
|
292
|
-
:return_type => 'Array<InlineResponse20025>')
|
293
|
-
return data, status_code, headers
|
256
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
257
|
+
return data
|
294
258
|
end
|
295
|
-
#
|
296
|
-
# Take a raw MIME document for a message, and send it exactly as if it were sent through
|
259
|
+
# Send mime document
|
260
|
+
# Take a raw MIME document for a message, and send it exactly as if it were sent through the Transactional API's SMTP servers.
|
297
261
|
# @param body
|
298
262
|
# @param [Hash] opts the optional parameters
|
299
263
|
# @return [Object]
|
300
264
|
def send_raw(body = {}, opts = {})
|
301
|
-
data
|
265
|
+
data = send_raw_with_http_info(body, opts)
|
302
266
|
data
|
303
267
|
end
|
304
268
|
|
305
|
-
#
|
306
|
-
# Take a raw MIME document for a message, and send it exactly as if it were sent through
|
269
|
+
# Send mime document
|
270
|
+
# Take a raw MIME document for a message, and send it exactly as if it were sent through the Transactional API's SMTP servers.
|
307
271
|
# @param body
|
308
272
|
# @param [Hash] opts the optional parameters
|
309
273
|
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
@@ -315,25 +279,21 @@ module MailchimpTransactional
|
|
315
279
|
local_var_path = '/messages/send-raw'
|
316
280
|
|
317
281
|
# http body (model)
|
318
|
-
|
319
|
-
data
|
320
|
-
:body => body,
|
321
|
-
:auth_names => auth_names,
|
322
|
-
:return_type => 'Object')
|
323
|
-
return data, status_code, headers
|
282
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
283
|
+
return data
|
324
284
|
end
|
325
|
-
#
|
326
|
-
# Send a new transactional message through
|
285
|
+
# Send using message template
|
286
|
+
# Send a new transactional message through the Transactional API using a template.
|
327
287
|
# @param body
|
328
288
|
# @param [Hash] opts the optional parameters
|
329
289
|
# @return [Array<InlineResponse20026>]
|
330
290
|
def send_template(body = {}, opts = {})
|
331
|
-
data
|
291
|
+
data = send_template_with_http_info(body, opts)
|
332
292
|
data
|
333
293
|
end
|
334
294
|
|
335
|
-
#
|
336
|
-
# Send a new transactional message through
|
295
|
+
# Send using message template
|
296
|
+
# Send a new transactional message through the Transactional API using a template.
|
337
297
|
# @param body
|
338
298
|
# @param [Hash] opts the optional parameters
|
339
299
|
# @return [Array<(Array<InlineResponse20026>, Fixnum, Hash)>] Array<InlineResponse20026> data, response status code and response headers
|
@@ -345,12 +305,8 @@ module MailchimpTransactional
|
|
345
305
|
local_var_path = '/messages/send-template'
|
346
306
|
|
347
307
|
# http body (model)
|
348
|
-
|
349
|
-
data
|
350
|
-
:body => body,
|
351
|
-
:auth_names => auth_names,
|
352
|
-
:return_type => 'Array<InlineResponse20026>')
|
353
|
-
return data, status_code, headers
|
308
|
+
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
309
|
+
return data
|
354
310
|
end
|
355
311
|
end
|
356
312
|
end
|