MailchimpTransactional 1.0.6 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
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
- # /ips/cancel-warmup
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, _status_code, _headers = cancel_warmup_with_http_info(body, opts)
31
+ data = cancel_warmup_with_http_info(body, opts)
32
32
  data
33
33
  end
34
34
 
35
- # /ips/cancel-warmup
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
- 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 => '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
- # /ips/check-custom-dns
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, _status_code, _headers = check_custom_dns_with_http_info(body, opts)
57
+ data = check_custom_dns_with_http_info(body, opts)
62
58
  data
63
59
  end
64
60
 
65
- # /ips/check-custom-dns
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
- 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 => '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
- # /ips/create-pool
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, _status_code, _headers = create_pool_with_http_info(body, opts)
83
+ data = create_pool_with_http_info(body, opts)
92
84
  data
93
85
  end
94
86
 
95
- # /ips/create-pool
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
- 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 => '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
- # /ips/delete
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, _status_code, _headers = delete_with_http_info(body, opts)
109
+ data = delete_with_http_info(body, opts)
122
110
  data
123
111
  end
124
112
 
125
- # /ips/delete
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
- 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 => '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
- # /ips/delete-pool
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, _status_code, _headers = delete_pool_with_http_info(body, opts)
135
+ data = delete_pool_with_http_info(body, opts)
152
136
  data
153
137
  end
154
138
 
155
- # /ips/delete-pool
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
- 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 => '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
- # /ips/info
176
- # Retrieves information about a single dedicated ip.
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, _status_code, _headers = info_with_http_info(body, opts)
161
+ data = info_with_http_info(body, opts)
182
162
  data
183
163
  end
184
164
 
185
- # /ips/info
186
- # Retrieves information about a single dedicated ip.
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
- 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 => '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
- # /ips/list
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, _status_code, _headers = list_with_http_info(body, opts)
187
+ data = list_with_http_info(body, opts)
212
188
  data
213
189
  end
214
190
 
215
- # /ips/list
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
- 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<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
- # /ips/list-pools
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, _status_code, _headers = list_pools_with_http_info(body, opts)
213
+ data = list_pools_with_http_info(body, opts)
242
214
  data
243
215
  end
244
216
 
245
- # /ips/list-pools
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
- 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 => '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
- # /ips/pool-info
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, _status_code, _headers = pool_info_with_http_info(body, opts)
239
+ data = pool_info_with_http_info(body, opts)
272
240
  data
273
241
  end
274
242
 
275
- # /ips/pool-info
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
- auth_names = []
289
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
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
- # /ips/provision
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, _status_code, _headers = provision_with_http_info(body, opts)
265
+ data = provision_with_http_info(body, opts)
302
266
  data
303
267
  end
304
268
 
305
- # /ips/provision
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
- auth_names = []
319
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
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
- # /ips/set-custom-dns
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, _status_code, _headers = set_custom_dns_with_http_info(body, opts)
291
+ data = set_custom_dns_with_http_info(body, opts)
332
292
  data
333
293
  end
334
294
 
335
- # /ips/set-custom-dns
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
- auth_names = []
349
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
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
- # /ips/set-pool
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, _status_code, _headers = set_pool_with_http_info(body, opts)
317
+ data = set_pool_with_http_info(body, opts)
362
318
  data
363
319
  end
364
320
 
365
- # /ips/set-pool
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
- auth_names = []
379
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
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
- # /ips/start-warmup
386
- # Begins the warmup process for a dedicated IP. During the warmup process, Mandrill 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.
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, _status_code, _headers = start_warmup_with_http_info(body, opts)
343
+ data = start_warmup_with_http_info(body, opts)
392
344
  data
393
345
  end
394
346
 
395
- # /ips/start-warmup
396
- # Begins the warmup process for a dedicated IP. During the warmup process, Mandrill 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.
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
- auth_names = []
409
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
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
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
- # /messages/cancel-scheduled
26
- # Queries your scheduled emails.
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, _status_code, _headers = cancel_scheduled_with_http_info(body, opts)
31
+ data = cancel_scheduled_with_http_info(body, opts)
32
32
  data
33
33
  end
34
34
 
35
- # /messages/cancel-scheduled
36
- # Queries your scheduled emails.
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
- 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<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
- # /messages/content
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, _status_code, _headers = content_with_http_info(body, opts)
57
+ data = content_with_http_info(body, opts)
62
58
  data
63
59
  end
64
60
 
65
- # /messages/content
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
- 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 => '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
- # /messages/info
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, _status_code, _headers = info_with_http_info(body, opts)
83
+ data = info_with_http_info(body, opts)
92
84
  data
93
85
  end
94
86
 
95
- # /messages/info
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
- 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 => '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
- # /messages/list-scheduled
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, _status_code, _headers = list_scheduled_with_http_info(body, opts)
109
+ data = list_scheduled_with_http_info(body, opts)
122
110
  data
123
111
  end
124
112
 
125
- # /messages/list-scheduled
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
- 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<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
- # /messages/parse
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, _status_code, _headers = parse_with_http_info(body, opts)
135
+ data = parse_with_http_info(body, opts)
152
136
  data
153
137
  end
154
138
 
155
- # /messages/parse
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
- 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 => '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
- # /messages/reschedule
176
- # Queries your scheduled emails.
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, _status_code, _headers = reschedule_with_http_info(body, opts)
161
+ data = reschedule_with_http_info(body, opts)
182
162
  data
183
163
  end
184
164
 
185
- # /messages/reschedule
186
- # Queries your scheduled emails.
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
- 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<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
- # /messages/search
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, _status_code, _headers = search_with_http_info(body, opts)
187
+ data = search_with_http_info(body, opts)
212
188
  data
213
189
  end
214
190
 
215
- # /messages/search
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
- 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<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
- # /messages/search-time-series
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, _status_code, _headers = search_time_series_with_http_info(body, opts)
213
+ data = search_time_series_with_http_info(body, opts)
242
214
  data
243
215
  end
244
216
 
245
- # /messages/search-time-series
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
- 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 => '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
- # /messages/send
266
- # Send a new transactional message through Mandrill
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, _status_code, _headers = send_with_http_info(body, opts)
239
+ data = send_with_http_info(body, opts)
272
240
  data
273
241
  end
274
242
 
275
- # /messages/send
276
- # Send a new transactional message through Mandrill
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
- auth_names = []
289
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
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
- # /messages/send-raw
296
- # Take a raw MIME document for a message, and send it exactly as if it were sent through Mandrill's SMTP servers
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, _status_code, _headers = send_raw_with_http_info(body, opts)
265
+ data = send_raw_with_http_info(body, opts)
302
266
  data
303
267
  end
304
268
 
305
- # /messages/send-raw
306
- # Take a raw MIME document for a message, and send it exactly as if it were sent through Mandrill&#39;s SMTP servers
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&#39;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
- auth_names = []
319
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
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
- # /messages/send-template
326
- # Send a new transactional message through Mandrill
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, _status_code, _headers = send_template_with_http_info(body, opts)
291
+ data = send_template_with_http_info(body, opts)
332
292
  data
333
293
  end
334
294
 
335
- # /messages/send-template
336
- # Send a new transactional message through Mandrill
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
- auth_names = []
349
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
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