MailchimpTransactional 1.0.9 → 1.0.11
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 +4 -4
- data/Gemfile +1 -1
- data/LICENSE +53 -0
- data/MailchimpTransactional.gemspec +2 -2
- data/README.md +3 -3
- data/lib/MailchimpTransactional.rb +59 -75
- data/lib/MailchimpTransactional/api/exports_api.rb +13 -96
- data/lib/MailchimpTransactional/api/inbound_api.rb +21 -168
- data/lib/MailchimpTransactional/api/ips_api.rb +29 -240
- data/lib/MailchimpTransactional/api/messages_api.rb +25 -204
- data/lib/MailchimpTransactional/api/metadata_api.rb +11 -78
- data/lib/MailchimpTransactional/api/rejects_api.rb +9 -60
- data/lib/MailchimpTransactional/api/senders_api.rb +17 -132
- data/lib/MailchimpTransactional/api/subaccounts_api.rb +17 -132
- data/lib/MailchimpTransactional/api/tags_api.rb +13 -96
- data/lib/MailchimpTransactional/api/templates_api.rb +19 -150
- data/lib/MailchimpTransactional/api/urls_api.rb +15 -114
- data/lib/MailchimpTransactional/api/users_api.rb +11 -78
- data/lib/MailchimpTransactional/api/webhooks_api.rb +13 -96
- data/lib/MailchimpTransactional/api/whitelists_api.rb +9 -60
- data/lib/MailchimpTransactional/api_client.rb +31 -116
- data/lib/MailchimpTransactional/api_error.rb +1 -1
- data/lib/MailchimpTransactional/configuration.rb +1 -1
- data/lib/MailchimpTransactional/version.rb +2 -2
- metadata +6 -11
@@ -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.11
|
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
|
@@ -16,45 +16,17 @@ module MailchimpTransactional
|
|
16
16
|
class IpsApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
def initialize(api_key = '', api_client = ApiClient.default)
|
22
|
-
@api_key = api_key
|
19
|
+
def initialize(api_client = ApiClient.default)
|
23
20
|
@api_client = api_client
|
24
21
|
end
|
25
|
-
# Cancel ip warmup
|
26
|
-
# Cancels the warmup process for a dedicated IP.
|
27
|
-
# @param body
|
28
|
-
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [InlineResponse20017]
|
30
|
-
def cancel_warmup(body = {}, opts = {})
|
31
|
-
data = cancel_warmup_with_http_info(body, opts)
|
32
|
-
data
|
33
|
-
end
|
34
22
|
|
35
23
|
# Cancel ip warmup
|
36
24
|
# Cancels the warmup process for a dedicated IP.
|
37
25
|
# @param body
|
38
26
|
# @param [Hash] opts the optional parameters
|
39
27
|
# @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
|
40
|
-
def
|
41
|
-
|
42
|
-
body[:key] = @api_key
|
43
|
-
|
44
|
-
# resource path
|
45
|
-
local_var_path = '/ips/cancel-warmup'
|
46
|
-
|
47
|
-
# http body (model)
|
48
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
49
|
-
return data
|
50
|
-
end
|
51
|
-
# Test custom dns
|
52
|
-
# Tests whether a domain name is valid for use as the custom reverse DNS for a dedicated IP.
|
53
|
-
# @param body
|
54
|
-
# @param [Hash] opts the optional parameters
|
55
|
-
# @return [InlineResponse20023]
|
56
|
-
def check_custom_dns(body = {}, opts = {})
|
57
|
-
data = check_custom_dns_with_http_info(body, opts)
|
28
|
+
def cancel_warmup(body = {})
|
29
|
+
data = @api_client.call_api(:POST, '/ips/cancel-warmup', body)
|
58
30
|
data
|
59
31
|
end
|
60
32
|
|
@@ -63,24 +35,8 @@ module MailchimpTransactional
|
|
63
35
|
# @param body
|
64
36
|
# @param [Hash] opts the optional parameters
|
65
37
|
# @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
|
66
|
-
def
|
67
|
-
|
68
|
-
body[:key] = @api_key
|
69
|
-
|
70
|
-
# resource path
|
71
|
-
local_var_path = '/ips/check-custom-dns'
|
72
|
-
|
73
|
-
# http body (model)
|
74
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
75
|
-
return data
|
76
|
-
end
|
77
|
-
# Add ip pool
|
78
|
-
# Creates a pool and returns it. If a pool already exists with this name, no action will be performed.
|
79
|
-
# @param body
|
80
|
-
# @param [Hash] opts the optional parameters
|
81
|
-
# @return [InlineResponse20021]
|
82
|
-
def create_pool(body = {}, opts = {})
|
83
|
-
data = create_pool_with_http_info(body, opts)
|
38
|
+
def check_custom_dns(body = {})
|
39
|
+
data = @api_client.call_api(:POST, '/ips/check-custom-dns', body)
|
84
40
|
data
|
85
41
|
end
|
86
42
|
|
@@ -89,24 +45,8 @@ module MailchimpTransactional
|
|
89
45
|
# @param body
|
90
46
|
# @param [Hash] opts the optional parameters
|
91
47
|
# @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
|
92
|
-
def
|
93
|
-
|
94
|
-
body[:key] = @api_key
|
95
|
-
|
96
|
-
# resource path
|
97
|
-
local_var_path = '/ips/create-pool'
|
98
|
-
|
99
|
-
# http body (model)
|
100
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
101
|
-
return data
|
102
|
-
end
|
103
|
-
# Delete ip address
|
104
|
-
# Deletes a dedicated IP. This is permanent and cannot be undone.
|
105
|
-
# @param body
|
106
|
-
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [InlineResponse20019]
|
108
|
-
def delete(body = {}, opts = {})
|
109
|
-
data = delete_with_http_info(body, opts)
|
48
|
+
def create_pool(body = {})
|
49
|
+
data = @api_client.call_api(:POST, '/ips/create-pool', body)
|
110
50
|
data
|
111
51
|
end
|
112
52
|
|
@@ -115,24 +55,8 @@ module MailchimpTransactional
|
|
115
55
|
# @param body
|
116
56
|
# @param [Hash] opts the optional parameters
|
117
57
|
# @return [Array<(InlineResponse20019, Fixnum, Hash)>] InlineResponse20019 data, response status code and response headers
|
118
|
-
def
|
119
|
-
|
120
|
-
body[:key] = @api_key
|
121
|
-
|
122
|
-
# resource path
|
123
|
-
local_var_path = '/ips/delete'
|
124
|
-
|
125
|
-
# http body (model)
|
126
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
127
|
-
return data
|
128
|
-
end
|
129
|
-
# Delete ip pool
|
130
|
-
# Deletes a pool. A pool must be empty before you can delete it, and you cannot delete your default pool.
|
131
|
-
# @param body
|
132
|
-
# @param [Hash] opts the optional parameters
|
133
|
-
# @return [InlineResponse20022]
|
134
|
-
def delete_pool(body = {}, opts = {})
|
135
|
-
data = delete_pool_with_http_info(body, opts)
|
58
|
+
def delete(body = {})
|
59
|
+
data = @api_client.call_api(:POST, '/ips/delete', body)
|
136
60
|
data
|
137
61
|
end
|
138
62
|
|
@@ -141,24 +65,8 @@ module MailchimpTransactional
|
|
141
65
|
# @param body
|
142
66
|
# @param [Hash] opts the optional parameters
|
143
67
|
# @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
|
144
|
-
def
|
145
|
-
|
146
|
-
body[:key] = @api_key
|
147
|
-
|
148
|
-
# resource path
|
149
|
-
local_var_path = '/ips/delete-pool'
|
150
|
-
|
151
|
-
# http body (model)
|
152
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
153
|
-
return data
|
154
|
-
end
|
155
|
-
# Get ip info
|
156
|
-
# Retrieves information about a single dedicated IP.
|
157
|
-
# @param body
|
158
|
-
# @param [Hash] opts the optional parameters
|
159
|
-
# @return [InlineResponse20015]
|
160
|
-
def info(body = {}, opts = {})
|
161
|
-
data = info_with_http_info(body, opts)
|
68
|
+
def delete_pool(body = {})
|
69
|
+
data = @api_client.call_api(:POST, '/ips/delete-pool', body)
|
162
70
|
data
|
163
71
|
end
|
164
72
|
|
@@ -167,24 +75,8 @@ module MailchimpTransactional
|
|
167
75
|
# @param body
|
168
76
|
# @param [Hash] opts the optional parameters
|
169
77
|
# @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
|
170
|
-
def
|
171
|
-
|
172
|
-
body[:key] = @api_key
|
173
|
-
|
174
|
-
# resource path
|
175
|
-
local_var_path = '/ips/info'
|
176
|
-
|
177
|
-
# http body (model)
|
178
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
179
|
-
return data
|
180
|
-
end
|
181
|
-
# List ip addresses
|
182
|
-
# Lists your dedicated IPs.
|
183
|
-
# @param body
|
184
|
-
# @param [Hash] opts the optional parameters
|
185
|
-
# @return [Array<InlineResponse20014>]
|
186
|
-
def list(body = {}, opts = {})
|
187
|
-
data = list_with_http_info(body, opts)
|
78
|
+
def info(body = {})
|
79
|
+
data = @api_client.call_api(:POST, '/ips/info', body)
|
188
80
|
data
|
189
81
|
end
|
190
82
|
|
@@ -193,24 +85,8 @@ module MailchimpTransactional
|
|
193
85
|
# @param body
|
194
86
|
# @param [Hash] opts the optional parameters
|
195
87
|
# @return [Array<(Array<InlineResponse20014>, Fixnum, Hash)>] Array<InlineResponse20014> data, response status code and response headers
|
196
|
-
def
|
197
|
-
|
198
|
-
body[:key] = @api_key
|
199
|
-
|
200
|
-
# resource path
|
201
|
-
local_var_path = '/ips/list'
|
202
|
-
|
203
|
-
# http body (model)
|
204
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
205
|
-
return data
|
206
|
-
end
|
207
|
-
# List ip pools
|
208
|
-
# Lists your dedicated IP pools.
|
209
|
-
# @param body
|
210
|
-
# @param [Hash] opts the optional parameters
|
211
|
-
# @return [Array<InlineResponse20020>]
|
212
|
-
def list_pools(body = {}, opts = {})
|
213
|
-
data = list_pools_with_http_info(body, opts)
|
88
|
+
def list(body = {})
|
89
|
+
data = @api_client.call_api(:POST, '/ips/list', body)
|
214
90
|
data
|
215
91
|
end
|
216
92
|
|
@@ -219,24 +95,8 @@ module MailchimpTransactional
|
|
219
95
|
# @param body
|
220
96
|
# @param [Hash] opts the optional parameters
|
221
97
|
# @return [Array<(Array<InlineResponse20020>, Fixnum, Hash)>] Array<InlineResponse20020> data, response status code and response headers
|
222
|
-
def
|
223
|
-
|
224
|
-
body[:key] = @api_key
|
225
|
-
|
226
|
-
# resource path
|
227
|
-
local_var_path = '/ips/list-pools'
|
228
|
-
|
229
|
-
# http body (model)
|
230
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
231
|
-
return data
|
232
|
-
end
|
233
|
-
# Get ip pool info
|
234
|
-
# Describes a single dedicated IP pool.
|
235
|
-
# @param body
|
236
|
-
# @param [Hash] opts the optional parameters
|
237
|
-
# @return [InlineResponse20021]
|
238
|
-
def pool_info(body = {}, opts = {})
|
239
|
-
data = pool_info_with_http_info(body, opts)
|
98
|
+
def list_pools(body = {})
|
99
|
+
data = @api_client.call_api(:POST, '/ips/list-pools', body)
|
240
100
|
data
|
241
101
|
end
|
242
102
|
|
@@ -245,24 +105,8 @@ module MailchimpTransactional
|
|
245
105
|
# @param body
|
246
106
|
# @param [Hash] opts the optional parameters
|
247
107
|
# @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
|
248
|
-
def
|
249
|
-
|
250
|
-
body[:key] = @api_key
|
251
|
-
|
252
|
-
# resource path
|
253
|
-
local_var_path = '/ips/pool-info'
|
254
|
-
|
255
|
-
# http body (model)
|
256
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
257
|
-
return data
|
258
|
-
end
|
259
|
-
# Request additional ip
|
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.
|
261
|
-
# @param body
|
262
|
-
# @param [Hash] opts the optional parameters
|
263
|
-
# @return [InlineResponse20016]
|
264
|
-
def provision(body = {}, opts = {})
|
265
|
-
data = provision_with_http_info(body, opts)
|
108
|
+
def pool_info(body = {})
|
109
|
+
data = @api_client.call_api(:POST, '/ips/pool-info', body)
|
266
110
|
data
|
267
111
|
end
|
268
112
|
|
@@ -271,24 +115,8 @@ module MailchimpTransactional
|
|
271
115
|
# @param body
|
272
116
|
# @param [Hash] opts the optional parameters
|
273
117
|
# @return [Array<(InlineResponse20016, Fixnum, Hash)>] InlineResponse20016 data, response status code and response headers
|
274
|
-
def
|
275
|
-
|
276
|
-
body[:key] = @api_key
|
277
|
-
|
278
|
-
# resource path
|
279
|
-
local_var_path = '/ips/provision'
|
280
|
-
|
281
|
-
# http body (model)
|
282
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
283
|
-
return data
|
284
|
-
end
|
285
|
-
# Set custom dns
|
286
|
-
# Configures the custom DNS name for a dedicated IP.
|
287
|
-
# @param body
|
288
|
-
# @param [Hash] opts the optional parameters
|
289
|
-
# @return [InlineResponse20024]
|
290
|
-
def set_custom_dns(body = {}, opts = {})
|
291
|
-
data = set_custom_dns_with_http_info(body, opts)
|
118
|
+
def provision(body = {})
|
119
|
+
data = @api_client.call_api(:POST, '/ips/provision', body)
|
292
120
|
data
|
293
121
|
end
|
294
122
|
|
@@ -297,24 +125,8 @@ module MailchimpTransactional
|
|
297
125
|
# @param body
|
298
126
|
# @param [Hash] opts the optional parameters
|
299
127
|
# @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
|
300
|
-
def
|
301
|
-
|
302
|
-
body[:key] = @api_key
|
303
|
-
|
304
|
-
# resource path
|
305
|
-
local_var_path = '/ips/set-custom-dns'
|
306
|
-
|
307
|
-
# http body (model)
|
308
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
309
|
-
return data
|
310
|
-
end
|
311
|
-
# Move ip to different pool
|
312
|
-
# Moves a dedicated IP to a different pool.
|
313
|
-
# @param body
|
314
|
-
# @param [Hash] opts the optional parameters
|
315
|
-
# @return [InlineResponse20018]
|
316
|
-
def set_pool(body = {}, opts = {})
|
317
|
-
data = set_pool_with_http_info(body, opts)
|
128
|
+
def set_custom_dns(body = {})
|
129
|
+
data = @api_client.call_api(:POST, '/ips/set-custom-dns', body)
|
318
130
|
data
|
319
131
|
end
|
320
132
|
|
@@ -323,24 +135,8 @@ module MailchimpTransactional
|
|
323
135
|
# @param body
|
324
136
|
# @param [Hash] opts the optional parameters
|
325
137
|
# @return [Array<(InlineResponse20018, Fixnum, Hash)>] InlineResponse20018 data, response status code and response headers
|
326
|
-
def
|
327
|
-
|
328
|
-
body[:key] = @api_key
|
329
|
-
|
330
|
-
# resource path
|
331
|
-
local_var_path = '/ips/set-pool'
|
332
|
-
|
333
|
-
# http body (model)
|
334
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
335
|
-
return data
|
336
|
-
end
|
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.
|
339
|
-
# @param body
|
340
|
-
# @param [Hash] opts the optional parameters
|
341
|
-
# @return [InlineResponse20017]
|
342
|
-
def start_warmup(body = {}, opts = {})
|
343
|
-
data = start_warmup_with_http_info(body, opts)
|
138
|
+
def set_pool(body = {})
|
139
|
+
data = @api_client.call_api(:POST, '/ips/set-pool', body)
|
344
140
|
data
|
345
141
|
end
|
346
142
|
|
@@ -349,16 +145,9 @@ module MailchimpTransactional
|
|
349
145
|
# @param body
|
350
146
|
# @param [Hash] opts the optional parameters
|
351
147
|
# @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
|
352
|
-
def
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
# resource path
|
357
|
-
local_var_path = '/ips/start-warmup'
|
358
|
-
|
359
|
-
# http body (model)
|
360
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
361
|
-
return data
|
148
|
+
def start_warmup(body = {})
|
149
|
+
data = @api_client.call_api(:POST, '/ips/start-warmup', body)
|
150
|
+
data
|
362
151
|
end
|
363
152
|
end
|
364
153
|
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.11
|
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
|
@@ -16,45 +16,17 @@ module MailchimpTransactional
|
|
16
16
|
class MessagesApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
def initialize(api_key = '', api_client = ApiClient.default)
|
22
|
-
@api_key = api_key
|
19
|
+
def initialize(api_client = ApiClient.default)
|
23
20
|
@api_client = api_client
|
24
21
|
end
|
25
|
-
# Cancel scheduled email
|
26
|
-
# Cancels a scheduled email.
|
27
|
-
# @param body
|
28
|
-
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [Array<InlineResponse20032>]
|
30
|
-
def cancel_scheduled(body = {}, opts = {})
|
31
|
-
data = cancel_scheduled_with_http_info(body, opts)
|
32
|
-
data
|
33
|
-
end
|
34
22
|
|
35
23
|
# Cancel scheduled email
|
36
24
|
# Cancels a scheduled email.
|
37
25
|
# @param body
|
38
26
|
# @param [Hash] opts the optional parameters
|
39
27
|
# @return [Array<(Array<InlineResponse20032>, Fixnum, Hash)>] Array<InlineResponse20032> data, response status code and response headers
|
40
|
-
def
|
41
|
-
|
42
|
-
body[:key] = @api_key
|
43
|
-
|
44
|
-
# resource path
|
45
|
-
local_var_path = '/messages/cancel-scheduled'
|
46
|
-
|
47
|
-
# http body (model)
|
48
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
49
|
-
return data
|
50
|
-
end
|
51
|
-
# Get message content
|
52
|
-
# Get the full content of a recently sent message.
|
53
|
-
# @param body
|
54
|
-
# @param [Hash] opts the optional parameters
|
55
|
-
# @return [InlineResponse20030]
|
56
|
-
def content(body = {}, opts = {})
|
57
|
-
data = content_with_http_info(body, opts)
|
28
|
+
def cancel_scheduled(body = {})
|
29
|
+
data = @api_client.call_api(:POST, '/messages/cancel-scheduled', body)
|
58
30
|
data
|
59
31
|
end
|
60
32
|
|
@@ -63,24 +35,8 @@ module MailchimpTransactional
|
|
63
35
|
# @param body
|
64
36
|
# @param [Hash] opts the optional parameters
|
65
37
|
# @return [Array<(InlineResponse20030, Fixnum, Hash)>] InlineResponse20030 data, response status code and response headers
|
66
|
-
def
|
67
|
-
|
68
|
-
body[:key] = @api_key
|
69
|
-
|
70
|
-
# resource path
|
71
|
-
local_var_path = '/messages/content'
|
72
|
-
|
73
|
-
# http body (model)
|
74
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
75
|
-
return data
|
76
|
-
end
|
77
|
-
# Get message info
|
78
|
-
# Get the information for a single recently sent message.
|
79
|
-
# @param body
|
80
|
-
# @param [Hash] opts the optional parameters
|
81
|
-
# @return [InlineResponse20029]
|
82
|
-
def info(body = {}, opts = {})
|
83
|
-
data = info_with_http_info(body, opts)
|
38
|
+
def content(body = {})
|
39
|
+
data = @api_client.call_api(:POST, '/messages/content', body)
|
84
40
|
data
|
85
41
|
end
|
86
42
|
|
@@ -89,24 +45,8 @@ module MailchimpTransactional
|
|
89
45
|
# @param body
|
90
46
|
# @param [Hash] opts the optional parameters
|
91
47
|
# @return [Array<(InlineResponse20029, Fixnum, Hash)>] InlineResponse20029 data, response status code and response headers
|
92
|
-
def
|
93
|
-
|
94
|
-
body[:key] = @api_key
|
95
|
-
|
96
|
-
# resource path
|
97
|
-
local_var_path = '/messages/info'
|
98
|
-
|
99
|
-
# http body (model)
|
100
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
101
|
-
return data
|
102
|
-
end
|
103
|
-
# List scheduled emails
|
104
|
-
# Queries your scheduled emails.
|
105
|
-
# @param body
|
106
|
-
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [Array<InlineResponse20032>]
|
108
|
-
def list_scheduled(body = {}, opts = {})
|
109
|
-
data = list_scheduled_with_http_info(body, opts)
|
48
|
+
def info(body = {})
|
49
|
+
data = @api_client.call_api(:POST, '/messages/info', body)
|
110
50
|
data
|
111
51
|
end
|
112
52
|
|
@@ -115,24 +55,8 @@ module MailchimpTransactional
|
|
115
55
|
# @param body
|
116
56
|
# @param [Hash] opts the optional parameters
|
117
57
|
# @return [Array<(Array<InlineResponse20032>, Fixnum, Hash)>] Array<InlineResponse20032> data, response status code and response headers
|
118
|
-
def
|
119
|
-
|
120
|
-
body[:key] = @api_key
|
121
|
-
|
122
|
-
# resource path
|
123
|
-
local_var_path = '/messages/list-scheduled'
|
124
|
-
|
125
|
-
# http body (model)
|
126
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
127
|
-
return data
|
128
|
-
end
|
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.
|
131
|
-
# @param body
|
132
|
-
# @param [Hash] opts the optional parameters
|
133
|
-
# @return [InlineResponse20031]
|
134
|
-
def parse(body = {}, opts = {})
|
135
|
-
data = parse_with_http_info(body, opts)
|
58
|
+
def list_scheduled(body = {})
|
59
|
+
data = @api_client.call_api(:POST, '/messages/list-scheduled', body)
|
136
60
|
data
|
137
61
|
end
|
138
62
|
|
@@ -141,24 +65,8 @@ module MailchimpTransactional
|
|
141
65
|
# @param body
|
142
66
|
# @param [Hash] opts the optional parameters
|
143
67
|
# @return [Array<(InlineResponse20031, Fixnum, Hash)>] InlineResponse20031 data, response status code and response headers
|
144
|
-
def
|
145
|
-
|
146
|
-
body[:key] = @api_key
|
147
|
-
|
148
|
-
# resource path
|
149
|
-
local_var_path = '/messages/parse'
|
150
|
-
|
151
|
-
# http body (model)
|
152
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
153
|
-
return data
|
154
|
-
end
|
155
|
-
# Reschedule email
|
156
|
-
# Reschedules a scheduled email.
|
157
|
-
# @param body
|
158
|
-
# @param [Hash] opts the optional parameters
|
159
|
-
# @return [Array<InlineResponse20032>]
|
160
|
-
def reschedule(body = {}, opts = {})
|
161
|
-
data = reschedule_with_http_info(body, opts)
|
68
|
+
def parse(body = {})
|
69
|
+
data = @api_client.call_api(:POST, '/messages/parse', body)
|
162
70
|
data
|
163
71
|
end
|
164
72
|
|
@@ -167,24 +75,8 @@ module MailchimpTransactional
|
|
167
75
|
# @param body
|
168
76
|
# @param [Hash] opts the optional parameters
|
169
77
|
# @return [Array<(Array<InlineResponse20032>, Fixnum, Hash)>] Array<InlineResponse20032> data, response status code and response headers
|
170
|
-
def
|
171
|
-
|
172
|
-
body[:key] = @api_key
|
173
|
-
|
174
|
-
# resource path
|
175
|
-
local_var_path = '/messages/reschedule'
|
176
|
-
|
177
|
-
# http body (model)
|
178
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
179
|
-
return data
|
180
|
-
end
|
181
|
-
# Search messages by date
|
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.
|
183
|
-
# @param body
|
184
|
-
# @param [Hash] opts the optional parameters
|
185
|
-
# @return [Array<InlineResponse20027>]
|
186
|
-
def search(body = {}, opts = {})
|
187
|
-
data = search_with_http_info(body, opts)
|
78
|
+
def reschedule(body = {})
|
79
|
+
data = @api_client.call_api(:POST, '/messages/reschedule', body)
|
188
80
|
data
|
189
81
|
end
|
190
82
|
|
@@ -193,24 +85,8 @@ module MailchimpTransactional
|
|
193
85
|
# @param body
|
194
86
|
# @param [Hash] opts the optional parameters
|
195
87
|
# @return [Array<(Array<InlineResponse20027>, Fixnum, Hash)>] Array<InlineResponse20027> data, response status code and response headers
|
196
|
-
def
|
197
|
-
|
198
|
-
body[:key] = @api_key
|
199
|
-
|
200
|
-
# resource path
|
201
|
-
local_var_path = '/messages/search'
|
202
|
-
|
203
|
-
# http body (model)
|
204
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
205
|
-
return data
|
206
|
-
end
|
207
|
-
# Search messages by hour
|
208
|
-
# Search the content of recently sent messages and return the aggregated hourly stats for matching messages.
|
209
|
-
# @param body
|
210
|
-
# @param [Hash] opts the optional parameters
|
211
|
-
# @return [Array<InlineResponse20028>]
|
212
|
-
def search_time_series(body = {}, opts = {})
|
213
|
-
data = search_time_series_with_http_info(body, opts)
|
88
|
+
def search(body = {})
|
89
|
+
data = @api_client.call_api(:POST, '/messages/search', body)
|
214
90
|
data
|
215
91
|
end
|
216
92
|
|
@@ -219,24 +95,8 @@ module MailchimpTransactional
|
|
219
95
|
# @param body
|
220
96
|
# @param [Hash] opts the optional parameters
|
221
97
|
# @return [Array<(Array<InlineResponse20028>, Fixnum, Hash)>] Array<InlineResponse20028> data, response status code and response headers
|
222
|
-
def
|
223
|
-
|
224
|
-
body[:key] = @api_key
|
225
|
-
|
226
|
-
# resource path
|
227
|
-
local_var_path = '/messages/search-time-series'
|
228
|
-
|
229
|
-
# http body (model)
|
230
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
231
|
-
return data
|
232
|
-
end
|
233
|
-
# Send new message
|
234
|
-
# Send a new transactional message through the Transactional API.
|
235
|
-
# @param body
|
236
|
-
# @param [Hash] opts the optional parameters
|
237
|
-
# @return [Array<InlineResponse20025>]
|
238
|
-
def send(body = {}, opts = {})
|
239
|
-
data = send_with_http_info(body, opts)
|
98
|
+
def search_time_series(body = {})
|
99
|
+
data = @api_client.call_api(:POST, '/messages/search-time-series', body)
|
240
100
|
data
|
241
101
|
end
|
242
102
|
|
@@ -245,24 +105,8 @@ module MailchimpTransactional
|
|
245
105
|
# @param body
|
246
106
|
# @param [Hash] opts the optional parameters
|
247
107
|
# @return [Array<(Array<InlineResponse20025>, Fixnum, Hash)>] Array<InlineResponse20025> data, response status code and response headers
|
248
|
-
def
|
249
|
-
|
250
|
-
body[:key] = @api_key
|
251
|
-
|
252
|
-
# resource path
|
253
|
-
local_var_path = '/messages/send'
|
254
|
-
|
255
|
-
# http body (model)
|
256
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
257
|
-
return data
|
258
|
-
end
|
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.
|
261
|
-
# @param body
|
262
|
-
# @param [Hash] opts the optional parameters
|
263
|
-
# @return [Object]
|
264
|
-
def send_raw(body = {}, opts = {})
|
265
|
-
data = send_raw_with_http_info(body, opts)
|
108
|
+
def send(body = {})
|
109
|
+
data = @api_client.call_api(:POST, '/messages/send', body)
|
266
110
|
data
|
267
111
|
end
|
268
112
|
|
@@ -271,24 +115,8 @@ module MailchimpTransactional
|
|
271
115
|
# @param body
|
272
116
|
# @param [Hash] opts the optional parameters
|
273
117
|
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
274
|
-
def
|
275
|
-
|
276
|
-
body[:key] = @api_key
|
277
|
-
|
278
|
-
# resource path
|
279
|
-
local_var_path = '/messages/send-raw'
|
280
|
-
|
281
|
-
# http body (model)
|
282
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
283
|
-
return data
|
284
|
-
end
|
285
|
-
# Send using message template
|
286
|
-
# Send a new transactional message through the Transactional API using a template.
|
287
|
-
# @param body
|
288
|
-
# @param [Hash] opts the optional parameters
|
289
|
-
# @return [Array<InlineResponse20026>]
|
290
|
-
def send_template(body = {}, opts = {})
|
291
|
-
data = send_template_with_http_info(body, opts)
|
118
|
+
def send_raw(body = {})
|
119
|
+
data = @api_client.call_api(:POST, '/messages/send-raw', body)
|
292
120
|
data
|
293
121
|
end
|
294
122
|
|
@@ -297,16 +125,9 @@ module MailchimpTransactional
|
|
297
125
|
# @param body
|
298
126
|
# @param [Hash] opts the optional parameters
|
299
127
|
# @return [Array<(Array<InlineResponse20026>, Fixnum, Hash)>] Array<InlineResponse20026> data, response status code and response headers
|
300
|
-
def
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
# resource path
|
305
|
-
local_var_path = '/messages/send-template'
|
306
|
-
|
307
|
-
# http body (model)
|
308
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
309
|
-
return data
|
128
|
+
def send_template(body = {})
|
129
|
+
data = @api_client.call_api(:POST, '/messages/send-template', body)
|
130
|
+
data
|
310
131
|
end
|
311
132
|
end
|
312
133
|
end
|