MailchimpTransactional 1.0.9 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/LICENSE +53 -0
- data/MailchimpTransactional.gemspec +4 -4
- data/README.md +9 -9
- data/lib/MailchimpTransactional.rb +60 -76
- data/lib/MailchimpTransactional/api/exports_api.rb +14 -97
- data/lib/MailchimpTransactional/api/inbound_api.rb +22 -169
- data/lib/MailchimpTransactional/api/ips_api.rb +30 -241
- data/lib/MailchimpTransactional/api/messages_api.rb +26 -205
- data/lib/MailchimpTransactional/api/metadata_api.rb +12 -79
- data/lib/MailchimpTransactional/api/rejects_api.rb +10 -61
- data/lib/MailchimpTransactional/api/senders_api.rb +18 -133
- data/lib/MailchimpTransactional/api/subaccounts_api.rb +18 -133
- data/lib/MailchimpTransactional/api/tags_api.rb +14 -97
- data/lib/MailchimpTransactional/api/templates_api.rb +20 -151
- data/lib/MailchimpTransactional/api/urls_api.rb +18 -117
- data/lib/MailchimpTransactional/api/users_api.rb +12 -79
- data/lib/MailchimpTransactional/api/webhooks_api.rb +14 -97
- data/lib/MailchimpTransactional/api/whitelists_api.rb +10 -61
- data/lib/MailchimpTransactional/api_client.rb +31 -116
- data/lib/MailchimpTransactional/api_error.rb +2 -2
- data/lib/MailchimpTransactional/configuration.rb +2 -2
- data/lib/MailchimpTransactional/version.rb +3 -3
- metadata +7 -12
@@ -3,8 +3,8 @@
|
|
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.
|
7
|
-
Contact: apihelp@
|
6
|
+
OpenAPI spec version: 1.0.15
|
7
|
+
Contact: apihelp@mailchimp.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
10
10
|
|
@@ -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
|
@@ -3,8 +3,8 @@
|
|
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.
|
7
|
-
Contact: apihelp@
|
6
|
+
OpenAPI spec version: 1.0.15
|
7
|
+
Contact: apihelp@mailchimp.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
10
10
|
|
@@ -16,45 +16,17 @@ module MailchimpTransactional
|
|
16
16
|
class MetadataApi
|
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
|
-
# Add metadata field
|
26
|
-
# Add a new custom metadata field to be indexed for the account.
|
27
|
-
# @param body
|
28
|
-
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [InlineResponse20034]
|
30
|
-
def add(body = {}, opts = {})
|
31
|
-
data = add_with_http_info(body, opts)
|
32
|
-
data
|
33
|
-
end
|
34
22
|
|
35
23
|
# Add metadata field
|
36
24
|
# Add a new custom metadata field to be indexed for the account.
|
37
25
|
# @param body
|
38
26
|
# @param [Hash] opts the optional parameters
|
39
27
|
# @return [Array<(InlineResponse20034, Fixnum, Hash)>] InlineResponse20034 data, response status code and response headers
|
40
|
-
def
|
41
|
-
|
42
|
-
body[:key] = @api_key
|
43
|
-
|
44
|
-
# resource path
|
45
|
-
local_var_path = '/metadata/add'
|
46
|
-
|
47
|
-
# http body (model)
|
48
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
49
|
-
return data
|
50
|
-
end
|
51
|
-
# Delete metadata field
|
52
|
-
# Delete an existing custom metadata field. Deletion isn't instataneous, and /metadata/list will continue to return the field until the asynchronous deletion process is complete.
|
53
|
-
# @param body
|
54
|
-
# @param [Hash] opts the optional parameters
|
55
|
-
# @return [InlineResponse20036]
|
56
|
-
def delete(body = {}, opts = {})
|
57
|
-
data = delete_with_http_info(body, opts)
|
28
|
+
def add(body = {})
|
29
|
+
data = @api_client.call_api(:POST, '/metadata/add', 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<(InlineResponse20036, Fixnum, Hash)>] InlineResponse20036 data, response status code and response headers
|
66
|
-
def
|
67
|
-
|
68
|
-
body[:key] = @api_key
|
69
|
-
|
70
|
-
# resource path
|
71
|
-
local_var_path = '/metadata/delete'
|
72
|
-
|
73
|
-
# http body (model)
|
74
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
75
|
-
return data
|
76
|
-
end
|
77
|
-
# List metadata fields
|
78
|
-
# Get the list of custom metadata fields indexed for the account.
|
79
|
-
# @param body
|
80
|
-
# @param [Hash] opts the optional parameters
|
81
|
-
# @return [Array<InlineResponse20033>]
|
82
|
-
def list(body = {}, opts = {})
|
83
|
-
data = list_with_http_info(body, opts)
|
38
|
+
def delete(body = {})
|
39
|
+
data = @api_client.call_api(:POST, '/metadata/delete', 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<(Array<InlineResponse20033>, Fixnum, Hash)>] Array<InlineResponse20033> data, response status code and response headers
|
92
|
-
def
|
93
|
-
|
94
|
-
body[:key] = @api_key
|
95
|
-
|
96
|
-
# resource path
|
97
|
-
local_var_path = '/metadata/list'
|
98
|
-
|
99
|
-
# http body (model)
|
100
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
101
|
-
return data
|
102
|
-
end
|
103
|
-
# Update metadata field
|
104
|
-
# Update an existing custom metadata field.
|
105
|
-
# @param body
|
106
|
-
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [InlineResponse20035]
|
108
|
-
def update(body = {}, opts = {})
|
109
|
-
data = update_with_http_info(body, opts)
|
48
|
+
def list(body = {})
|
49
|
+
data = @api_client.call_api(:POST, '/metadata/list', body)
|
110
50
|
data
|
111
51
|
end
|
112
52
|
|
@@ -115,16 +55,9 @@ module MailchimpTransactional
|
|
115
55
|
# @param body
|
116
56
|
# @param [Hash] opts the optional parameters
|
117
57
|
# @return [Array<(InlineResponse20035, Fixnum, Hash)>] InlineResponse20035 data, response status code and response headers
|
118
|
-
def
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
# resource path
|
123
|
-
local_var_path = '/metadata/update'
|
124
|
-
|
125
|
-
# http body (model)
|
126
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
127
|
-
return data
|
58
|
+
def update(body = {})
|
59
|
+
data = @api_client.call_api(:POST, '/metadata/update', body)
|
60
|
+
data
|
128
61
|
end
|
129
62
|
end
|
130
63
|
end
|
@@ -3,8 +3,8 @@
|
|
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.
|
7
|
-
Contact: apihelp@
|
6
|
+
OpenAPI spec version: 1.0.15
|
7
|
+
Contact: apihelp@mailchimp.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
10
10
|
|
@@ -16,45 +16,17 @@ module MailchimpTransactional
|
|
16
16
|
class RejectsApi
|
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
|
-
# Add email to blacklist
|
26
|
-
# Adds an email to your email rejection blacklist. Addresses that you add manually will never expire and there is no reputation penalty for removing them from your blacklist. Attempting to blacklist an address that has been whitelisted will have no effect.
|
27
|
-
# @param body
|
28
|
-
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [InlineResponse20037]
|
30
|
-
def add(body = {}, opts = {})
|
31
|
-
data = add_with_http_info(body, opts)
|
32
|
-
data
|
33
|
-
end
|
34
22
|
|
35
23
|
# Add email to blacklist
|
36
24
|
# Adds an email to your email rejection blacklist. Addresses that you add manually will never expire and there is no reputation penalty for removing them from your blacklist. Attempting to blacklist an address that has been whitelisted will have no effect.
|
37
25
|
# @param body
|
38
26
|
# @param [Hash] opts the optional parameters
|
39
27
|
# @return [Array<(InlineResponse20037, Fixnum, Hash)>] InlineResponse20037 data, response status code and response headers
|
40
|
-
def
|
41
|
-
|
42
|
-
body[:key] = @api_key
|
43
|
-
|
44
|
-
# resource path
|
45
|
-
local_var_path = '/rejects/add'
|
46
|
-
|
47
|
-
# http body (model)
|
48
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
49
|
-
return data
|
50
|
-
end
|
51
|
-
# Delete email from blacklist
|
52
|
-
# Deletes an email rejection. There is no limit to how many rejections you can remove from your blacklist, but keep in mind that each deletion has an affect on your reputation.
|
53
|
-
# @param body
|
54
|
-
# @param [Hash] opts the optional parameters
|
55
|
-
# @return [InlineResponse20039]
|
56
|
-
def delete(body = {}, opts = {})
|
57
|
-
data = delete_with_http_info(body, opts)
|
28
|
+
def add(body = {})
|
29
|
+
data = @api_client.call_api(:POST, '/rejects/add', 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<(InlineResponse20039, Fixnum, Hash)>] InlineResponse20039 data, response status code and response headers
|
66
|
-
def
|
67
|
-
|
68
|
-
body[:key] = @api_key
|
69
|
-
|
70
|
-
# resource path
|
71
|
-
local_var_path = '/rejects/delete'
|
72
|
-
|
73
|
-
# http body (model)
|
74
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
75
|
-
return data
|
76
|
-
end
|
77
|
-
# List blacklisted emails
|
78
|
-
# Retrieves your email rejection blacklist. You can provide an email address to limit the results. Returns up to 1000 results. By default, entries that have expired are excluded from the results; set include_expired to true to include them.
|
79
|
-
# @param body
|
80
|
-
# @param [Hash] opts the optional parameters
|
81
|
-
# @return [Array<InlineResponse20038>]
|
82
|
-
def list(body = {}, opts = {})
|
83
|
-
data = list_with_http_info(body, opts)
|
38
|
+
def delete(body = {})
|
39
|
+
data = @api_client.call_api(:POST, '/rejects/delete', body)
|
84
40
|
data
|
85
41
|
end
|
86
42
|
|
@@ -89,16 +45,9 @@ module MailchimpTransactional
|
|
89
45
|
# @param body
|
90
46
|
# @param [Hash] opts the optional parameters
|
91
47
|
# @return [Array<(Array<InlineResponse20038>, Fixnum, Hash)>] Array<InlineResponse20038> data, response status code and response headers
|
92
|
-
def
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
# resource path
|
97
|
-
local_var_path = '/rejects/list'
|
98
|
-
|
99
|
-
# http body (model)
|
100
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
101
|
-
return data
|
48
|
+
def list(body = {})
|
49
|
+
data = @api_client.call_api(:POST, '/rejects/list', body)
|
50
|
+
data
|
102
51
|
end
|
103
52
|
end
|
104
53
|
end
|