MailchimpTransactional 1.0.39 → 1.0.50
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +45 -0
- data/MailchimpTransactional.gemspec +1 -1
- data/README.md +7 -3
- data/lib/MailchimpTransactional/api/allowlists_api.rb +53 -0
- data/lib/MailchimpTransactional/api/exports_api.rb +17 -7
- data/lib/MailchimpTransactional/api/inbound_api.rb +10 -10
- data/lib/MailchimpTransactional/api/ips_api.rb +14 -14
- data/lib/MailchimpTransactional/api/messages_api.rb +11 -11
- data/lib/MailchimpTransactional/api/metadata_api.rb +5 -5
- data/lib/MailchimpTransactional/api/rejects_api.rb +4 -4
- data/lib/MailchimpTransactional/api/senders_api.rb +9 -9
- data/lib/MailchimpTransactional/api/subaccounts_api.rb +8 -8
- data/lib/MailchimpTransactional/api/tags_api.rb +6 -6
- data/lib/MailchimpTransactional/api/templates_api.rb +9 -9
- data/lib/MailchimpTransactional/api/urls_api.rb +7 -7
- data/lib/MailchimpTransactional/api/users_api.rb +4 -4
- data/lib/MailchimpTransactional/api/webhooks_api.rb +6 -6
- data/lib/MailchimpTransactional/api/whitelists_api.rb +4 -4
- data/lib/MailchimpTransactional/api_client.rb +12 -2
- data/lib/MailchimpTransactional/api_error.rb +1 -1
- data/lib/MailchimpTransactional/configuration.rb +1 -1
- data/lib/MailchimpTransactional/version.rb +2 -2
- data/lib/MailchimpTransactional.rb +10 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e1396601404961fb6a443b36618161efa2df2a794e415fe7150595b761348a6
|
4
|
+
data.tar.gz: 5e93e62c1f378b6711e3dd2b11615fb5b77f90cc5dca9a0c87b4049f84fcfe56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fe99a163c5411f66131838c3e5c3729d8b6cda5cbf678c28257049f0a5e6475f31ca98240bd828eca174078223e0861f818b650ac43ed90202d9fdcd0f042b3
|
7
|
+
data.tar.gz: bc429a57ba587a00305383459b07c235c69737a4d56d1f0a3cf23731e55e532565d4e422afbed439a4d19996752839af09138a1988d90e7aebd95f961700298e
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,33 @@
|
|
2
2
|
|
3
3
|
## Transactional
|
4
4
|
|
5
|
+
### 1.0.50
|
6
|
+
* Added a response parameter to /messages/send and /messages/send-template called 'queued_response' that details why an email was queued.
|
7
|
+
|
8
|
+
### 1.0.48
|
9
|
+
* Allowing users to schedule messages (using messages/send, messages/send-template, messages/send-raw and messages/reschedule APIs) within a year from the date of scheduling.
|
10
|
+
|
11
|
+
### 1.0.46
|
12
|
+
* Added a little more granularity to the `set_timeout` method to the Client class in the Ruby SDK; now supports `read`, `write` and `connect` parameters, which will default to the `timeout` param if unspecified, or 300 seconds if `timeout` is unspecified.
|
13
|
+
|
14
|
+
### 1.0.45
|
15
|
+
* Added a `set_timeout` method to the Client class in the Ruby SDK
|
16
|
+
|
17
|
+
### 1.0.44
|
18
|
+
* Added a `set_timeout` method to the Client class in the Python SDK
|
19
|
+
|
20
|
+
### 1.0.43
|
21
|
+
* Added a `setTimeout` method to the Configuration class in the PHP SDK.
|
22
|
+
|
23
|
+
### 1.0.42
|
24
|
+
* Added a `setDefaultTimeoutMs` method to the node client. This allows users to override the default timeout for API requests, which is set to 5 minutes by default.
|
25
|
+
|
26
|
+
### 1.0.41
|
27
|
+
* Updated the "reject_reasons" response for /messages/send and /messages/send-template to correctly use "hard-bounce" and "soft-bounce" instead of the previously stated "hard_bounce" and "soft_bounce".
|
28
|
+
|
29
|
+
### 1.0.40
|
30
|
+
* Added the new /allowlists/ series of endpoints and the /exports/allowlist endpoint to the API reference
|
31
|
+
|
5
32
|
### 1.0.39
|
6
33
|
* Fixes the output directory for the Changelog for the php client library
|
7
34
|
|
@@ -13,6 +40,24 @@
|
|
13
40
|
|
14
41
|
## Marketing
|
15
42
|
|
43
|
+
### 3.0.72
|
44
|
+
* Updated the `PATCH /automations/.../emails/.../` documentation to state the required `workflow_type`
|
45
|
+
|
46
|
+
### 3.0.70
|
47
|
+
* Added more granularity for the `timeout` field in the Ruby Marketing SDK; now supports `read_timeout`, `write_timeout` and `connect_timeout` fields which will default to the `timeout` value.
|
48
|
+
|
49
|
+
### 3.0.69
|
50
|
+
* Added handling for a `timeout` field in the config block passed to the client constructor in the Ruby Marketing SDK.
|
51
|
+
|
52
|
+
### 3.0.68
|
53
|
+
* Added handling for a `'timeout'` field in `set_config()` in the Python Marketing SDK.
|
54
|
+
|
55
|
+
### 3.0.67
|
56
|
+
* Added a `setTimeout()` method to the configuration class in the PHP Marketing SDK, to allow manually setting the timeout for Guzzle requests.
|
57
|
+
|
58
|
+
### 3.0.65
|
59
|
+
* Added a new API endpoint, `/3.0/account-exports`, allowing users to programatically export their account information
|
60
|
+
|
16
61
|
### 3.0.64
|
17
62
|
* Fixes the output directory for the Changelog for the php client library
|
18
63
|
|
@@ -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.50
|
9
9
|
Contact: apihelp@mailchimp.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
@@ -21,15 +21,15 @@ gem build MailchimpTransactional.gemspec
|
|
21
21
|
Then either install the gem locally:
|
22
22
|
|
23
23
|
```shell
|
24
|
-
gem install ./MailchimpTransactional-1.0.
|
24
|
+
gem install ./MailchimpTransactional-1.0.50.gem
|
25
25
|
```
|
26
|
-
(for development, run `gem install --dev ./MailchimpTransactional-1.0.
|
26
|
+
(for development, run `gem install --dev ./MailchimpTransactional-1.0.50.gem` to install the development dependencies)
|
27
27
|
|
28
28
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
29
29
|
|
30
30
|
Finally add this to the Gemfile:
|
31
31
|
|
32
|
-
gem 'MailchimpTransactional', '~> 1.0.
|
32
|
+
gem 'MailchimpTransactional', '~> 1.0.50'
|
33
33
|
|
34
34
|
### Install from Git
|
35
35
|
|
@@ -90,7 +90,11 @@ All URIs are relative to *https://mandrillapp.com/api/1.0*
|
|
90
90
|
|
91
91
|
| Method | Endpoint |
|
92
92
|
| ---------- | -------- |
|
93
|
+
| **allowlists.add** | /allowlists/add |
|
94
|
+
| **allowlists.delete** | /allowlists/delete |
|
95
|
+
| **allowlists.list** | /allowlists/list |
|
93
96
|
| **exports.activity** | /exports/activity |
|
97
|
+
| **exports.allowlist** | /exports/allowlist |
|
94
98
|
| **exports.info** | /exports/info |
|
95
99
|
| **exports.list** | /exports/list |
|
96
100
|
| **exports.rejects** | /exports/rejects |
|
@@ -0,0 +1,53 @@
|
|
1
|
+
=begin
|
2
|
+
#Mailchimp Transactional API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.50
|
7
|
+
Contact: apihelp@mailchimp.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module MailchimpTransactional
|
16
|
+
class AllowlistsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Add email to allowlist
|
24
|
+
# Adds an email to your email rejection allowlist. If the address is currently on your denylist, that denylist entry will be removed automatically.
|
25
|
+
# @param body
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
|
28
|
+
def add(body = {})
|
29
|
+
data = @api_client.call_api(:POST, '/allowlists/add', body)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Remove email from allowlist
|
34
|
+
# Removes an email address from the allowlist.
|
35
|
+
# @param body
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
|
38
|
+
def delete(body = {})
|
39
|
+
data = @api_client.call_api(:POST, '/allowlists/delete', body)
|
40
|
+
data
|
41
|
+
end
|
42
|
+
|
43
|
+
# List allowlisted emails
|
44
|
+
# Retrieves your email rejection allowlist. You can provide an email address or search prefix to limit the results. Returns up to 1000 results.
|
45
|
+
# @param body
|
46
|
+
# @param [Hash] opts the optional parameters
|
47
|
+
# @return [Array<(Array<InlineResponse2001>, Fixnum, Hash)>] Array<InlineResponse2001> data, response status code and response headers
|
48
|
+
def list(body = {})
|
49
|
+
data = @api_client.call_api(:POST, '/allowlists/list', body)
|
50
|
+
data
|
51
|
+
end
|
52
|
+
end
|
53
|
+
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.50
|
7
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
|
@@ -24,17 +24,27 @@ module MailchimpTransactional
|
|
24
24
|
# 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.
|
25
25
|
# @param body
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [Array<(
|
27
|
+
# @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
|
28
28
|
def activity(body = {})
|
29
29
|
data = @api_client.call_api(:POST, '/exports/activity', body)
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
|
+
# Export Allowlist
|
34
|
+
# Begins an export of your rejection allowlist. The allowlist will be exported to a zip archive containing a single file named allowlist.csv that includes the following fields: email, detail, created_at.
|
35
|
+
# @param body
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
38
|
+
def allowlist(body = {})
|
39
|
+
data = @api_client.call_api(:POST, '/exports/allowlist', body)
|
40
|
+
data
|
41
|
+
end
|
42
|
+
|
33
43
|
# View export info
|
34
44
|
# 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.
|
35
45
|
# @param body
|
36
46
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(
|
47
|
+
# @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers
|
38
48
|
def info(body = {})
|
39
49
|
data = @api_client.call_api(:POST, '/exports/info', body)
|
40
50
|
data
|
@@ -44,7 +54,7 @@ module MailchimpTransactional
|
|
44
54
|
# Returns a list of your exports.
|
45
55
|
# @param body
|
46
56
|
# @param [Hash] opts the optional parameters
|
47
|
-
# @return [Array<(Array<
|
57
|
+
# @return [Array<(Array<InlineResponse2004>, Fixnum, Hash)>] Array<InlineResponse2004> data, response status code and response headers
|
48
58
|
def list(body = {})
|
49
59
|
data = @api_client.call_api(:POST, '/exports/list', body)
|
50
60
|
data
|
@@ -54,17 +64,17 @@ module MailchimpTransactional
|
|
54
64
|
# Begins an export of your rejection denylist. The denylist 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.
|
55
65
|
# @param body
|
56
66
|
# @param [Hash] opts the optional parameters
|
57
|
-
# @return [Array<(
|
67
|
+
# @return [Array<(InlineResponse2005, Fixnum, Hash)>] InlineResponse2005 data, response status code and response headers
|
58
68
|
def rejects(body = {})
|
59
69
|
data = @api_client.call_api(:POST, '/exports/rejects', body)
|
60
70
|
data
|
61
71
|
end
|
62
72
|
|
63
73
|
# Export Allowlist
|
64
|
-
# Begins an export of your rejection allowlist. The allowlist will be exported to a zip archive containing a single file named
|
74
|
+
# Begins an export of your rejection allowlist. The allowlist will be exported to a zip archive containing a single file named allowlist.csv that includes the following fields: email, detail, created_at.
|
65
75
|
# @param body
|
66
76
|
# @param [Hash] opts the optional parameters
|
67
|
-
# @return [Array<(
|
77
|
+
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
68
78
|
def whitelist(body = {})
|
69
79
|
data = @api_client.call_api(:POST, '/exports/whitelist', body)
|
70
80
|
data
|
@@ -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.50
|
7
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
|
@@ -24,7 +24,7 @@ module MailchimpTransactional
|
|
24
24
|
# Add an inbound domain to your account.
|
25
25
|
# @param body
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [Array<(
|
27
|
+
# @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers
|
28
28
|
def add_domain(body = {})
|
29
29
|
data = @api_client.call_api(:POST, '/inbound/add-domain', body)
|
30
30
|
data
|
@@ -34,7 +34,7 @@ module MailchimpTransactional
|
|
34
34
|
# Add a new mailbox route to an inbound domain.
|
35
35
|
# @param body
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(
|
37
|
+
# @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
|
38
38
|
def add_route(body = {})
|
39
39
|
data = @api_client.call_api(:POST, '/inbound/add-route', body)
|
40
40
|
data
|
@@ -44,7 +44,7 @@ module MailchimpTransactional
|
|
44
44
|
# Check the MX settings for an inbound domain. The domain must have already been added with the add-domain call.
|
45
45
|
# @param body
|
46
46
|
# @param [Hash] opts the optional parameters
|
47
|
-
# @return [Array<(
|
47
|
+
# @return [Array<(InlineResponse20010, Fixnum, Hash)>] InlineResponse20010 data, response status code and response headers
|
48
48
|
def check_domain(body = {})
|
49
49
|
data = @api_client.call_api(:POST, '/inbound/check-domain', body)
|
50
50
|
data
|
@@ -54,7 +54,7 @@ module MailchimpTransactional
|
|
54
54
|
# Delete an inbound domain from the account. All mail will stop routing for this domain immediately.
|
55
55
|
# @param body
|
56
56
|
# @param [Hash] opts the optional parameters
|
57
|
-
# @return [Array<(
|
57
|
+
# @return [Array<(InlineResponse20011, Fixnum, Hash)>] InlineResponse20011 data, response status code and response headers
|
58
58
|
def delete_domain(body = {})
|
59
59
|
data = @api_client.call_api(:POST, '/inbound/delete-domain', body)
|
60
60
|
data
|
@@ -64,7 +64,7 @@ module MailchimpTransactional
|
|
64
64
|
# Delete an existing inbound mailbox route.
|
65
65
|
# @param body
|
66
66
|
# @param [Hash] opts the optional parameters
|
67
|
-
# @return [Array<(
|
67
|
+
# @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
|
68
68
|
def delete_route(body = {})
|
69
69
|
data = @api_client.call_api(:POST, '/inbound/delete-route', body)
|
70
70
|
data
|
@@ -74,7 +74,7 @@ module MailchimpTransactional
|
|
74
74
|
# List the domains that have been configured for inbound delivery.
|
75
75
|
# @param body
|
76
76
|
# @param [Hash] opts the optional parameters
|
77
|
-
# @return [Array<(Array<
|
77
|
+
# @return [Array<(Array<InlineResponse2008>, Fixnum, Hash)>] Array<InlineResponse2008> data, response status code and response headers
|
78
78
|
def domains(body = {})
|
79
79
|
data = @api_client.call_api(:POST, '/inbound/domains', body)
|
80
80
|
data
|
@@ -84,7 +84,7 @@ module MailchimpTransactional
|
|
84
84
|
# List the mailbox routes defined for an inbound domain.
|
85
85
|
# @param body
|
86
86
|
# @param [Hash] opts the optional parameters
|
87
|
-
# @return [Array<(Array<
|
87
|
+
# @return [Array<(Array<InlineResponse20012>, Fixnum, Hash)>] Array<InlineResponse20012> data, response status code and response headers
|
88
88
|
def routes(body = {})
|
89
89
|
data = @api_client.call_api(:POST, '/inbound/routes', body)
|
90
90
|
data
|
@@ -94,7 +94,7 @@ module MailchimpTransactional
|
|
94
94
|
# 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.
|
95
95
|
# @param body
|
96
96
|
# @param [Hash] opts the optional parameters
|
97
|
-
# @return [Array<(Array<
|
97
|
+
# @return [Array<(Array<InlineResponse20016>, Fixnum, Hash)>] Array<InlineResponse20016> data, response status code and response headers
|
98
98
|
def send_raw(body = {})
|
99
99
|
data = @api_client.call_api(:POST, '/inbound/send-raw', body)
|
100
100
|
data
|
@@ -104,7 +104,7 @@ module MailchimpTransactional
|
|
104
104
|
# Update the pattern or webhook of an existing inbound mailbox route. If null is provided for any fields, the values will remain unchanged.
|
105
105
|
# @param body
|
106
106
|
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [Array<(
|
107
|
+
# @return [Array<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 data, response status code and response headers
|
108
108
|
def update_route(body = {})
|
109
109
|
data = @api_client.call_api(:POST, '/inbound/update-route', body)
|
110
110
|
data
|
@@ -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.50
|
7
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
|
@@ -24,7 +24,7 @@ module MailchimpTransactional
|
|
24
24
|
# Cancels the warmup process for a dedicated IP.
|
25
25
|
# @param body
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [Array<(
|
27
|
+
# @return [Array<(InlineResponse20020, Fixnum, Hash)>] InlineResponse20020 data, response status code and response headers
|
28
28
|
def cancel_warmup(body = {})
|
29
29
|
data = @api_client.call_api(:POST, '/ips/cancel-warmup', body)
|
30
30
|
data
|
@@ -34,7 +34,7 @@ module MailchimpTransactional
|
|
34
34
|
# Tests whether a domain name is valid for use as the custom reverse DNS for a dedicated IP.
|
35
35
|
# @param body
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(
|
37
|
+
# @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
|
38
38
|
def check_custom_dns(body = {})
|
39
39
|
data = @api_client.call_api(:POST, '/ips/check-custom-dns', body)
|
40
40
|
data
|
@@ -44,7 +44,7 @@ module MailchimpTransactional
|
|
44
44
|
# Creates a pool and returns it. If a pool already exists with this name, no action will be performed.
|
45
45
|
# @param body
|
46
46
|
# @param [Hash] opts the optional parameters
|
47
|
-
# @return [Array<(
|
47
|
+
# @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
|
48
48
|
def create_pool(body = {})
|
49
49
|
data = @api_client.call_api(:POST, '/ips/create-pool', body)
|
50
50
|
data
|
@@ -54,7 +54,7 @@ module MailchimpTransactional
|
|
54
54
|
# Deletes a dedicated IP. This is permanent and cannot be undone.
|
55
55
|
# @param body
|
56
56
|
# @param [Hash] opts the optional parameters
|
57
|
-
# @return [Array<(
|
57
|
+
# @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
|
58
58
|
def delete(body = {})
|
59
59
|
data = @api_client.call_api(:POST, '/ips/delete', body)
|
60
60
|
data
|
@@ -64,7 +64,7 @@ module MailchimpTransactional
|
|
64
64
|
# Deletes a pool. A pool must be empty before you can delete it, and you cannot delete your default pool.
|
65
65
|
# @param body
|
66
66
|
# @param [Hash] opts the optional parameters
|
67
|
-
# @return [Array<(
|
67
|
+
# @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
|
68
68
|
def delete_pool(body = {})
|
69
69
|
data = @api_client.call_api(:POST, '/ips/delete-pool', body)
|
70
70
|
data
|
@@ -74,7 +74,7 @@ module MailchimpTransactional
|
|
74
74
|
# Retrieves information about a single dedicated IP.
|
75
75
|
# @param body
|
76
76
|
# @param [Hash] opts the optional parameters
|
77
|
-
# @return [Array<(
|
77
|
+
# @return [Array<(InlineResponse20018, Fixnum, Hash)>] InlineResponse20018 data, response status code and response headers
|
78
78
|
def info(body = {})
|
79
79
|
data = @api_client.call_api(:POST, '/ips/info', body)
|
80
80
|
data
|
@@ -84,7 +84,7 @@ module MailchimpTransactional
|
|
84
84
|
# Lists your dedicated IPs.
|
85
85
|
# @param body
|
86
86
|
# @param [Hash] opts the optional parameters
|
87
|
-
# @return [Array<(Array<
|
87
|
+
# @return [Array<(Array<InlineResponse20017>, Fixnum, Hash)>] Array<InlineResponse20017> data, response status code and response headers
|
88
88
|
def list(body = {})
|
89
89
|
data = @api_client.call_api(:POST, '/ips/list', body)
|
90
90
|
data
|
@@ -94,7 +94,7 @@ module MailchimpTransactional
|
|
94
94
|
# Lists your dedicated IP pools.
|
95
95
|
# @param body
|
96
96
|
# @param [Hash] opts the optional parameters
|
97
|
-
# @return [Array<(Array<
|
97
|
+
# @return [Array<(Array<InlineResponse20023>, Fixnum, Hash)>] Array<InlineResponse20023> data, response status code and response headers
|
98
98
|
def list_pools(body = {})
|
99
99
|
data = @api_client.call_api(:POST, '/ips/list-pools', body)
|
100
100
|
data
|
@@ -104,7 +104,7 @@ module MailchimpTransactional
|
|
104
104
|
# Describes a single dedicated IP pool.
|
105
105
|
# @param body
|
106
106
|
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [Array<(
|
107
|
+
# @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
|
108
108
|
def pool_info(body = {})
|
109
109
|
data = @api_client.call_api(:POST, '/ips/pool-info', body)
|
110
110
|
data
|
@@ -114,7 +114,7 @@ module MailchimpTransactional
|
|
114
114
|
# 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.
|
115
115
|
# @param body
|
116
116
|
# @param [Hash] opts the optional parameters
|
117
|
-
# @return [Array<(
|
117
|
+
# @return [Array<(InlineResponse20019, Fixnum, Hash)>] InlineResponse20019 data, response status code and response headers
|
118
118
|
def provision(body = {})
|
119
119
|
data = @api_client.call_api(:POST, '/ips/provision', body)
|
120
120
|
data
|
@@ -124,7 +124,7 @@ module MailchimpTransactional
|
|
124
124
|
# Configures the custom DNS name for a dedicated IP.
|
125
125
|
# @param body
|
126
126
|
# @param [Hash] opts the optional parameters
|
127
|
-
# @return [Array<(
|
127
|
+
# @return [Array<(InlineResponse20027, Fixnum, Hash)>] InlineResponse20027 data, response status code and response headers
|
128
128
|
def set_custom_dns(body = {})
|
129
129
|
data = @api_client.call_api(:POST, '/ips/set-custom-dns', body)
|
130
130
|
data
|
@@ -134,7 +134,7 @@ module MailchimpTransactional
|
|
134
134
|
# Moves a dedicated IP to a different pool.
|
135
135
|
# @param body
|
136
136
|
# @param [Hash] opts the optional parameters
|
137
|
-
# @return [Array<(
|
137
|
+
# @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
|
138
138
|
def set_pool(body = {})
|
139
139
|
data = @api_client.call_api(:POST, '/ips/set-pool', body)
|
140
140
|
data
|
@@ -144,7 +144,7 @@ module MailchimpTransactional
|
|
144
144
|
# 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.
|
145
145
|
# @param body
|
146
146
|
# @param [Hash] opts the optional parameters
|
147
|
-
# @return [Array<(
|
147
|
+
# @return [Array<(InlineResponse20020, Fixnum, Hash)>] InlineResponse20020 data, response status code and response headers
|
148
148
|
def start_warmup(body = {})
|
149
149
|
data = @api_client.call_api(:POST, '/ips/start-warmup', body)
|
150
150
|
data
|
@@ -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.50
|
7
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
|
@@ -24,7 +24,7 @@ module MailchimpTransactional
|
|
24
24
|
# Cancels a scheduled email.
|
25
25
|
# @param body
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [Array<(Array<
|
27
|
+
# @return [Array<(Array<InlineResponse20035>, Fixnum, Hash)>] Array<InlineResponse20035> data, response status code and response headers
|
28
28
|
def cancel_scheduled(body = {})
|
29
29
|
data = @api_client.call_api(:POST, '/messages/cancel-scheduled', body)
|
30
30
|
data
|
@@ -34,7 +34,7 @@ module MailchimpTransactional
|
|
34
34
|
# Get the full content of a recently sent message.
|
35
35
|
# @param body
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(
|
37
|
+
# @return [Array<(InlineResponse20033, Fixnum, Hash)>] InlineResponse20033 data, response status code and response headers
|
38
38
|
def content(body = {})
|
39
39
|
data = @api_client.call_api(:POST, '/messages/content', body)
|
40
40
|
data
|
@@ -44,7 +44,7 @@ module MailchimpTransactional
|
|
44
44
|
# Get the information for a single recently sent message.
|
45
45
|
# @param body
|
46
46
|
# @param [Hash] opts the optional parameters
|
47
|
-
# @return [Array<(
|
47
|
+
# @return [Array<(InlineResponse20032, Fixnum, Hash)>] InlineResponse20032 data, response status code and response headers
|
48
48
|
def info(body = {})
|
49
49
|
data = @api_client.call_api(:POST, '/messages/info', body)
|
50
50
|
data
|
@@ -54,7 +54,7 @@ module MailchimpTransactional
|
|
54
54
|
# Queries your scheduled emails.
|
55
55
|
# @param body
|
56
56
|
# @param [Hash] opts the optional parameters
|
57
|
-
# @return [Array<(Array<
|
57
|
+
# @return [Array<(Array<InlineResponse20035>, Fixnum, Hash)>] Array<InlineResponse20035> data, response status code and response headers
|
58
58
|
def list_scheduled(body = {})
|
59
59
|
data = @api_client.call_api(:POST, '/messages/list-scheduled', body)
|
60
60
|
data
|
@@ -64,7 +64,7 @@ module MailchimpTransactional
|
|
64
64
|
# Parse the full MIME document for an email message, returning the content of the message broken into its constituent pieces.
|
65
65
|
# @param body
|
66
66
|
# @param [Hash] opts the optional parameters
|
67
|
-
# @return [Array<(
|
67
|
+
# @return [Array<(InlineResponse20034, Fixnum, Hash)>] InlineResponse20034 data, response status code and response headers
|
68
68
|
def parse(body = {})
|
69
69
|
data = @api_client.call_api(:POST, '/messages/parse', body)
|
70
70
|
data
|
@@ -74,7 +74,7 @@ module MailchimpTransactional
|
|
74
74
|
# Reschedules a scheduled email.
|
75
75
|
# @param body
|
76
76
|
# @param [Hash] opts the optional parameters
|
77
|
-
# @return [Array<(Array<
|
77
|
+
# @return [Array<(Array<InlineResponse20035>, Fixnum, Hash)>] Array<InlineResponse20035> data, response status code and response headers
|
78
78
|
def reschedule(body = {})
|
79
79
|
data = @api_client.call_api(:POST, '/messages/reschedule', body)
|
80
80
|
data
|
@@ -84,7 +84,7 @@ module MailchimpTransactional
|
|
84
84
|
# 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.
|
85
85
|
# @param body
|
86
86
|
# @param [Hash] opts the optional parameters
|
87
|
-
# @return [Array<(Array<
|
87
|
+
# @return [Array<(Array<InlineResponse20030>, Fixnum, Hash)>] Array<InlineResponse20030> data, response status code and response headers
|
88
88
|
def search(body = {})
|
89
89
|
data = @api_client.call_api(:POST, '/messages/search', body)
|
90
90
|
data
|
@@ -94,7 +94,7 @@ module MailchimpTransactional
|
|
94
94
|
# Search the content of recently sent messages and return the aggregated hourly stats for matching messages.
|
95
95
|
# @param body
|
96
96
|
# @param [Hash] opts the optional parameters
|
97
|
-
# @return [Array<(Array<
|
97
|
+
# @return [Array<(Array<InlineResponse20031>, Fixnum, Hash)>] Array<InlineResponse20031> data, response status code and response headers
|
98
98
|
def search_time_series(body = {})
|
99
99
|
data = @api_client.call_api(:POST, '/messages/search-time-series', body)
|
100
100
|
data
|
@@ -104,7 +104,7 @@ module MailchimpTransactional
|
|
104
104
|
# Send a new transactional message through the Transactional API.
|
105
105
|
# @param body
|
106
106
|
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [Array<(Array<
|
107
|
+
# @return [Array<(Array<InlineResponse20028>, Fixnum, Hash)>] Array<InlineResponse20028> data, response status code and response headers
|
108
108
|
def send(body = {})
|
109
109
|
data = @api_client.call_api(:POST, '/messages/send', body)
|
110
110
|
data
|
@@ -124,7 +124,7 @@ module MailchimpTransactional
|
|
124
124
|
# Send a new transactional message through the Transactional API using a template.
|
125
125
|
# @param body
|
126
126
|
# @param [Hash] opts the optional parameters
|
127
|
-
# @return [Array<(Array<
|
127
|
+
# @return [Array<(Array<InlineResponse20029>, Fixnum, Hash)>] Array<InlineResponse20029> data, response status code and response headers
|
128
128
|
def send_template(body = {})
|
129
129
|
data = @api_client.call_api(:POST, '/messages/send-template', body)
|
130
130
|
data
|
@@ -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.50
|
7
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
|
@@ -24,7 +24,7 @@ module MailchimpTransactional
|
|
24
24
|
# Add a new custom metadata field to be indexed for the account.
|
25
25
|
# @param body
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [Array<(
|
27
|
+
# @return [Array<(InlineResponse20037, Fixnum, Hash)>] InlineResponse20037 data, response status code and response headers
|
28
28
|
def add(body = {})
|
29
29
|
data = @api_client.call_api(:POST, '/metadata/add', body)
|
30
30
|
data
|
@@ -34,7 +34,7 @@ module MailchimpTransactional
|
|
34
34
|
# 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.
|
35
35
|
# @param body
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(
|
37
|
+
# @return [Array<(InlineResponse20039, Fixnum, Hash)>] InlineResponse20039 data, response status code and response headers
|
38
38
|
def delete(body = {})
|
39
39
|
data = @api_client.call_api(:POST, '/metadata/delete', body)
|
40
40
|
data
|
@@ -44,7 +44,7 @@ module MailchimpTransactional
|
|
44
44
|
# Get the list of custom metadata fields indexed for the account.
|
45
45
|
# @param body
|
46
46
|
# @param [Hash] opts the optional parameters
|
47
|
-
# @return [Array<(Array<
|
47
|
+
# @return [Array<(Array<InlineResponse20036>, Fixnum, Hash)>] Array<InlineResponse20036> data, response status code and response headers
|
48
48
|
def list(body = {})
|
49
49
|
data = @api_client.call_api(:POST, '/metadata/list', body)
|
50
50
|
data
|
@@ -54,7 +54,7 @@ module MailchimpTransactional
|
|
54
54
|
# Update an existing custom metadata field.
|
55
55
|
# @param body
|
56
56
|
# @param [Hash] opts the optional parameters
|
57
|
-
# @return [Array<(
|
57
|
+
# @return [Array<(InlineResponse20038, Fixnum, Hash)>] InlineResponse20038 data, response status code and response headers
|
58
58
|
def update(body = {})
|
59
59
|
data = @api_client.call_api(:POST, '/metadata/update', body)
|
60
60
|
data
|
@@ -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.50
|
7
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
|
@@ -24,7 +24,7 @@ module MailchimpTransactional
|
|
24
24
|
# Adds an email to your email rejection denylist. Addresses that you add manually will never expire and there is no reputation penalty for removing them from your denylist. Attempting to denylist an address that has been added to the allowlist will have no effect.
|
25
25
|
# @param body
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [Array<(
|
27
|
+
# @return [Array<(InlineResponse20040, Fixnum, Hash)>] InlineResponse20040 data, response status code and response headers
|
28
28
|
def add(body = {})
|
29
29
|
data = @api_client.call_api(:POST, '/rejects/add', body)
|
30
30
|
data
|
@@ -34,7 +34,7 @@ module MailchimpTransactional
|
|
34
34
|
# Deletes an email rejection. There is no limit to how many rejections you can remove from your denylist, but keep in mind that each deletion has an affect on your reputation.
|
35
35
|
# @param body
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(
|
37
|
+
# @return [Array<(InlineResponse20042, Fixnum, Hash)>] InlineResponse20042 data, response status code and response headers
|
38
38
|
def delete(body = {})
|
39
39
|
data = @api_client.call_api(:POST, '/rejects/delete', body)
|
40
40
|
data
|
@@ -44,7 +44,7 @@ module MailchimpTransactional
|
|
44
44
|
# Retrieves your email rejection denylist. 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.
|
45
45
|
# @param body
|
46
46
|
# @param [Hash] opts the optional parameters
|
47
|
-
# @return [Array<(Array<
|
47
|
+
# @return [Array<(Array<InlineResponse20041>, Fixnum, Hash)>] Array<InlineResponse20041> data, response status code and response headers
|
48
48
|
def list(body = {})
|
49
49
|
data = @api_client.call_api(:POST, '/rejects/list', body)
|
50
50
|
data
|
@@ -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.50
|
7
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
|
@@ -24,17 +24,17 @@ module MailchimpTransactional
|
|
24
24
|
# Adds a sender domain to your account. Sender domains are added automatically as you send, but you can use this call to add them ahead of time.
|
25
25
|
# @param body
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [Array<(
|
27
|
+
# @return [Array<(InlineResponse20045, Fixnum, Hash)>] InlineResponse20045 data, response status code and response headers
|
28
28
|
def add_domain(body = {})
|
29
29
|
data = @api_client.call_api(:POST, '/senders/add-domain', body)
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
33
|
# Check domain settings
|
34
|
-
# Checks the SPF and DKIM settings for a domain. If you haven't already added this domain to your account, it will be added automatically.
|
34
|
+
# Checks the SPF and DKIM settings for a domain, as well the domain verification. If you haven't already added this domain to your account, it will be added automatically.
|
35
35
|
# @param body
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(
|
37
|
+
# @return [Array<(InlineResponse20046, Fixnum, Hash)>] InlineResponse20046 data, response status code and response headers
|
38
38
|
def check_domain(body = {})
|
39
39
|
data = @api_client.call_api(:POST, '/senders/check-domain', body)
|
40
40
|
data
|
@@ -44,7 +44,7 @@ module MailchimpTransactional
|
|
44
44
|
# Returns the sender domains that have been added to this account.
|
45
45
|
# @param body
|
46
46
|
# @param [Hash] opts the optional parameters
|
47
|
-
# @return [Array<(Array<
|
47
|
+
# @return [Array<(Array<InlineResponse20044>, Fixnum, Hash)>] Array<InlineResponse20044> data, response status code and response headers
|
48
48
|
def domains(body = {})
|
49
49
|
data = @api_client.call_api(:POST, '/senders/domains', body)
|
50
50
|
data
|
@@ -54,7 +54,7 @@ module MailchimpTransactional
|
|
54
54
|
# Return more detailed information about a single sender, including aggregates of recent stats.
|
55
55
|
# @param body
|
56
56
|
# @param [Hash] opts the optional parameters
|
57
|
-
# @return [Array<(
|
57
|
+
# @return [Array<(InlineResponse20048, Fixnum, Hash)>] InlineResponse20048 data, response status code and response headers
|
58
58
|
def info(body = {})
|
59
59
|
data = @api_client.call_api(:POST, '/senders/info', body)
|
60
60
|
data
|
@@ -64,7 +64,7 @@ module MailchimpTransactional
|
|
64
64
|
# Return the senders that have tried to use this account.
|
65
65
|
# @param body
|
66
66
|
# @param [Hash] opts the optional parameters
|
67
|
-
# @return [Array<(Array<
|
67
|
+
# @return [Array<(Array<InlineResponse20043>, Fixnum, Hash)>] Array<InlineResponse20043> data, response status code and response headers
|
68
68
|
def list(body = {})
|
69
69
|
data = @api_client.call_api(:POST, '/senders/list', body)
|
70
70
|
data
|
@@ -74,7 +74,7 @@ module MailchimpTransactional
|
|
74
74
|
# Return the recent history (hourly stats for the last 30 days) for a sender.
|
75
75
|
# @param body
|
76
76
|
# @param [Hash] opts the optional parameters
|
77
|
-
# @return [Array<(Array<
|
77
|
+
# @return [Array<(Array<InlineResponse20049>, Fixnum, Hash)>] Array<InlineResponse20049> data, response status code and response headers
|
78
78
|
def time_series(body = {})
|
79
79
|
data = @api_client.call_api(:POST, '/senders/time-series', body)
|
80
80
|
data
|
@@ -84,7 +84,7 @@ module MailchimpTransactional
|
|
84
84
|
# Sends a verification email in order to verify ownership of a domain. Domain verification is a required step to confirm ownership of a domain. Once a domain has been verified in a Transactional API account, other accounts may not have their messages signed by that domain unless they also verify the domain. This prevents other Transactional API accounts from sending mail signed by your domain.
|
85
85
|
# @param body
|
86
86
|
# @param [Hash] opts the optional parameters
|
87
|
-
# @return [Array<(
|
87
|
+
# @return [Array<(InlineResponse20047, Fixnum, Hash)>] InlineResponse20047 data, response status code and response headers
|
88
88
|
def verify_domain(body = {})
|
89
89
|
data = @api_client.call_api(:POST, '/senders/verify-domain', body)
|
90
90
|
data
|
@@ -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.50
|
7
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
|
@@ -24,7 +24,7 @@ module MailchimpTransactional
|
|
24
24
|
# Add a new subaccount.
|
25
25
|
# @param body
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [Array<(
|
27
|
+
# @return [Array<(InlineResponse20051, Fixnum, Hash)>] InlineResponse20051 data, response status code and response headers
|
28
28
|
def add(body = {})
|
29
29
|
data = @api_client.call_api(:POST, '/subaccounts/add', body)
|
30
30
|
data
|
@@ -34,7 +34,7 @@ module MailchimpTransactional
|
|
34
34
|
# Delete an existing subaccount. Any email related to the subaccount will be saved, but stats will be removed and any future sending calls to this subaccount will fail.
|
35
35
|
# @param body
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(
|
37
|
+
# @return [Array<(InlineResponse20054, Fixnum, Hash)>] InlineResponse20054 data, response status code and response headers
|
38
38
|
def delete(body = {})
|
39
39
|
data = @api_client.call_api(:POST, '/subaccounts/delete', body)
|
40
40
|
data
|
@@ -44,7 +44,7 @@ module MailchimpTransactional
|
|
44
44
|
# Given the ID of an existing subaccount, return the data about it.
|
45
45
|
# @param body
|
46
46
|
# @param [Hash] opts the optional parameters
|
47
|
-
# @return [Array<(
|
47
|
+
# @return [Array<(InlineResponse20052, Fixnum, Hash)>] InlineResponse20052 data, response status code and response headers
|
48
48
|
def info(body = {})
|
49
49
|
data = @api_client.call_api(:POST, '/subaccounts/info', body)
|
50
50
|
data
|
@@ -54,7 +54,7 @@ module MailchimpTransactional
|
|
54
54
|
# Get the list of subaccounts defined for the account, optionally filtered by a prefix.
|
55
55
|
# @param body
|
56
56
|
# @param [Hash] opts the optional parameters
|
57
|
-
# @return [Array<(Array<
|
57
|
+
# @return [Array<(Array<InlineResponse20050>, Fixnum, Hash)>] Array<InlineResponse20050> data, response status code and response headers
|
58
58
|
def list(body = {})
|
59
59
|
data = @api_client.call_api(:POST, '/subaccounts/list', body)
|
60
60
|
data
|
@@ -64,7 +64,7 @@ module MailchimpTransactional
|
|
64
64
|
# Pause a subaccount's sending. Any future emails delivered to this subaccount will be queued for a maximum of 3 days until the subaccount is resumed.
|
65
65
|
# @param body
|
66
66
|
# @param [Hash] opts the optional parameters
|
67
|
-
# @return [Array<(
|
67
|
+
# @return [Array<(InlineResponse20055, Fixnum, Hash)>] InlineResponse20055 data, response status code and response headers
|
68
68
|
def pause(body = {})
|
69
69
|
data = @api_client.call_api(:POST, '/subaccounts/pause', body)
|
70
70
|
data
|
@@ -74,7 +74,7 @@ module MailchimpTransactional
|
|
74
74
|
# Resume a paused subaccount's sending.
|
75
75
|
# @param body
|
76
76
|
# @param [Hash] opts the optional parameters
|
77
|
-
# @return [Array<(
|
77
|
+
# @return [Array<(InlineResponse20056, Fixnum, Hash)>] InlineResponse20056 data, response status code and response headers
|
78
78
|
def resume(body = {})
|
79
79
|
data = @api_client.call_api(:POST, '/subaccounts/resume', body)
|
80
80
|
data
|
@@ -84,7 +84,7 @@ module MailchimpTransactional
|
|
84
84
|
# Update an existing subaccount.
|
85
85
|
# @param body
|
86
86
|
# @param [Hash] opts the optional parameters
|
87
|
-
# @return [Array<(
|
87
|
+
# @return [Array<(InlineResponse20053, Fixnum, Hash)>] InlineResponse20053 data, response status code and response headers
|
88
88
|
def update(body = {})
|
89
89
|
data = @api_client.call_api(:POST, '/subaccounts/update', body)
|
90
90
|
data
|
@@ -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.50
|
7
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
|
@@ -24,7 +24,7 @@ module MailchimpTransactional
|
|
24
24
|
# Return the recent history (hourly stats for the last 30 days) for all tags.
|
25
25
|
# @param body
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [Array<(Array<
|
27
|
+
# @return [Array<(Array<InlineResponse20031>, Fixnum, Hash)>] Array<InlineResponse20031> data, response status code and response headers
|
28
28
|
def all_time_series(body = {})
|
29
29
|
data = @api_client.call_api(:POST, '/tags/all-time-series', body)
|
30
30
|
data
|
@@ -34,7 +34,7 @@ module MailchimpTransactional
|
|
34
34
|
# Deletes a tag permanently. Deleting a tag removes the tag from any messages that have been sent, and also deletes the tag's stats. There is no way to undo this operation, so use it carefully.
|
35
35
|
# @param body
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(
|
37
|
+
# @return [Array<(InlineResponse20058, Fixnum, Hash)>] InlineResponse20058 data, response status code and response headers
|
38
38
|
def delete(body = {})
|
39
39
|
data = @api_client.call_api(:POST, '/tags/delete', body)
|
40
40
|
data
|
@@ -44,7 +44,7 @@ module MailchimpTransactional
|
|
44
44
|
# Return more detailed information about a single tag, including aggregates of recent stats.
|
45
45
|
# @param body
|
46
46
|
# @param [Hash] opts the optional parameters
|
47
|
-
# @return [Array<(
|
47
|
+
# @return [Array<(InlineResponse20059, Fixnum, Hash)>] InlineResponse20059 data, response status code and response headers
|
48
48
|
def info(body = {})
|
49
49
|
data = @api_client.call_api(:POST, '/tags/info', body)
|
50
50
|
data
|
@@ -54,7 +54,7 @@ module MailchimpTransactional
|
|
54
54
|
# Return all of the user-defined tag information.
|
55
55
|
# @param body
|
56
56
|
# @param [Hash] opts the optional parameters
|
57
|
-
# @return [Array<(Array<
|
57
|
+
# @return [Array<(Array<InlineResponse20057>, Fixnum, Hash)>] Array<InlineResponse20057> data, response status code and response headers
|
58
58
|
def list(body = {})
|
59
59
|
data = @api_client.call_api(:POST, '/tags/list', body)
|
60
60
|
data
|
@@ -64,7 +64,7 @@ module MailchimpTransactional
|
|
64
64
|
# Return the recent history (hourly stats for the last 30 days) for a tag.
|
65
65
|
# @param body
|
66
66
|
# @param [Hash] opts the optional parameters
|
67
|
-
# @return [Array<(Array<
|
67
|
+
# @return [Array<(Array<InlineResponse20031>, Fixnum, Hash)>] Array<InlineResponse20031> data, response status code and response headers
|
68
68
|
def time_series(body = {})
|
69
69
|
data = @api_client.call_api(:POST, '/tags/time-series', body)
|
70
70
|
data
|
@@ -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.50
|
7
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
|
@@ -24,7 +24,7 @@ module MailchimpTransactional
|
|
24
24
|
# Add a new template.
|
25
25
|
# @param body
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [Array<(
|
27
|
+
# @return [Array<(InlineResponse20060, Fixnum, Hash)>] InlineResponse20060 data, response status code and response headers
|
28
28
|
def add(body = {})
|
29
29
|
data = @api_client.call_api(:POST, '/templates/add', body)
|
30
30
|
data
|
@@ -34,7 +34,7 @@ module MailchimpTransactional
|
|
34
34
|
# Delete a template.
|
35
35
|
# @param body
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(
|
37
|
+
# @return [Array<(InlineResponse20064, Fixnum, Hash)>] InlineResponse20064 data, response status code and response headers
|
38
38
|
def delete(body = {})
|
39
39
|
data = @api_client.call_api(:POST, '/templates/delete', body)
|
40
40
|
data
|
@@ -44,7 +44,7 @@ module MailchimpTransactional
|
|
44
44
|
# Get the information for an existing template.
|
45
45
|
# @param body
|
46
46
|
# @param [Hash] opts the optional parameters
|
47
|
-
# @return [Array<(
|
47
|
+
# @return [Array<(InlineResponse20061, Fixnum, Hash)>] InlineResponse20061 data, response status code and response headers
|
48
48
|
def info(body = {})
|
49
49
|
data = @api_client.call_api(:POST, '/templates/info', body)
|
50
50
|
data
|
@@ -54,7 +54,7 @@ module MailchimpTransactional
|
|
54
54
|
# Return a list of all the templates available to this user.
|
55
55
|
# @param body
|
56
56
|
# @param [Hash] opts the optional parameters
|
57
|
-
# @return [Array<(Array<
|
57
|
+
# @return [Array<(Array<InlineResponse20065>, Fixnum, Hash)>] Array<InlineResponse20065> data, response status code and response headers
|
58
58
|
def list(body = {})
|
59
59
|
data = @api_client.call_api(:POST, '/templates/list', body)
|
60
60
|
data
|
@@ -64,7 +64,7 @@ module MailchimpTransactional
|
|
64
64
|
# Publish the content for the template. Any new messages sent using this template will start using the content that was previously in draft.
|
65
65
|
# @param body
|
66
66
|
# @param [Hash] opts the optional parameters
|
67
|
-
# @return [Array<(
|
67
|
+
# @return [Array<(InlineResponse20063, Fixnum, Hash)>] InlineResponse20063 data, response status code and response headers
|
68
68
|
def publish(body = {})
|
69
69
|
data = @api_client.call_api(:POST, '/templates/publish', body)
|
70
70
|
data
|
@@ -74,7 +74,7 @@ module MailchimpTransactional
|
|
74
74
|
# Inject content and optionally merge fields into a template, returning the HTML that results.
|
75
75
|
# @param body
|
76
76
|
# @param [Hash] opts the optional parameters
|
77
|
-
# @return [Array<(
|
77
|
+
# @return [Array<(InlineResponse20066, Fixnum, Hash)>] InlineResponse20066 data, response status code and response headers
|
78
78
|
def render(body = {})
|
79
79
|
data = @api_client.call_api(:POST, '/templates/render', body)
|
80
80
|
data
|
@@ -84,7 +84,7 @@ module MailchimpTransactional
|
|
84
84
|
# Return the recent history (hourly stats for the last 30 days) for a template.
|
85
85
|
# @param body
|
86
86
|
# @param [Hash] opts the optional parameters
|
87
|
-
# @return [Array<(Array<
|
87
|
+
# @return [Array<(Array<InlineResponse20049>, Fixnum, Hash)>] Array<InlineResponse20049> data, response status code and response headers
|
88
88
|
def time_series(body = {})
|
89
89
|
data = @api_client.call_api(:POST, '/templates/time-series', body)
|
90
90
|
data
|
@@ -94,7 +94,7 @@ module MailchimpTransactional
|
|
94
94
|
# Update the code for an existing template. If null is provided for any fields, the values will remain unchanged.
|
95
95
|
# @param body
|
96
96
|
# @param [Hash] opts the optional parameters
|
97
|
-
# @return [Array<(
|
97
|
+
# @return [Array<(InlineResponse20062, Fixnum, Hash)>] InlineResponse20062 data, response status code and response headers
|
98
98
|
def update(body = {})
|
99
99
|
data = @api_client.call_api(:POST, '/templates/update', body)
|
100
100
|
data
|
@@ -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.50
|
7
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
|
@@ -24,7 +24,7 @@ module MailchimpTransactional
|
|
24
24
|
# Add a tracking domain to your account.
|
25
25
|
# @param body
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [Array<(
|
27
|
+
# @return [Array<(InlineResponse20071, Fixnum, Hash)>] InlineResponse20071 data, response status code and response headers
|
28
28
|
def add_tracking_domain(body = {})
|
29
29
|
data = @api_client.call_api(:POST, '/urls/add-tracking-domain', body)
|
30
30
|
data
|
@@ -34,7 +34,7 @@ module MailchimpTransactional
|
|
34
34
|
# Checks the CNAME settings for a tracking domain. The domain must have been added already with the add-tracking-domain call.
|
35
35
|
# @param body
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(
|
37
|
+
# @return [Array<(InlineResponse20071, Fixnum, Hash)>] InlineResponse20071 data, response status code and response headers
|
38
38
|
def check_tracking_domain(body = {})
|
39
39
|
data = @api_client.call_api(:POST, '/urls/check-tracking-domain', body)
|
40
40
|
data
|
@@ -44,7 +44,7 @@ module MailchimpTransactional
|
|
44
44
|
# Get the 100 most clicked URLs.
|
45
45
|
# @param body
|
46
46
|
# @param [Hash] opts the optional parameters
|
47
|
-
# @return [Array<(Array<
|
47
|
+
# @return [Array<(Array<InlineResponse20067>, Fixnum, Hash)>] Array<InlineResponse20067> data, response status code and response headers
|
48
48
|
def list(body = {})
|
49
49
|
data = @api_client.call_api(:POST, '/urls/list', body)
|
50
50
|
data
|
@@ -54,7 +54,7 @@ module MailchimpTransactional
|
|
54
54
|
# Return the 100 most clicked URLs that match the search query given.
|
55
55
|
# @param body
|
56
56
|
# @param [Hash] opts the optional parameters
|
57
|
-
# @return [Array<(Array<
|
57
|
+
# @return [Array<(Array<InlineResponse20068>, Fixnum, Hash)>] Array<InlineResponse20068> data, response status code and response headers
|
58
58
|
def search(body = {})
|
59
59
|
data = @api_client.call_api(:POST, '/urls/search', body)
|
60
60
|
data
|
@@ -64,7 +64,7 @@ module MailchimpTransactional
|
|
64
64
|
# Return the recent history (hourly stats for the last 30 days) for a URL
|
65
65
|
# @param body
|
66
66
|
# @param [Hash] opts the optional parameters
|
67
|
-
# @return [Array<(Array<
|
67
|
+
# @return [Array<(Array<InlineResponse20069>, Fixnum, Hash)>] Array<InlineResponse20069> data, response status code and response headers
|
68
68
|
def time_series(body = {})
|
69
69
|
data = @api_client.call_api(:POST, '/urls/time-series', body)
|
70
70
|
data
|
@@ -74,7 +74,7 @@ module MailchimpTransactional
|
|
74
74
|
# Get the list of tracking domains set up for this account.
|
75
75
|
# @param body
|
76
76
|
# @param [Hash] opts the optional parameters
|
77
|
-
# @return [Array<(Array<
|
77
|
+
# @return [Array<(Array<InlineResponse20070>, Fixnum, Hash)>] Array<InlineResponse20070> data, response status code and response headers
|
78
78
|
def tracking_domains(body = {})
|
79
79
|
data = @api_client.call_api(:POST, '/urls/tracking-domains', body)
|
80
80
|
data
|
@@ -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.50
|
7
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
|
@@ -24,7 +24,7 @@ module MailchimpTransactional
|
|
24
24
|
# Return the information about the API-connected user.
|
25
25
|
# @param body
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [Array<(
|
27
|
+
# @return [Array<(InlineResponse20072, Fixnum, Hash)>] InlineResponse20072 data, response status code and response headers
|
28
28
|
def info(body = {})
|
29
29
|
data = @api_client.call_api(:POST, '/users/info', body)
|
30
30
|
data
|
@@ -44,7 +44,7 @@ module MailchimpTransactional
|
|
44
44
|
# Validate an API key and respond to a ping (JSON parser version).
|
45
45
|
# @param body
|
46
46
|
# @param [Hash] opts the optional parameters
|
47
|
-
# @return [Array<(
|
47
|
+
# @return [Array<(InlineResponse20073, Fixnum, Hash)>] InlineResponse20073 data, response status code and response headers
|
48
48
|
def ping2(body = {})
|
49
49
|
data = @api_client.call_api(:POST, '/users/ping2', body)
|
50
50
|
data
|
@@ -54,7 +54,7 @@ module MailchimpTransactional
|
|
54
54
|
# Return the senders that have tried to use this account, both verified and unverified.
|
55
55
|
# @param body
|
56
56
|
# @param [Hash] opts the optional parameters
|
57
|
-
# @return [Array<(Array<
|
57
|
+
# @return [Array<(Array<InlineResponse20043>, Fixnum, Hash)>] Array<InlineResponse20043> data, response status code and response headers
|
58
58
|
def senders(body = {})
|
59
59
|
data = @api_client.call_api(:POST, '/users/senders', body)
|
60
60
|
data
|
@@ -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.50
|
7
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
|
@@ -24,7 +24,7 @@ module MailchimpTransactional
|
|
24
24
|
# Add a new webhook.
|
25
25
|
# @param body
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [Array<(
|
27
|
+
# @return [Array<(InlineResponse20075, Fixnum, Hash)>] InlineResponse20075 data, response status code and response headers
|
28
28
|
def add(body = {})
|
29
29
|
data = @api_client.call_api(:POST, '/webhooks/add', body)
|
30
30
|
data
|
@@ -34,7 +34,7 @@ module MailchimpTransactional
|
|
34
34
|
# Delete an existing webhook.
|
35
35
|
# @param body
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(
|
37
|
+
# @return [Array<(InlineResponse20078, Fixnum, Hash)>] InlineResponse20078 data, response status code and response headers
|
38
38
|
def delete(body = {})
|
39
39
|
data = @api_client.call_api(:POST, '/webhooks/delete', body)
|
40
40
|
data
|
@@ -44,7 +44,7 @@ module MailchimpTransactional
|
|
44
44
|
# Given the ID of an existing webhook, return the data about it.
|
45
45
|
# @param body
|
46
46
|
# @param [Hash] opts the optional parameters
|
47
|
-
# @return [Array<(
|
47
|
+
# @return [Array<(InlineResponse20076, Fixnum, Hash)>] InlineResponse20076 data, response status code and response headers
|
48
48
|
def info(body = {})
|
49
49
|
data = @api_client.call_api(:POST, '/webhooks/info', body)
|
50
50
|
data
|
@@ -54,7 +54,7 @@ module MailchimpTransactional
|
|
54
54
|
# Get the list of all webhooks defined on the account.
|
55
55
|
# @param body
|
56
56
|
# @param [Hash] opts the optional parameters
|
57
|
-
# @return [Array<(Array<
|
57
|
+
# @return [Array<(Array<InlineResponse20074>, Fixnum, Hash)>] Array<InlineResponse20074> data, response status code and response headers
|
58
58
|
def list(body = {})
|
59
59
|
data = @api_client.call_api(:POST, '/webhooks/list', body)
|
60
60
|
data
|
@@ -64,7 +64,7 @@ module MailchimpTransactional
|
|
64
64
|
# Update an existing webhook.
|
65
65
|
# @param body
|
66
66
|
# @param [Hash] opts the optional parameters
|
67
|
-
# @return [Array<(
|
67
|
+
# @return [Array<(InlineResponse20077, Fixnum, Hash)>] InlineResponse20077 data, response status code and response headers
|
68
68
|
def update(body = {})
|
69
69
|
data = @api_client.call_api(:POST, '/webhooks/update', body)
|
70
70
|
data
|
@@ -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.50
|
7
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
|
@@ -24,7 +24,7 @@ module MailchimpTransactional
|
|
24
24
|
# Adds an email to your email rejection allowlist. If the address is currently on your denylist, that denylist entry will be removed automatically.
|
25
25
|
# @param body
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [Array<(
|
27
|
+
# @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
|
28
28
|
def add(body = {})
|
29
29
|
data = @api_client.call_api(:POST, '/whitelists/add', body)
|
30
30
|
data
|
@@ -34,7 +34,7 @@ module MailchimpTransactional
|
|
34
34
|
# Removes an email address from the allowlist.
|
35
35
|
# @param body
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(
|
37
|
+
# @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
|
38
38
|
def delete(body = {})
|
39
39
|
data = @api_client.call_api(:POST, '/whitelists/delete', body)
|
40
40
|
data
|
@@ -44,7 +44,7 @@ module MailchimpTransactional
|
|
44
44
|
# Retrieves your email rejection allowlist. You can provide an email address or search prefix to limit the results. Returns up to 1000 results.
|
45
45
|
# @param body
|
46
46
|
# @param [Hash] opts the optional parameters
|
47
|
-
# @return [Array<(Array<
|
47
|
+
# @return [Array<(Array<InlineResponse2001>, Fixnum, Hash)>] Array<InlineResponse2001> data, response status code and response headers
|
48
48
|
def list(body = {})
|
49
49
|
data = @api_client.call_api(:POST, '/whitelists/list', body)
|
50
50
|
data
|
@@ -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.50
|
7
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
|
@@ -20,6 +20,9 @@ module MailchimpTransactional
|
|
20
20
|
@format_list = ['json', 'xml', 'php', 'yaml']
|
21
21
|
@default_output_format = 'json'
|
22
22
|
@accepts = ['application/json', 'application/xml', 'application/x-php', 'application/x-yaml; charset=utf-8']
|
23
|
+
@read_timeout = 300
|
24
|
+
@write_timeout = 300
|
25
|
+
@connect_timeout = 300
|
23
26
|
set_api_key(api_key)
|
24
27
|
end
|
25
28
|
|
@@ -37,6 +40,13 @@ module MailchimpTransactional
|
|
37
40
|
end
|
38
41
|
end
|
39
42
|
|
43
|
+
def set_timeout(default_timeout=nil, read: nil, write: nil, connect: nil)
|
44
|
+
default_timeout = default_timeout || 300
|
45
|
+
@read_timeout = read || default_timeout
|
46
|
+
@write_timeout = write || default_timeout
|
47
|
+
@connect_timeout = connect || default_timeout
|
48
|
+
end
|
49
|
+
|
40
50
|
def call_api(http_method, path, body = {})
|
41
51
|
use_default_output_format = true
|
42
52
|
active_output_format = @default_output_format
|
@@ -63,7 +73,7 @@ module MailchimpTransactional
|
|
63
73
|
body[:key] = @api_key
|
64
74
|
|
65
75
|
# send request
|
66
|
-
conn = Excon.new(url, :headers => {'Content-Type' => 'application/json'}, :read_timeout =>
|
76
|
+
conn = Excon.new(url, :headers => {'Content-Type' => 'application/json'}, :read_timeout => @read_timeout, :write_timeout => @write_timeout, :connect_timeout => @connect_timeout)
|
67
77
|
res = conn.post(:body => body.to_json)
|
68
78
|
|
69
79
|
# handle response
|
@@ -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.50
|
7
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
|
@@ -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.50
|
7
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
|
@@ -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.50
|
7
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
|
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.12
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module MailchimpTransactional
|
14
|
-
VERSION = '1.0.
|
14
|
+
VERSION = '1.0.50'
|
15
15
|
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.50
|
7
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
|
@@ -16,6 +16,7 @@ require 'MailchimpTransactional/api_error'
|
|
16
16
|
require 'MailchimpTransactional/version'
|
17
17
|
|
18
18
|
# APIs
|
19
|
+
require 'MailchimpTransactional/api/allowlists_api'
|
19
20
|
require 'MailchimpTransactional/api/exports_api'
|
20
21
|
require 'MailchimpTransactional/api/inbound_api'
|
21
22
|
require 'MailchimpTransactional/api/ips_api'
|
@@ -41,6 +42,7 @@ module MailchimpTransactional
|
|
41
42
|
@api_key = api_key
|
42
43
|
@api_client = ApiClient.new(@api_key)
|
43
44
|
|
45
|
+
@Allowlists = AllowlistsApi.new(@api_client)
|
44
46
|
@Exports = ExportsApi.new(@api_client)
|
45
47
|
@Inbound = InboundApi.new(@api_client)
|
46
48
|
@Ips = IpsApi.new(@api_client)
|
@@ -61,6 +63,13 @@ module MailchimpTransactional
|
|
61
63
|
@api_client.set_default_output_format(output_format)
|
62
64
|
end
|
63
65
|
|
66
|
+
def set_timeout(timeout=nil, read: nil, write: nil, connect: nil)
|
67
|
+
@api_client.set_timeout(timeout, read: read, write: write, connect: connect)
|
68
|
+
end
|
69
|
+
|
70
|
+
def allowlists
|
71
|
+
@Allowlists
|
72
|
+
end
|
64
73
|
def exports
|
65
74
|
@Exports
|
66
75
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: MailchimpTransactional
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.50
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mailchimp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|
@@ -203,6 +203,7 @@ files:
|
|
203
203
|
- MailchimpTransactional.gemspec
|
204
204
|
- README.md
|
205
205
|
- lib/MailchimpTransactional.rb
|
206
|
+
- lib/MailchimpTransactional/api/allowlists_api.rb
|
206
207
|
- lib/MailchimpTransactional/api/exports_api.rb
|
207
208
|
- lib/MailchimpTransactional/api/inbound_api.rb
|
208
209
|
- lib/MailchimpTransactional/api/ips_api.rb
|