MailchimpTransactional 1.1.2 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/MailchimpTransactional.gemspec +1 -1
- data/README.md +14 -10
- data/lib/MailchimpTransactional/api/allowlists_api.rb +1 -1
- data/lib/MailchimpTransactional/api/exports_api.rb +1 -1
- data/lib/MailchimpTransactional/api/inbound_api.rb +5 -5
- data/lib/MailchimpTransactional/api/ips_api.rb +1 -1
- data/lib/MailchimpTransactional/api/mctemplates_api.rb +63 -0
- data/lib/MailchimpTransactional/api/messages_api.rb +23 -13
- data/lib/MailchimpTransactional/api/metadata_api.rb +5 -5
- data/lib/MailchimpTransactional/api/rejects_api.rb +34 -4
- data/lib/MailchimpTransactional/api/senders_api.rb +18 -8
- 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 +9 -29
- data/lib/MailchimpTransactional/api/users_api.rb +4 -4
- data/lib/MailchimpTransactional/api/webhooks_api.rb +6 -6
- data/lib/MailchimpTransactional/api_client.rb +8 -3
- data/lib/MailchimpTransactional/api_error.rb +1 -1
- data/lib/MailchimpTransactional/configuration.rb +2 -2
- data/lib/MailchimpTransactional/version.rb +2 -2
- data/lib/MailchimpTransactional.rb +6 -6
- metadata +3 -3
- data/lib/MailchimpTransactional/api/whitelists_api.rb +0 -53
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b3cdc1f2076a76b6ce169426c88c81ebabf964cb9b16cf31c01e599a0f09d0fc
|
|
4
|
+
data.tar.gz: 324caaecad846e1313e0234c78ff9f2ce7815940da943d8e3788c87217dc9ac7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f98af253a5b7963d14b0d999027d7d7593177041b83965cc8fc9c607ccce9c199d578ded489874e89b2cddf07046d0fa2e945dc6a3c85d8040e4666c23e54bd
|
|
7
|
+
data.tar.gz: aaa27e8d98384cd121fcf3f57ba1cc7bced6f4175558d815df89c7aad4f53edb28d9f12a82bc502825b06edcf7a73fd8561c00a832ffd46b375727bed59b0fb8
|
|
@@ -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.1
|
|
8
|
+
OpenAPI spec version: 1.4.1
|
|
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.1.
|
|
24
|
+
gem install ./MailchimpTransactional-1.4.1.gem
|
|
25
25
|
```
|
|
26
|
-
(for development, run `gem install --dev ./MailchimpTransactional-1.1.
|
|
26
|
+
(for development, run `gem install --dev ./MailchimpTransactional-1.4.1.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.1
|
|
32
|
+
gem 'MailchimpTransactional', '~> 1.4.1'
|
|
33
33
|
|
|
34
34
|
### Install from Git
|
|
35
35
|
|
|
@@ -86,7 +86,7 @@ This repo is autogenerated from https://github.com/mailchimp/mailchimp-client-li
|
|
|
86
86
|
|
|
87
87
|
## API Endpoints
|
|
88
88
|
|
|
89
|
-
All URIs are relative to *https://mandrillapp.com/api/1.
|
|
89
|
+
All URIs are relative to *https://mandrillapp.com/api/1.3*
|
|
90
90
|
|
|
91
91
|
| Method | Endpoint |
|
|
92
92
|
| ---------- | -------- |
|
|
@@ -121,6 +121,10 @@ All URIs are relative to *https://mandrillapp.com/api/1.0*
|
|
|
121
121
|
| **ips.set_custom_dns** | /ips/set-custom-dns |
|
|
122
122
|
| **ips.set_pool** | /ips/set-pool |
|
|
123
123
|
| **ips.start_warmup** | /ips/start-warmup |
|
|
124
|
+
| **mctemplates.mc_templates_info** | /mctemplates/info |
|
|
125
|
+
| **mctemplates.mc_templates_list** | /mctemplates/list |
|
|
126
|
+
| **mctemplates.mc_templates_render** | /mctemplates/render |
|
|
127
|
+
| **mctemplates.mc_templates_time_series** | /mctemplates/time-series |
|
|
124
128
|
| **messages.cancel_scheduled** | /messages/cancel-scheduled |
|
|
125
129
|
| **messages.content** | /messages/content |
|
|
126
130
|
| **messages.info** | /messages/info |
|
|
@@ -130,6 +134,7 @@ All URIs are relative to *https://mandrillapp.com/api/1.0*
|
|
|
130
134
|
| **messages.search** | /messages/search |
|
|
131
135
|
| **messages.search_time_series** | /messages/search-time-series |
|
|
132
136
|
| **messages.send** | /messages/send |
|
|
137
|
+
| **messages.send_mc_template** | /messages/send-mc-template |
|
|
133
138
|
| **messages.send_raw** | /messages/send-raw |
|
|
134
139
|
| **messages.send_sms** | /messages/send-sms |
|
|
135
140
|
| **messages.send_template** | /messages/send-template |
|
|
@@ -138,10 +143,14 @@ All URIs are relative to *https://mandrillapp.com/api/1.0*
|
|
|
138
143
|
| **metadata.list** | /metadata/list |
|
|
139
144
|
| **metadata.update** | /metadata/update |
|
|
140
145
|
| **rejects.add** | /rejects/add |
|
|
146
|
+
| **rejects.add_sms** | /rejects/add-sms |
|
|
141
147
|
| **rejects.delete** | /rejects/delete |
|
|
148
|
+
| **rejects.delete_sms** | /rejects/delete-sms |
|
|
142
149
|
| **rejects.list** | /rejects/list |
|
|
150
|
+
| **rejects.list_sms** | /rejects/list-sms |
|
|
143
151
|
| **senders.add_domain** | /senders/add-domain |
|
|
144
152
|
| **senders.check_domain** | /senders/check-domain |
|
|
153
|
+
| **senders.delete_domain** | /senders/delete-domain |
|
|
145
154
|
| **senders.domains** | /senders/domains |
|
|
146
155
|
| **senders.info** | /senders/info |
|
|
147
156
|
| **senders.list** | /senders/list |
|
|
@@ -169,9 +178,7 @@ All URIs are relative to *https://mandrillapp.com/api/1.0*
|
|
|
169
178
|
| **templates.update** | /templates/update |
|
|
170
179
|
| **urls.add_tracking_domain** | /urls/add-tracking-domain |
|
|
171
180
|
| **urls.check_tracking_domain** | /urls/check-tracking-domain |
|
|
172
|
-
| **urls.
|
|
173
|
-
| **urls.search** | /urls/search |
|
|
174
|
-
| **urls.time_series** | /urls/time-series |
|
|
181
|
+
| **urls.delete_tracking_domain** | /urls/delete-tracking-domain |
|
|
175
182
|
| **urls.tracking_domains** | /urls/tracking-domains |
|
|
176
183
|
| **users.info** | /users/info |
|
|
177
184
|
| **users.ping** | /users/ping |
|
|
@@ -182,9 +189,6 @@ All URIs are relative to *https://mandrillapp.com/api/1.0*
|
|
|
182
189
|
| **webhooks.info** | /webhooks/info |
|
|
183
190
|
| **webhooks.list** | /webhooks/list |
|
|
184
191
|
| **webhooks.update** | /webhooks/update |
|
|
185
|
-
| **whitelists.add** | /whitelists/add |
|
|
186
|
-
| **whitelists.delete** | /whitelists/delete |
|
|
187
|
-
| **whitelists.list** | /whitelists/list |
|
|
188
192
|
|
|
189
193
|
|
|
190
194
|
## Additional Libraries
|
|
@@ -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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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
|
|
@@ -30,8 +30,8 @@ module MailchimpTransactional
|
|
|
30
30
|
data
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
# Add
|
|
34
|
-
# Add a new
|
|
33
|
+
# Add route
|
|
34
|
+
# Add a new route to an inbound domain or SMS program. Provide either domain or phone (not both).
|
|
35
35
|
# @param body
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
|
37
37
|
# @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
|
|
@@ -80,8 +80,8 @@ module MailchimpTransactional
|
|
|
80
80
|
data
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
# List
|
|
84
|
-
# List the
|
|
83
|
+
# List routes
|
|
84
|
+
# List the routes defined for an inbound domain or SMS program. Provide either domain or phone (not both).
|
|
85
85
|
# @param body
|
|
86
86
|
# @param [Hash] opts the optional parameters
|
|
87
87
|
# @return [Array<(Array<InlineResponse20012>, Fixnum, Hash)>] Array<InlineResponse20012> data, response status code and response headers
|
|
@@ -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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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
|
|
@@ -0,0 +1,63 @@
|
|
|
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.4.1
|
|
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 MctemplatesApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# Get Mailchimp Template info
|
|
24
|
+
# Get information about a Mailchimp Transactional template in your account.
|
|
25
|
+
# @param body
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [Array<(InlineResponse20029, Fixnum, Hash)>] InlineResponse20029 data, response status code and response headers
|
|
28
|
+
def mc_templates_info(body = {})
|
|
29
|
+
data = @api_client.call_api(:POST, '/mctemplates/info', body)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# List Mailchimp Transactional Templates
|
|
34
|
+
# Return a list of all Mailchimp Transactional templates available to this user.
|
|
35
|
+
# @param body
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @return [Array<(Array<InlineResponse20029>, Fixnum, Hash)>] Array<InlineResponse20029> data, response status code and response headers
|
|
38
|
+
def mc_templates_list(body = {})
|
|
39
|
+
data = @api_client.call_api(:POST, '/mctemplates/list', body)
|
|
40
|
+
data
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Render Mailchimp Transactional Template
|
|
44
|
+
# Render a Mailchimp Transactional template with optional merge variables.
|
|
45
|
+
# @param body
|
|
46
|
+
# @param [Hash] opts the optional parameters
|
|
47
|
+
# @return [Array<(InlineResponse20030, Fixnum, Hash)>] InlineResponse20030 data, response status code and response headers
|
|
48
|
+
def mc_templates_render(body = {})
|
|
49
|
+
data = @api_client.call_api(:POST, '/mctemplates/render', body)
|
|
50
|
+
data
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Get Mailchimp Transactional Template Time Series
|
|
54
|
+
# Return the recent history (hourly stats for the last 30 days) for a Mailchimp Transactional template. Returns an empty array if the template exists but has never been used to send messages.
|
|
55
|
+
# @param body
|
|
56
|
+
# @param [Hash] opts the optional parameters
|
|
57
|
+
# @return [Array<(Array<InlineResponse20031>, Fixnum, Hash)>] Array<InlineResponse20031> data, response status code and response headers
|
|
58
|
+
def mc_templates_time_series(body = {})
|
|
59
|
+
data = @api_client.call_api(:POST, '/mctemplates/time-series', body)
|
|
60
|
+
data
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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<InlineResponse20040>, Fixnum, Hash)>] Array<InlineResponse20040> 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<(InlineResponse20038, Fixnum, Hash)>] InlineResponse20038 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<(InlineResponse20037, Fixnum, Hash)>] InlineResponse20037 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<InlineResponse20040>, Fixnum, Hash)>] Array<InlineResponse20040> 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<(InlineResponse20039, Fixnum, Hash)>] InlineResponse20039 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<InlineResponse20040>, Fixnum, Hash)>] Array<InlineResponse20040> 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<InlineResponse20035>, Fixnum, Hash)>] Array<InlineResponse20035> 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<InlineResponse20036>, Fixnum, Hash)>] Array<InlineResponse20036> 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,17 +104,27 @@ 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<InlineResponse20033>, Fixnum, Hash)>] Array<InlineResponse20033> 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
|
|
111
111
|
end
|
|
112
112
|
|
|
113
|
+
# Send using Mailchimp template
|
|
114
|
+
# Send a new transactional message through Mandrill using a Mailchimp Transactional template.
|
|
115
|
+
# @param body
|
|
116
|
+
# @param [Hash] opts the optional parameters
|
|
117
|
+
# @return [Array<(Array<InlineResponse20034>, Fixnum, Hash)>] Array<InlineResponse20034> data, response status code and response headers
|
|
118
|
+
def send_mc_template(body = {})
|
|
119
|
+
data = @api_client.call_api(:POST, '/messages/send-mc-template', body)
|
|
120
|
+
data
|
|
121
|
+
end
|
|
122
|
+
|
|
113
123
|
# Send mime document
|
|
114
124
|
# Take a raw MIME document for a message, and send it exactly as if it were sent through the Transactional API's SMTP servers.
|
|
115
125
|
# @param body
|
|
116
126
|
# @param [Hash] opts the optional parameters
|
|
117
|
-
# @return [Array<(Array<
|
|
127
|
+
# @return [Array<(Array<InlineResponse20033>, Fixnum, Hash)>] Array<InlineResponse20033> data, response status code and response headers
|
|
118
128
|
def send_raw(body = {})
|
|
119
129
|
data = @api_client.call_api(:POST, '/messages/send-raw', body)
|
|
120
130
|
data
|
|
@@ -124,7 +134,7 @@ module MailchimpTransactional
|
|
|
124
134
|
# Send a new SMS message through Mandrill
|
|
125
135
|
# @param body
|
|
126
136
|
# @param [Hash] opts the optional parameters
|
|
127
|
-
# @return [Array<(Array<
|
|
137
|
+
# @return [Array<(Array<InlineResponse20032>, Fixnum, Hash)>] Array<InlineResponse20032> data, response status code and response headers
|
|
128
138
|
def send_sms(body = {})
|
|
129
139
|
data = @api_client.call_api(:POST, '/messages/send-sms', body)
|
|
130
140
|
data
|
|
@@ -134,7 +144,7 @@ module MailchimpTransactional
|
|
|
134
144
|
# Send a new transactional message through the Transactional API using a template.
|
|
135
145
|
# @param body
|
|
136
146
|
# @param [Hash] opts the optional parameters
|
|
137
|
-
# @return [Array<(Array<
|
|
147
|
+
# @return [Array<(Array<InlineResponse20034>, Fixnum, Hash)>] Array<InlineResponse20034> data, response status code and response headers
|
|
138
148
|
def send_template(body = {})
|
|
139
149
|
data = @api_client.call_api(:POST, '/messages/send-template', body)
|
|
140
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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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<(InlineResponse20042, Fixnum, Hash)>] InlineResponse20042 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<(InlineResponse20044, Fixnum, Hash)>] InlineResponse20044 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<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, '/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<(InlineResponse20043, Fixnum, Hash)>] InlineResponse20043 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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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,30 +24,60 @@ 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<(InlineResponse20045, Fixnum, Hash)>] InlineResponse20045 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
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
+
# Add phone number to SMS denylist
|
|
34
|
+
# Adds a phone number to your SMS rejection denylist. Phone numbers that you add manually will never expire and there is no reputation penalty for removing them from your denylist.
|
|
35
|
+
# @param body
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @return [Array<(InlineResponse20088, Fixnum, Hash)>] InlineResponse20088 data, response status code and response headers
|
|
38
|
+
def add_sms(body = {})
|
|
39
|
+
data = @api_client.call_api(:POST, '/rejects/add-sms', body)
|
|
40
|
+
data
|
|
41
|
+
end
|
|
42
|
+
|
|
33
43
|
# Delete email from denylist
|
|
34
44
|
# 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
45
|
# @param body
|
|
36
46
|
# @param [Hash] opts the optional parameters
|
|
37
|
-
# @return [Array<(
|
|
47
|
+
# @return [Array<(InlineResponse20047, Fixnum, Hash)>] InlineResponse20047 data, response status code and response headers
|
|
38
48
|
def delete(body = {})
|
|
39
49
|
data = @api_client.call_api(:POST, '/rejects/delete', body)
|
|
40
50
|
data
|
|
41
51
|
end
|
|
42
52
|
|
|
53
|
+
# Delete phone number from SMS denylist
|
|
54
|
+
# Deletes an SMS 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.
|
|
55
|
+
# @param body
|
|
56
|
+
# @param [Hash] opts the optional parameters
|
|
57
|
+
# @return [Array<(InlineResponse20090, Fixnum, Hash)>] InlineResponse20090 data, response status code and response headers
|
|
58
|
+
def delete_sms(body = {})
|
|
59
|
+
data = @api_client.call_api(:POST, '/rejects/delete-sms', body)
|
|
60
|
+
data
|
|
61
|
+
end
|
|
62
|
+
|
|
43
63
|
# List denylisted emails
|
|
44
64
|
# 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
65
|
# @param body
|
|
46
66
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [Array<(Array<
|
|
67
|
+
# @return [Array<(Array<InlineResponse20046>, Fixnum, Hash)>] Array<InlineResponse20046> data, response status code and response headers
|
|
48
68
|
def list(body = {})
|
|
49
69
|
data = @api_client.call_api(:POST, '/rejects/list', body)
|
|
50
70
|
data
|
|
51
71
|
end
|
|
72
|
+
|
|
73
|
+
# List SMS denylist entries
|
|
74
|
+
# Retrieves your SMS rejection denylist. You can provide a phone number 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.
|
|
75
|
+
# @param body
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @return [Array<(Array<InlineResponse20089>, Fixnum, Hash)>] Array<InlineResponse20089> data, response status code and response headers
|
|
78
|
+
def list_sms(body = {})
|
|
79
|
+
data = @api_client.call_api(:POST, '/rejects/list-sms', body)
|
|
80
|
+
data
|
|
81
|
+
end
|
|
52
82
|
end
|
|
53
83
|
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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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 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<(InlineResponse20050, Fixnum, Hash)>] InlineResponse20050 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
|
|
@@ -34,17 +34,27 @@ module MailchimpTransactional
|
|
|
34
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<(InlineResponse20052, Fixnum, Hash)>] InlineResponse20052 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
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
# Delete sender domain
|
|
44
|
+
# Deletes an unverified sender domain from your account. Verified domains cannot be deleted via API and require login confirmation.
|
|
45
|
+
# @param body
|
|
46
|
+
# @param [Hash] opts the optional parameters
|
|
47
|
+
# @return [Array<(InlineResponse20051, Fixnum, Hash)>] InlineResponse20051 data, response status code and response headers
|
|
48
|
+
def delete_domain(body = {})
|
|
49
|
+
data = @api_client.call_api(:POST, '/senders/delete-domain', body)
|
|
50
|
+
data
|
|
51
|
+
end
|
|
52
|
+
|
|
43
53
|
# List sender domains
|
|
44
54
|
# Returns the sender domains that have been added to this account.
|
|
45
55
|
# @param body
|
|
46
56
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [Array<(Array<
|
|
57
|
+
# @return [Array<(Array<InlineResponse20049>, Fixnum, Hash)>] Array<InlineResponse20049> data, response status code and response headers
|
|
48
58
|
def domains(body = {})
|
|
49
59
|
data = @api_client.call_api(:POST, '/senders/domains', body)
|
|
50
60
|
data
|
|
@@ -54,7 +64,7 @@ module MailchimpTransactional
|
|
|
54
64
|
# Return more detailed information about a single sender, including aggregates of recent stats.
|
|
55
65
|
# @param body
|
|
56
66
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [Array<(
|
|
67
|
+
# @return [Array<(InlineResponse20054, Fixnum, Hash)>] InlineResponse20054 data, response status code and response headers
|
|
58
68
|
def info(body = {})
|
|
59
69
|
data = @api_client.call_api(:POST, '/senders/info', body)
|
|
60
70
|
data
|
|
@@ -64,7 +74,7 @@ module MailchimpTransactional
|
|
|
64
74
|
# Return the senders that have tried to use this account.
|
|
65
75
|
# @param body
|
|
66
76
|
# @param [Hash] opts the optional parameters
|
|
67
|
-
# @return [Array<(Array<
|
|
77
|
+
# @return [Array<(Array<InlineResponse20048>, Fixnum, Hash)>] Array<InlineResponse20048> data, response status code and response headers
|
|
68
78
|
def list(body = {})
|
|
69
79
|
data = @api_client.call_api(:POST, '/senders/list', body)
|
|
70
80
|
data
|
|
@@ -74,7 +84,7 @@ module MailchimpTransactional
|
|
|
74
84
|
# Return the recent history (hourly stats for the last 30 days) for a sender.
|
|
75
85
|
# @param body
|
|
76
86
|
# @param [Hash] opts the optional parameters
|
|
77
|
-
# @return [Array<(Array<
|
|
87
|
+
# @return [Array<(Array<InlineResponse20055>, Fixnum, Hash)>] Array<InlineResponse20055> data, response status code and response headers
|
|
78
88
|
def time_series(body = {})
|
|
79
89
|
data = @api_client.call_api(:POST, '/senders/time-series', body)
|
|
80
90
|
data
|
|
@@ -84,7 +94,7 @@ module MailchimpTransactional
|
|
|
84
94
|
# 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
95
|
# @param body
|
|
86
96
|
# @param [Hash] opts the optional parameters
|
|
87
|
-
# @return [Array<(
|
|
97
|
+
# @return [Array<(InlineResponse20053, Fixnum, Hash)>] InlineResponse20053 data, response status code and response headers
|
|
88
98
|
def verify_domain(body = {})
|
|
89
99
|
data = @api_client.call_api(:POST, '/senders/verify-domain', body)
|
|
90
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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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<(InlineResponse20057, Fixnum, Hash)>] InlineResponse20057 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<(InlineResponse20060, Fixnum, Hash)>] InlineResponse20060 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<(InlineResponse20058, Fixnum, Hash)>] InlineResponse20058 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<InlineResponse20056>, Fixnum, Hash)>] Array<InlineResponse20056> 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<(InlineResponse20061, Fixnum, Hash)>] InlineResponse20061 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<(InlineResponse20062, Fixnum, Hash)>] InlineResponse20062 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<(InlineResponse20059, Fixnum, Hash)>] InlineResponse20059 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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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<InlineResponse20067>, Fixnum, Hash)>] Array<InlineResponse20067> 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<(InlineResponse20064, Fixnum, Hash)>] InlineResponse20064 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<(InlineResponse20065, Fixnum, Hash)>] InlineResponse20065 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<InlineResponse20063>, Fixnum, Hash)>] Array<InlineResponse20063> 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<InlineResponse20066>, Fixnum, Hash)>] Array<InlineResponse20066> 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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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<(InlineResponse20068, Fixnum, Hash)>] InlineResponse20068 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<(InlineResponse20072, Fixnum, Hash)>] InlineResponse20072 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<(InlineResponse20069, Fixnum, Hash)>] InlineResponse20069 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<InlineResponse20073>, Fixnum, Hash)>] Array<InlineResponse20073> 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<(InlineResponse20071, Fixnum, Hash)>] InlineResponse20071 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<(InlineResponse20075, Fixnum, Hash)>] InlineResponse20075 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<InlineResponse20074>, Fixnum, Hash)>] Array<InlineResponse20074> 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<(InlineResponse20070, Fixnum, Hash)>] InlineResponse20070 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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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<(InlineResponse20077, Fixnum, Hash)>] InlineResponse20077 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,39 +34,19 @@ 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<(InlineResponse20079, Fixnum, Hash)>] InlineResponse20079 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
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
#
|
|
44
|
-
#
|
|
45
|
-
# @param body
|
|
46
|
-
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [Array<(Array<InlineResponse20072>, Fixnum, Hash)>] Array<InlineResponse20072> data, response status code and response headers
|
|
48
|
-
def list(body = {})
|
|
49
|
-
data = @api_client.call_api(:POST, '/urls/list', body)
|
|
50
|
-
data
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
# Search most clicked urls
|
|
54
|
-
# Return the 100 most clicked URLs that match the search query given.
|
|
55
|
-
# @param body
|
|
56
|
-
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [Array<(Array<InlineResponse20073>, Fixnum, Hash)>] Array<InlineResponse20073> data, response status code and response headers
|
|
58
|
-
def search(body = {})
|
|
59
|
-
data = @api_client.call_api(:POST, '/urls/search', body)
|
|
60
|
-
data
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
# Get url history
|
|
64
|
-
# Return the recent history (hourly stats for the last 30 days) for a URL
|
|
43
|
+
# Delete tracking domain
|
|
44
|
+
# Deletes an unverified tracking domain from your account. Valid tracking domains cannot be deleted via API and require login confirmation.
|
|
65
45
|
# @param body
|
|
66
46
|
# @param [Hash] opts the optional parameters
|
|
67
|
-
# @return [Array<(
|
|
68
|
-
def
|
|
69
|
-
data = @api_client.call_api(:POST, '/urls/
|
|
47
|
+
# @return [Array<(InlineResponse20078, Fixnum, Hash)>] InlineResponse20078 data, response status code and response headers
|
|
48
|
+
def delete_tracking_domain(body = {})
|
|
49
|
+
data = @api_client.call_api(:POST, '/urls/delete-tracking-domain', body)
|
|
70
50
|
data
|
|
71
51
|
end
|
|
72
52
|
|
|
@@ -74,7 +54,7 @@ module MailchimpTransactional
|
|
|
74
54
|
# Get the list of tracking domains set up for this account.
|
|
75
55
|
# @param body
|
|
76
56
|
# @param [Hash] opts the optional parameters
|
|
77
|
-
# @return [Array<(Array<
|
|
57
|
+
# @return [Array<(Array<InlineResponse20076>, Fixnum, Hash)>] Array<InlineResponse20076> data, response status code and response headers
|
|
78
58
|
def tracking_domains(body = {})
|
|
79
59
|
data = @api_client.call_api(:POST, '/urls/tracking-domains', body)
|
|
80
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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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<(InlineResponse20080, Fixnum, Hash)>] InlineResponse20080 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<(InlineResponse20081, Fixnum, Hash)>] InlineResponse20081 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<InlineResponse20082>, Fixnum, Hash)>] Array<InlineResponse20082> 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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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<(InlineResponse20084, Fixnum, Hash)>] InlineResponse20084 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<(InlineResponse20087, Fixnum, Hash)>] InlineResponse20087 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<(InlineResponse20085, Fixnum, Hash)>] InlineResponse20085 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<InlineResponse20083>, Fixnum, Hash)>] Array<InlineResponse20083> 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<(InlineResponse20086, Fixnum, Hash)>] InlineResponse20086 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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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,7 +16,7 @@ require 'excon'
|
|
|
16
16
|
module MailchimpTransactional
|
|
17
17
|
class ApiClient
|
|
18
18
|
def initialize(api_key = '')
|
|
19
|
-
@host = "https://mandrillapp.com/api/1.
|
|
19
|
+
@host = "https://mandrillapp.com/api/1.3"
|
|
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']
|
|
@@ -72,8 +72,13 @@ module MailchimpTransactional
|
|
|
72
72
|
# apply api key
|
|
73
73
|
body[:key] = @api_key
|
|
74
74
|
|
|
75
|
+
headers = {
|
|
76
|
+
'Content-Type' => 'application/json',
|
|
77
|
+
'User-Agent' => 'MailchimpTransactional-Ruby/1.4.1'
|
|
78
|
+
}
|
|
79
|
+
|
|
75
80
|
# send request
|
|
76
|
-
conn = Excon.new(url, :headers =>
|
|
81
|
+
conn = Excon.new(url, :headers => headers, :read_timeout => @read_timeout, :write_timeout => @write_timeout, :connect_timeout => @connect_timeout)
|
|
77
82
|
res = conn.post(:body => body.to_json)
|
|
78
83
|
|
|
79
84
|
# 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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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
|
|
@@ -130,7 +130,7 @@ module MailchimpTransactional
|
|
|
130
130
|
def initialize
|
|
131
131
|
@scheme = 'https'
|
|
132
132
|
@host = 'mandrillapp.com'
|
|
133
|
-
@base_path = '/api/1.
|
|
133
|
+
@base_path = '/api/1.3'
|
|
134
134
|
@api_key = {}
|
|
135
135
|
@api_key_prefix = {}
|
|
136
136
|
@timeout = 0
|
|
@@ -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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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.1
|
|
14
|
+
VERSION = '1.4.1'
|
|
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.1
|
|
6
|
+
OpenAPI spec version: 1.4.1
|
|
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,7 @@ require 'MailchimpTransactional/api/allowlists_api'
|
|
|
20
20
|
require 'MailchimpTransactional/api/exports_api'
|
|
21
21
|
require 'MailchimpTransactional/api/inbound_api'
|
|
22
22
|
require 'MailchimpTransactional/api/ips_api'
|
|
23
|
+
require 'MailchimpTransactional/api/mctemplates_api'
|
|
23
24
|
require 'MailchimpTransactional/api/messages_api'
|
|
24
25
|
require 'MailchimpTransactional/api/metadata_api'
|
|
25
26
|
require 'MailchimpTransactional/api/rejects_api'
|
|
@@ -30,7 +31,6 @@ require 'MailchimpTransactional/api/templates_api'
|
|
|
30
31
|
require 'MailchimpTransactional/api/urls_api'
|
|
31
32
|
require 'MailchimpTransactional/api/users_api'
|
|
32
33
|
require 'MailchimpTransactional/api/webhooks_api'
|
|
33
|
-
require 'MailchimpTransactional/api/whitelists_api'
|
|
34
34
|
|
|
35
35
|
module MailchimpTransactional
|
|
36
36
|
class Client
|
|
@@ -46,6 +46,7 @@ module MailchimpTransactional
|
|
|
46
46
|
@Exports = ExportsApi.new(@api_client)
|
|
47
47
|
@Inbound = InboundApi.new(@api_client)
|
|
48
48
|
@Ips = IpsApi.new(@api_client)
|
|
49
|
+
@Mctemplates = MctemplatesApi.new(@api_client)
|
|
49
50
|
@Messages = MessagesApi.new(@api_client)
|
|
50
51
|
@Metadata = MetadataApi.new(@api_client)
|
|
51
52
|
@Rejects = RejectsApi.new(@api_client)
|
|
@@ -56,7 +57,6 @@ module MailchimpTransactional
|
|
|
56
57
|
@Urls = UrlsApi.new(@api_client)
|
|
57
58
|
@Users = UsersApi.new(@api_client)
|
|
58
59
|
@Webhooks = WebhooksApi.new(@api_client)
|
|
59
|
-
@Whitelists = WhitelistsApi.new(@api_client)
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
def set_default_output_format(output_format)
|
|
@@ -79,6 +79,9 @@ module MailchimpTransactional
|
|
|
79
79
|
def ips
|
|
80
80
|
@Ips
|
|
81
81
|
end
|
|
82
|
+
def mctemplates
|
|
83
|
+
@Mctemplates
|
|
84
|
+
end
|
|
82
85
|
def messages
|
|
83
86
|
@Messages
|
|
84
87
|
end
|
|
@@ -109,8 +112,5 @@ module MailchimpTransactional
|
|
|
109
112
|
def webhooks
|
|
110
113
|
@Webhooks
|
|
111
114
|
end
|
|
112
|
-
def whitelists
|
|
113
|
-
@Whitelists
|
|
114
|
-
end
|
|
115
115
|
end
|
|
116
116
|
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.1
|
|
4
|
+
version: 1.4.1
|
|
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: 2026-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: excon
|
|
@@ -207,6 +207,7 @@ files:
|
|
|
207
207
|
- lib/MailchimpTransactional/api/exports_api.rb
|
|
208
208
|
- lib/MailchimpTransactional/api/inbound_api.rb
|
|
209
209
|
- lib/MailchimpTransactional/api/ips_api.rb
|
|
210
|
+
- lib/MailchimpTransactional/api/mctemplates_api.rb
|
|
210
211
|
- lib/MailchimpTransactional/api/messages_api.rb
|
|
211
212
|
- lib/MailchimpTransactional/api/metadata_api.rb
|
|
212
213
|
- lib/MailchimpTransactional/api/rejects_api.rb
|
|
@@ -217,7 +218,6 @@ files:
|
|
|
217
218
|
- lib/MailchimpTransactional/api/urls_api.rb
|
|
218
219
|
- lib/MailchimpTransactional/api/users_api.rb
|
|
219
220
|
- lib/MailchimpTransactional/api/webhooks_api.rb
|
|
220
|
-
- lib/MailchimpTransactional/api/whitelists_api.rb
|
|
221
221
|
- lib/MailchimpTransactional/api_client.rb
|
|
222
222
|
- lib/MailchimpTransactional/api_error.rb
|
|
223
223
|
- lib/MailchimpTransactional/configuration.rb
|
|
@@ -1,53 +0,0 @@
|
|
|
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.1.2
|
|
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 WhitelistsApi
|
|
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, '/whitelists/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<(InlineResponse20087, Fixnum, Hash)>] InlineResponse20087 data, response status code and response headers
|
|
38
|
-
def delete(body = {})
|
|
39
|
-
data = @api_client.call_api(:POST, '/whitelists/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<InlineResponse20086>, Fixnum, Hash)>] Array<InlineResponse20086> data, response status code and response headers
|
|
48
|
-
def list(body = {})
|
|
49
|
-
data = @api_client.call_api(:POST, '/whitelists/list', body)
|
|
50
|
-
data
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|