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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea5ba09deeffc4acce96a3b4c1195538f9a5318041f30193991306c95f769ef1
|
4
|
+
data.tar.gz: 1ddf40db693a44983e566c585f8779916065aa96303c4ed3aafeff93355af856
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0e94fab3ac65187e1609dbf4cd8fb5a0f36395afcf0b33424a235182782ff48f63278eb6a5d5358ede31fdb67562d8a9de4df4b38bfd0455ccc4be732391442
|
7
|
+
data.tar.gz: e0c81af8a5167abaebf80b963d50990b278f538a0dcfd6409407a7026d817f1ec24af7fbe5663b2aa1846303e6372a4d815d4a6663539c9560d843b54afbe6d1
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
7
7
|
|
8
|
-
OpenAPI spec version: 1.0.
|
8
|
+
OpenAPI spec version: 1.0.8
|
9
9
|
Contact: apihelp@mandrill.com
|
10
10
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
11
|
Swagger Codegen version: 2.4.12
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# Mailchimp Transactional
|
1
|
+
# Mailchimp Transactional — Ruby
|
2
2
|
|
3
|
-
The official Ruby
|
3
|
+
The official Ruby client library for the Mailchimp Transactional API (v1)
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -15,21 +15,21 @@ gem build MailchimpTransactional.gemspec
|
|
15
15
|
Then either install the gem locally:
|
16
16
|
|
17
17
|
```shell
|
18
|
-
gem install ./MailchimpTransactional-1.0.
|
18
|
+
gem install ./MailchimpTransactional-1.0.8.gem
|
19
19
|
```
|
20
|
-
(for development, run `gem install --dev ./MailchimpTransactional-1.0.
|
20
|
+
(for development, run `gem install --dev ./MailchimpTransactional-1.0.8.gem` to install the development dependencies)
|
21
21
|
|
22
22
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
23
23
|
|
24
24
|
Finally add this to the Gemfile:
|
25
25
|
|
26
|
-
gem 'MailchimpTransactional', '~> 1.0.
|
26
|
+
gem 'MailchimpTransactional', '~> 1.0.8'
|
27
27
|
|
28
28
|
### Install from Git
|
29
29
|
|
30
|
-
If the Ruby gem is hosted at a git repository: https://github.com/
|
30
|
+
If the Ruby gem is hosted at a git repository: https://github.com/mailchimp/mailchimp-transactional-ruby, then add the following in the Gemfile:
|
31
31
|
|
32
|
-
gem 'MailchimpTransactional', :git => 'https://github.com/
|
32
|
+
gem 'MailchimpTransactional', :git => 'https://github.com/mailchimp/mailchimp-transactional-ruby.git'
|
33
33
|
|
34
34
|
### Include the Ruby code directly
|
35
35
|
|
@@ -79,7 +79,7 @@ mailchimp.senders.list({ :outputFormat => 'php' });
|
|
79
79
|
|
80
80
|
All URIs are relative to *https://mandrillapp.com/api/1.0*
|
81
81
|
|
82
|
-
|
|
82
|
+
| Method | Endpoint |
|
83
83
|
| ---------- | -------- |
|
84
84
|
| **exports.activity** | /exports/activity |
|
85
85
|
| **exports.info** | /exports/info |
|
@@ -172,3 +172,22 @@ All URIs are relative to *https://mandrillapp.com/api/1.0*
|
|
172
172
|
| **whitelists.delete** | /whitelists/delete |
|
173
173
|
| **whitelists.list** | /whitelists/list |
|
174
174
|
|
175
|
+
|
176
|
+
## Additional Client Libraries
|
177
|
+
|
178
|
+
Mailchimp Transactional libraries are available in the following languages:
|
179
|
+
|
180
|
+
<div>
|
181
|
+
<a href="https://github.com/mailchimp/mailchimp-transactional-node">
|
182
|
+
<img src="https://github.com/mailchimp/mailchimp-client-lib-codegen/blob/master/resources/images/lang_node.png?raw=true" width="44" height="44">
|
183
|
+
</a>
|
184
|
+
<a href="https://github.com/mailchimp/mailchimp-transactional-php">
|
185
|
+
<img src="https://github.com/mailchimp/mailchimp-client-lib-codegen/blob/master/resources/images/lang_php.png?raw=true" width="44" height="44">
|
186
|
+
</a>
|
187
|
+
<a href="https://github.com/mailchimp/mailchimp-transactional-ruby">
|
188
|
+
<img src="https://github.com/mailchimp/mailchimp-client-lib-codegen/blob/master/resources/images/lang_ruby.png?raw=true" width="44" height="44">
|
189
|
+
</a>
|
190
|
+
<a href="https://github.com/mailchimp/mailchimp-transactional-python">
|
191
|
+
<img src="https://github.com/mailchimp/mailchimp-client-lib-codegen/blob/master/resources/images/lang_python.png?raw=true" width="44" height="44">
|
192
|
+
</a>
|
193
|
+
</div>
|
@@ -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
|
@@ -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
|
+
# Export activity history
|
26
26
|
# Begins an export of your activity history. The activity will be exported to a zip archive containing a single file named activity.csv in the same format as you would be able to export from your account's activity view. It includes the following fields: Date, Email Address, Sender, Subject, Status, Tags, Opens, Clicks, Bounce Detail. If you have configured any custom metadata fields, they will be included in the exported data.
|
27
27
|
# @param body
|
28
28
|
# @param [Hash] opts the optional parameters
|
29
29
|
# @return [InlineResponse2004]
|
30
30
|
def activity(body = {}, opts = {})
|
31
|
-
data
|
31
|
+
data = activity_with_http_info(body, opts)
|
32
32
|
data
|
33
33
|
end
|
34
34
|
|
35
|
-
#
|
35
|
+
# Export activity history
|
36
36
|
# Begins an export of your activity history. The activity will be exported to a zip archive containing a single file named activity.csv in the same format as you would be able to export from your account's activity view. It includes the following fields: Date, Email Address, Sender, Subject, Status, Tags, Opens, Clicks, Bounce Detail. If you have configured any custom metadata fields, they will be included in the exported data.
|
37
37
|
# @param body
|
38
38
|
# @param [Hash] opts the optional parameters
|
@@ -45,24 +45,20 @@ module MailchimpTransactional
|
|
45
45
|
local_var_path = '/exports/activity'
|
46
46
|
|
47
47
|
# http body (model)
|
48
|
-
|
49
|
-
data
|
50
|
-
:body => body,
|
51
|
-
:auth_names => auth_names,
|
52
|
-
:return_type => 'InlineResponse2004')
|
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
|
+
# View export info
|
56
52
|
# Returns information about an export job. If the export job's state is 'complete', the returned data will include a URL you can use to fetch the results. Every export job produces a zip archive, but the format of the archive is distinct for each job type. The api calls that initiate exports include more details about the output format for that job type.
|
57
53
|
# @param body
|
58
54
|
# @param [Hash] opts the optional parameters
|
59
55
|
# @return [InlineResponse200]
|
60
56
|
def info(body = {}, opts = {})
|
61
|
-
data
|
57
|
+
data = info_with_http_info(body, opts)
|
62
58
|
data
|
63
59
|
end
|
64
60
|
|
65
|
-
#
|
61
|
+
# View export info
|
66
62
|
# Returns information about an export job. If the export job's state is 'complete', the returned data will include a URL you can use to fetch the results. Every export job produces a zip archive, but the format of the archive is distinct for each job type. The api calls that initiate exports include more details about the output format for that job type.
|
67
63
|
# @param body
|
68
64
|
# @param [Hash] opts the optional parameters
|
@@ -75,24 +71,20 @@ module MailchimpTransactional
|
|
75
71
|
local_var_path = '/exports/info'
|
76
72
|
|
77
73
|
# http body (model)
|
78
|
-
|
79
|
-
data
|
80
|
-
:body => body,
|
81
|
-
:auth_names => auth_names,
|
82
|
-
:return_type => 'InlineResponse200')
|
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
|
+
# List exports
|
86
78
|
# Returns a list of your exports.
|
87
79
|
# @param body
|
88
80
|
# @param [Hash] opts the optional parameters
|
89
81
|
# @return [Array<InlineResponse2001>]
|
90
82
|
def list(body = {}, opts = {})
|
91
|
-
data
|
83
|
+
data = list_with_http_info(body, opts)
|
92
84
|
data
|
93
85
|
end
|
94
86
|
|
95
|
-
#
|
87
|
+
# List exports
|
96
88
|
# Returns a list of your exports.
|
97
89
|
# @param body
|
98
90
|
# @param [Hash] opts the optional parameters
|
@@ -105,24 +97,20 @@ module MailchimpTransactional
|
|
105
97
|
local_var_path = '/exports/list'
|
106
98
|
|
107
99
|
# http body (model)
|
108
|
-
|
109
|
-
data
|
110
|
-
:body => body,
|
111
|
-
:auth_names => auth_names,
|
112
|
-
:return_type => 'Array<InlineResponse2001>')
|
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
|
+
# Export blacklist
|
116
104
|
# Begins an export of your rejection blacklist. The blacklist will be exported to a zip archive containing a single file named rejects.csv that includes the following fields: email, reason, detail, created_at, expires_at, last_event_at, expires_at.
|
117
105
|
# @param body
|
118
106
|
# @param [Hash] opts the optional parameters
|
119
107
|
# @return [InlineResponse2002]
|
120
108
|
def rejects(body = {}, opts = {})
|
121
|
-
data
|
109
|
+
data = rejects_with_http_info(body, opts)
|
122
110
|
data
|
123
111
|
end
|
124
112
|
|
125
|
-
#
|
113
|
+
# Export blacklist
|
126
114
|
# Begins an export of your rejection blacklist. The blacklist will be exported to a zip archive containing a single file named rejects.csv that includes the following fields: email, reason, detail, created_at, expires_at, last_event_at, expires_at.
|
127
115
|
# @param body
|
128
116
|
# @param [Hash] opts the optional parameters
|
@@ -135,24 +123,20 @@ module MailchimpTransactional
|
|
135
123
|
local_var_path = '/exports/rejects'
|
136
124
|
|
137
125
|
# http body (model)
|
138
|
-
|
139
|
-
data
|
140
|
-
:body => body,
|
141
|
-
:auth_names => auth_names,
|
142
|
-
:return_type => 'InlineResponse2002')
|
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
|
+
# Export whitelist
|
146
130
|
# Begins an export of your rejection whitelist. The whitelist will be exported to a zip archive containing a single file named whitelist.csv that includes the following fields: email, detail, created_at.
|
147
131
|
# @param body
|
148
132
|
# @param [Hash] opts the optional parameters
|
149
133
|
# @return [InlineResponse2003]
|
150
134
|
def whitelist(body = {}, opts = {})
|
151
|
-
data
|
135
|
+
data = whitelist_with_http_info(body, opts)
|
152
136
|
data
|
153
137
|
end
|
154
138
|
|
155
|
-
#
|
139
|
+
# Export whitelist
|
156
140
|
# Begins an export of your rejection whitelist. The whitelist will be exported to a zip archive containing a single file named whitelist.csv that includes the following fields: email, detail, created_at.
|
157
141
|
# @param body
|
158
142
|
# @param [Hash] opts the optional parameters
|
@@ -165,12 +149,8 @@ module MailchimpTransactional
|
|
165
149
|
local_var_path = '/exports/whitelist'
|
166
150
|
|
167
151
|
# http body (model)
|
168
|
-
|
169
|
-
data
|
170
|
-
:body => body,
|
171
|
-
:auth_names => auth_names,
|
172
|
-
:return_type => 'InlineResponse2003')
|
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
155
|
end
|
176
156
|
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
|
-
# Add
|
25
|
+
# Add inbound domain
|
26
|
+
# Add an inbound domain to your account.
|
27
27
|
# @param body
|
28
28
|
# @param [Hash] opts the optional parameters
|
29
29
|
# @return [InlineResponse2006]
|
30
30
|
def add_domain(body = {}, opts = {})
|
31
|
-
data
|
31
|
+
data = add_domain_with_http_info(body, opts)
|
32
32
|
data
|
33
33
|
end
|
34
34
|
|
35
|
-
#
|
36
|
-
# Add
|
35
|
+
# Add inbound domain
|
36
|
+
# Add an inbound domain to your account.
|
37
37
|
# @param body
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
@@ -45,25 +45,21 @@ module MailchimpTransactional
|
|
45
45
|
local_var_path = '/inbound/add-domain'
|
46
46
|
|
47
47
|
# http body (model)
|
48
|
-
|
49
|
-
data
|
50
|
-
:body => body,
|
51
|
-
:auth_names => auth_names,
|
52
|
-
:return_type => 'InlineResponse2006')
|
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
|
-
# Add a new mailbox route to an inbound domain
|
51
|
+
# Add mailbox route
|
52
|
+
# Add a new mailbox route to an inbound domain.
|
57
53
|
# @param body
|
58
54
|
# @param [Hash] opts the optional parameters
|
59
55
|
# @return [InlineResponse20010]
|
60
56
|
def add_route(body = {}, opts = {})
|
61
|
-
data
|
57
|
+
data = add_route_with_http_info(body, opts)
|
62
58
|
data
|
63
59
|
end
|
64
60
|
|
65
|
-
#
|
66
|
-
# Add a new mailbox route to an inbound domain
|
61
|
+
# Add mailbox route
|
62
|
+
# Add a new mailbox route to an inbound domain.
|
67
63
|
# @param body
|
68
64
|
# @param [Hash] opts the optional parameters
|
69
65
|
# @return [Array<(InlineResponse20010, Fixnum, Hash)>] InlineResponse20010 data, response status code and response headers
|
@@ -75,25 +71,21 @@ module MailchimpTransactional
|
|
75
71
|
local_var_path = '/inbound/add-route'
|
76
72
|
|
77
73
|
# http body (model)
|
78
|
-
|
79
|
-
data
|
80
|
-
:body => body,
|
81
|
-
:auth_names => auth_names,
|
82
|
-
:return_type => 'InlineResponse20010')
|
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
|
-
# Check the MX settings for an inbound domain. The domain must have already been added with the add-domain call
|
77
|
+
# Check domain settings
|
78
|
+
# Check the MX settings for an inbound domain. The domain must have already been added with the add-domain call.
|
87
79
|
# @param body
|
88
80
|
# @param [Hash] opts the optional parameters
|
89
81
|
# @return [InlineResponse2007]
|
90
82
|
def check_domain(body = {}, opts = {})
|
91
|
-
data
|
83
|
+
data = check_domain_with_http_info(body, opts)
|
92
84
|
data
|
93
85
|
end
|
94
86
|
|
95
|
-
#
|
96
|
-
# Check the MX settings for an inbound domain. The domain must have already been added with the add-domain call
|
87
|
+
# Check domain settings
|
88
|
+
# Check the MX settings for an inbound domain. The domain must have already been added with the add-domain call.
|
97
89
|
# @param body
|
98
90
|
# @param [Hash] opts the optional parameters
|
99
91
|
# @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
|
@@ -105,24 +97,20 @@ module MailchimpTransactional
|
|
105
97
|
local_var_path = '/inbound/check-domain'
|
106
98
|
|
107
99
|
# http body (model)
|
108
|
-
|
109
|
-
data
|
110
|
-
:body => body,
|
111
|
-
:auth_names => auth_names,
|
112
|
-
:return_type => 'InlineResponse2007')
|
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 inbound domain
|
116
104
|
# Delete an inbound domain from the account. All mail will stop routing for this domain immediately.
|
117
105
|
# @param body
|
118
106
|
# @param [Hash] opts the optional parameters
|
119
107
|
# @return [InlineResponse2008]
|
120
108
|
def delete_domain(body = {}, opts = {})
|
121
|
-
data
|
109
|
+
data = delete_domain_with_http_info(body, opts)
|
122
110
|
data
|
123
111
|
end
|
124
112
|
|
125
|
-
#
|
113
|
+
# Delete inbound domain
|
126
114
|
# Delete an inbound domain from the account. All mail will stop routing for this domain immediately.
|
127
115
|
# @param body
|
128
116
|
# @param [Hash] opts the optional parameters
|
@@ -135,25 +123,21 @@ module MailchimpTransactional
|
|
135
123
|
local_var_path = '/inbound/delete-domain'
|
136
124
|
|
137
125
|
# http body (model)
|
138
|
-
|
139
|
-
data
|
140
|
-
:body => body,
|
141
|
-
:auth_names => auth_names,
|
142
|
-
:return_type => 'InlineResponse2008')
|
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
|
-
# Delete an existing inbound mailbox route
|
129
|
+
# Delete mailbox route
|
130
|
+
# Delete an existing inbound mailbox route.
|
147
131
|
# @param body
|
148
132
|
# @param [Hash] opts the optional parameters
|
149
133
|
# @return [InlineResponse20012]
|
150
134
|
def delete_route(body = {}, opts = {})
|
151
|
-
data
|
135
|
+
data = delete_route_with_http_info(body, opts)
|
152
136
|
data
|
153
137
|
end
|
154
138
|
|
155
|
-
#
|
156
|
-
# Delete an existing inbound mailbox route
|
139
|
+
# Delete mailbox route
|
140
|
+
# Delete an existing inbound mailbox route.
|
157
141
|
# @param body
|
158
142
|
# @param [Hash] opts the optional parameters
|
159
143
|
# @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
|
@@ -165,25 +149,21 @@ module MailchimpTransactional
|
|
165
149
|
local_var_path = '/inbound/delete-route'
|
166
150
|
|
167
151
|
# http body (model)
|
168
|
-
|
169
|
-
data
|
170
|
-
:body => body,
|
171
|
-
:auth_names => auth_names,
|
172
|
-
:return_type => 'InlineResponse20012')
|
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
|
+
# List inbound domains
|
156
|
+
# List the domains that have been configured for inbound delivery.
|
177
157
|
# @param body
|
178
158
|
# @param [Hash] opts the optional parameters
|
179
159
|
# @return [Array<InlineResponse2005>]
|
180
160
|
def domains(body = {}, opts = {})
|
181
|
-
data
|
161
|
+
data = domains_with_http_info(body, opts)
|
182
162
|
data
|
183
163
|
end
|
184
164
|
|
185
|
-
#
|
186
|
-
#
|
165
|
+
# List inbound domains
|
166
|
+
# List the domains that have been configured for inbound delivery.
|
187
167
|
# @param body
|
188
168
|
# @param [Hash] opts the optional parameters
|
189
169
|
# @return [Array<(Array<InlineResponse2005>, Fixnum, Hash)>] Array<InlineResponse2005> data, response status code and response headers
|
@@ -195,25 +175,21 @@ module MailchimpTransactional
|
|
195
175
|
local_var_path = '/inbound/domains'
|
196
176
|
|
197
177
|
# http body (model)
|
198
|
-
|
199
|
-
data
|
200
|
-
:body => body,
|
201
|
-
:auth_names => auth_names,
|
202
|
-
:return_type => 'Array<InlineResponse2005>')
|
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
|
-
#
|
206
|
-
# List the mailbox routes defined for an inbound domain
|
181
|
+
# List mailbox routes
|
182
|
+
# List the mailbox routes defined for an inbound domain.
|
207
183
|
# @param body
|
208
184
|
# @param [Hash] opts the optional parameters
|
209
185
|
# @return [Array<InlineResponse2009>]
|
210
186
|
def routes(body = {}, opts = {})
|
211
|
-
data
|
187
|
+
data = routes_with_http_info(body, opts)
|
212
188
|
data
|
213
189
|
end
|
214
190
|
|
215
|
-
#
|
216
|
-
# List the mailbox routes defined for an inbound domain
|
191
|
+
# List mailbox routes
|
192
|
+
# List the mailbox routes defined for an inbound domain.
|
217
193
|
# @param body
|
218
194
|
# @param [Hash] opts the optional parameters
|
219
195
|
# @return [Array<(Array<InlineResponse2009>, Fixnum, Hash)>] Array<InlineResponse2009> data, response status code and response headers
|
@@ -225,25 +201,21 @@ module MailchimpTransactional
|
|
225
201
|
local_var_path = '/inbound/routes'
|
226
202
|
|
227
203
|
# http body (model)
|
228
|
-
|
229
|
-
data
|
230
|
-
:body => body,
|
231
|
-
:auth_names => auth_names,
|
232
|
-
:return_type => 'Array<InlineResponse2009>')
|
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
|
-
# Take a raw MIME document destined for a domain with inbound domains set up, and send it to the inbound hook exactly as if it had been sent over SMTP
|
207
|
+
# Send mime document
|
208
|
+
# Take a raw MIME document destined for a domain with inbound domains set up, and send it to the inbound hook exactly as if it had been sent over SMTP.
|
237
209
|
# @param body
|
238
210
|
# @param [Hash] opts the optional parameters
|
239
211
|
# @return [Array<InlineResponse20013>]
|
240
212
|
def send_raw(body = {}, opts = {})
|
241
|
-
data
|
213
|
+
data = send_raw_with_http_info(body, opts)
|
242
214
|
data
|
243
215
|
end
|
244
216
|
|
245
|
-
#
|
246
|
-
# Take a raw MIME document destined for a domain with inbound domains set up, and send it to the inbound hook exactly as if it had been sent over SMTP
|
217
|
+
# Send mime document
|
218
|
+
# Take a raw MIME document destined for a domain with inbound domains set up, and send it to the inbound hook exactly as if it had been sent over SMTP.
|
247
219
|
# @param body
|
248
220
|
# @param [Hash] opts the optional parameters
|
249
221
|
# @return [Array<(Array<InlineResponse20013>, Fixnum, Hash)>] Array<InlineResponse20013> data, response status code and response headers
|
@@ -255,24 +227,20 @@ module MailchimpTransactional
|
|
255
227
|
local_var_path = '/inbound/send-raw'
|
256
228
|
|
257
229
|
# http body (model)
|
258
|
-
|
259
|
-
data
|
260
|
-
:body => body,
|
261
|
-
:auth_names => auth_names,
|
262
|
-
:return_type => 'Array<InlineResponse20013>')
|
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
|
+
# Update mailbox route
|
266
234
|
# Update the pattern or webhook of an existing inbound mailbox route. If null is provided for any fields, the values will remain unchanged.
|
267
235
|
# @param body
|
268
236
|
# @param [Hash] opts the optional parameters
|
269
237
|
# @return [InlineResponse20011]
|
270
238
|
def update_route(body = {}, opts = {})
|
271
|
-
data
|
239
|
+
data = update_route_with_http_info(body, opts)
|
272
240
|
data
|
273
241
|
end
|
274
242
|
|
275
|
-
#
|
243
|
+
# Update mailbox route
|
276
244
|
# Update the pattern or webhook of an existing inbound mailbox route. If null is provided for any fields, the values will remain unchanged.
|
277
245
|
# @param body
|
278
246
|
# @param [Hash] opts the optional parameters
|
@@ -285,12 +253,8 @@ module MailchimpTransactional
|
|
285
253
|
local_var_path = '/inbound/update-route'
|
286
254
|
|
287
255
|
# http body (model)
|
288
|
-
|
289
|
-
data
|
290
|
-
:body => body,
|
291
|
-
:auth_names => auth_names,
|
292
|
-
:return_type => 'InlineResponse20011')
|
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
|
end
|
296
260
|
end
|