MailchimpTransactional 1.0.9 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/LICENSE +53 -0
- data/MailchimpTransactional.gemspec +2 -2
- data/README.md +3 -3
- data/lib/MailchimpTransactional.rb +59 -75
- data/lib/MailchimpTransactional/api/exports_api.rb +13 -96
- data/lib/MailchimpTransactional/api/inbound_api.rb +21 -168
- data/lib/MailchimpTransactional/api/ips_api.rb +29 -240
- data/lib/MailchimpTransactional/api/messages_api.rb +25 -204
- data/lib/MailchimpTransactional/api/metadata_api.rb +11 -78
- data/lib/MailchimpTransactional/api/rejects_api.rb +9 -60
- data/lib/MailchimpTransactional/api/senders_api.rb +17 -132
- data/lib/MailchimpTransactional/api/subaccounts_api.rb +17 -132
- data/lib/MailchimpTransactional/api/tags_api.rb +13 -96
- data/lib/MailchimpTransactional/api/templates_api.rb +19 -150
- data/lib/MailchimpTransactional/api/urls_api.rb +15 -114
- data/lib/MailchimpTransactional/api/users_api.rb +11 -78
- data/lib/MailchimpTransactional/api/webhooks_api.rb +13 -96
- data/lib/MailchimpTransactional/api/whitelists_api.rb +9 -60
- data/lib/MailchimpTransactional/api_client.rb +31 -116
- data/lib/MailchimpTransactional/api_error.rb +1 -1
- data/lib/MailchimpTransactional/configuration.rb +1 -1
- data/lib/MailchimpTransactional/version.rb +2 -2
- metadata +6 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e0deee5f4eca0de6a434d89ef0aa167a6214307f8b5693b38ce642e12f269bc
|
4
|
+
data.tar.gz: b9762ab4e022c695800bbe1058b8d3030ac423e0e6b8389d2b60653107039696
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d433bb7804e58e9395de382c71cf6241fa8af156e1ea4cc7a6d9524d003f83e3433ab52033639dd16ec4b9997d826ce6d3c04c1c5b9e82b27dca5df643248f3
|
7
|
+
data.tar.gz: 6c238330d628a6c80ea498b39ab65224cf245ac674befb1009d53d9a8fff82f981990dde93e2fef0fd4b3596a51e3b35cca392ca387d5b13477989dd7efb2d88
|
data/Gemfile
CHANGED
data/LICENSE
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
Mailchimp Client Library License Agreement
|
2
|
+
|
3
|
+
IMPORTANT- PLEASE READ CAREFULLY BEFORE OPENING, INSTALLING, COPYING OR USING THE CLIENT LIBRARY. This Client Library License Agreement (“Agreement”) is a legal document by and between you (hereinafter referred to as “You” “Your” or “Licensee”) and The Rocket Science Group LLC (“Mailchimp”) (each a “Party” and collectively, “Parties”) for the client library, including any upgrades, modified versions, updates, additions, and copies of the foregoing, including the software and related documentation (the “Mailchimp Client Library”).
|
4
|
+
|
5
|
+
BY OPENING, INSTALLING, COPYING OR USING THE MAILCHIMP CLIENT LIBRARY OR ANY PORTION THEREOF, YOU AGREE TO ALL THE TERMS OF THIS AGREEMENT. IF YOU ARE AGREEING TO THIS AGREEMENT AS AN INDIVIDUAL, “YOU” “YOUR” AND “LICENSEE” REFERS TO YOU INDIVIDUALLY. IF YOU ARE AGREEING TO THIS AGREEMENT AS A REPRESENTATIVE OF A LEGAL ENTITY, YOU REPRESENT THAT YOU HAVE THE AUTHORITY TO BIND THAT ENTITY AND “YOU” “YOUR” AND “LICENSEE” REFERS TO THAT LEGAL ENTITY AND ALL THE USERS ACCESSING THE SOFTWARE BY, THROUGH OR ON BEHALF OF THAT LEGAL ENTITY. IF YOU DO NOT AGREE WITH ALL OF THE TERMS OF THIS AGREEMENT, DO NOT (AND ENSURE THAT YOUR END USERS DO NOT) OPEN, INSTALL, COPY OR USE THE MAILCHIMP CLIENT LIBRARY.
|
6
|
+
|
7
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
8
|
+
1. Definitions.
|
9
|
+
“License” shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 10 of these Terms and Conditions for Use, Reproduction and Distribution.
|
10
|
+
“Legal Entity” shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, “control” means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
11
|
+
“You” (or “Your”) shall mean an individual or Legal Entity exercising permissions granted by this License.
|
12
|
+
“Source” form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
13
|
+
“Object” form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
14
|
+
“Work” shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work.
|
15
|
+
“Derivative Works” shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
16
|
+
“Contribution” shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Mailchimp for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, “submitted” means any form of electronic, verbal, or written communication sent to Mailchimp or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, Mailchimp for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as “Not a Contribution.”
|
17
|
+
“Contributor” shall mean Mailchimp and any individual or Legal Entity on behalf of whom a Contribution has been received by Mailchimp and subsequently incorporated within the Work.
|
18
|
+
|
19
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this Agreement, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
20
|
+
|
21
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
22
|
+
|
23
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
24
|
+
a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
25
|
+
b) You must cause any modified files to carry prominent notices stating that You changed the files; and
|
26
|
+
c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
27
|
+
d) If the Work includes a “NOTICE” text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
28
|
+
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
29
|
+
|
30
|
+
5. Submission of Contributions. Any Contribution submitted for inclusion in the Work by You to Mailchimp shall be made under the terms and conditions of the Individual Contributor License Agreement or the Software Grant and Corporate Contributor License Agreement, as applicable.
|
31
|
+
|
32
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of Mailchimp, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
33
|
+
|
34
|
+
7. Export controls. The Mailchimp Client Library is subject to united states export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the Mailchimp Client Library. These laws include restrictions on destinations, end-users and end use.
|
35
|
+
|
36
|
+
8. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
37
|
+
|
38
|
+
9. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
39
|
+
|
40
|
+
10. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
41
|
+
|
42
|
+
Copyright 2020, The Rocket Science Group LLC
|
43
|
+
|
44
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
45
|
+
|
46
|
+
You should include a copy of the License, typically in a file called LICENSE, in your work, and consider also including a NOTICE file.
|
47
|
+
|
48
|
+
To apply the License to specific files in your work, attach the following boilerplate declaration, with the fields enclosed by brackets “[]” replaced with your own identifying information. (Don’t include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same “printed page” as the copyright notice for easier identification within third-party archives.
|
49
|
+
Copyright [yyyy] [name of copyright owner]
|
50
|
+
|
51
|
+
Licensed under the Mailchimp Client Library License Agreement (the “License”); you may not use this file except in compliance with the License. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either or express or implied.
|
52
|
+
See the License for the specific language governing permissions and
|
53
|
+
limitations under the License.
|
@@ -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.11
|
9
9
|
Contact: apihelp@mandrill.com
|
10
10
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
11
|
Swagger Codegen version: 2.4.12
|
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
s.license = 'Apache-2.0'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
30
|
-
s.add_runtime_dependency '
|
30
|
+
s.add_runtime_dependency 'excon', '~> 0.76.0'
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
32
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
data/README.md
CHANGED
@@ -15,15 +15,15 @@ gem build MailchimpTransactional.gemspec
|
|
15
15
|
Then either install the gem locally:
|
16
16
|
|
17
17
|
```shell
|
18
|
-
gem install ./MailchimpTransactional-1.0.
|
18
|
+
gem install ./MailchimpTransactional-1.0.11.gem
|
19
19
|
```
|
20
|
-
(for development, run `gem install --dev ./MailchimpTransactional-1.0.
|
20
|
+
(for development, run `gem install --dev ./MailchimpTransactional-1.0.11.gem` to install the development dependencies)
|
21
21
|
|
22
22
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
23
23
|
|
24
24
|
Finally add this to the Gemfile:
|
25
25
|
|
26
|
-
gem 'MailchimpTransactional', '~> 1.0.
|
26
|
+
gem 'MailchimpTransactional', '~> 1.0.11'
|
27
27
|
|
28
28
|
### Install from Git
|
29
29
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.0.
|
6
|
+
OpenAPI spec version: 1.0.11
|
7
7
|
Contact: apihelp@mandrill.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
@@ -15,7 +15,6 @@ require 'MailchimpTransactional/api_client'
|
|
15
15
|
require 'MailchimpTransactional/api_error'
|
16
16
|
require 'MailchimpTransactional/version'
|
17
17
|
|
18
|
-
|
19
18
|
# APIs
|
20
19
|
require 'MailchimpTransactional/api/exports_api'
|
21
20
|
require 'MailchimpTransactional/api/inbound_api'
|
@@ -35,89 +34,74 @@ require 'MailchimpTransactional/api/whitelists_api'
|
|
35
34
|
module MailchimpTransactional
|
36
35
|
class Client
|
37
36
|
def initialize(api_key = '')
|
38
|
-
|
39
|
-
@api_client = ApiClient.new()
|
40
|
-
|
41
|
-
@Exports = ExportsApi.new(@api_key, @api_client)
|
42
|
-
@Inbound = InboundApi.new(@api_key, @api_client)
|
43
|
-
@Ips = IpsApi.new(@api_key, @api_client)
|
44
|
-
@Messages = MessagesApi.new(@api_key, @api_client)
|
45
|
-
@Metadata = MetadataApi.new(@api_key, @api_client)
|
46
|
-
@Rejects = RejectsApi.new(@api_key, @api_client)
|
47
|
-
@Senders = SendersApi.new(@api_key, @api_client)
|
48
|
-
@Subaccounts = SubaccountsApi.new(@api_key, @api_client)
|
49
|
-
@Tags = TagsApi.new(@api_key, @api_client)
|
50
|
-
@Templates = TemplatesApi.new(@api_key, @api_client)
|
51
|
-
@Urls = UrlsApi.new(@api_key, @api_client)
|
52
|
-
@Users = UsersApi.new(@api_key, @api_client)
|
53
|
-
@Webhooks = WebhooksApi.new(@api_key, @api_client)
|
54
|
-
@Whitelists = WhitelistsApi.new(@api_key, @api_client)
|
37
|
+
set_api_key(api_key)
|
55
38
|
end
|
56
39
|
|
57
40
|
def set_api_key(api_key = '')
|
58
41
|
@api_key = api_key
|
42
|
+
@api_client = ApiClient.new(@api_key)
|
59
43
|
|
60
|
-
@Exports = ExportsApi.new(@
|
61
|
-
@Inbound = InboundApi.new(@
|
62
|
-
@Ips = IpsApi.new(@
|
63
|
-
@Messages = MessagesApi.new(@
|
64
|
-
@Metadata = MetadataApi.new(@
|
65
|
-
@Rejects = RejectsApi.new(@
|
66
|
-
@Senders = SendersApi.new(@
|
67
|
-
@Subaccounts = SubaccountsApi.new(@
|
68
|
-
@Tags = TagsApi.new(@
|
69
|
-
@Templates = TemplatesApi.new(@
|
70
|
-
@Urls = UrlsApi.new(@
|
71
|
-
@Users = UsersApi.new(@
|
72
|
-
@Webhooks = WebhooksApi.new(@
|
73
|
-
@Whitelists = WhitelistsApi.new(@
|
44
|
+
@Exports = ExportsApi.new(@api_client)
|
45
|
+
@Inbound = InboundApi.new(@api_client)
|
46
|
+
@Ips = IpsApi.new(@api_client)
|
47
|
+
@Messages = MessagesApi.new(@api_client)
|
48
|
+
@Metadata = MetadataApi.new(@api_client)
|
49
|
+
@Rejects = RejectsApi.new(@api_client)
|
50
|
+
@Senders = SendersApi.new(@api_client)
|
51
|
+
@Subaccounts = SubaccountsApi.new(@api_client)
|
52
|
+
@Tags = TagsApi.new(@api_client)
|
53
|
+
@Templates = TemplatesApi.new(@api_client)
|
54
|
+
@Urls = UrlsApi.new(@api_client)
|
55
|
+
@Users = UsersApi.new(@api_client)
|
56
|
+
@Webhooks = WebhooksApi.new(@api_client)
|
57
|
+
@Whitelists = WhitelistsApi.new(@api_client)
|
74
58
|
end
|
75
59
|
|
76
60
|
def set_default_output_format(output_format)
|
77
61
|
@api_client.set_default_output_format(output_format)
|
78
62
|
end
|
79
63
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
64
|
+
def exports
|
65
|
+
@Exports
|
66
|
+
end
|
67
|
+
def inbound
|
68
|
+
@Inbound
|
69
|
+
end
|
70
|
+
def ips
|
71
|
+
@Ips
|
72
|
+
end
|
73
|
+
def messages
|
74
|
+
@Messages
|
75
|
+
end
|
76
|
+
def metadata
|
77
|
+
@Metadata
|
78
|
+
end
|
79
|
+
def rejects
|
80
|
+
@Rejects
|
81
|
+
end
|
82
|
+
def senders
|
83
|
+
@Senders
|
84
|
+
end
|
85
|
+
def subaccounts
|
86
|
+
@Subaccounts
|
87
|
+
end
|
88
|
+
def tags
|
89
|
+
@Tags
|
90
|
+
end
|
91
|
+
def templates
|
92
|
+
@Templates
|
93
|
+
end
|
94
|
+
def urls
|
95
|
+
@Urls
|
96
|
+
end
|
97
|
+
def users
|
98
|
+
@Users
|
99
|
+
end
|
100
|
+
def webhooks
|
101
|
+
@Webhooks
|
102
|
+
end
|
103
|
+
def whitelists
|
104
|
+
@Whitelists
|
105
|
+
end
|
122
106
|
end
|
123
107
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.0.
|
6
|
+
OpenAPI spec version: 1.0.11
|
7
7
|
Contact: apihelp@mandrill.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
@@ -16,45 +16,17 @@ module MailchimpTransactional
|
|
16
16
|
class ExportsApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
def initialize(api_key = '', api_client = ApiClient.default)
|
22
|
-
@api_key = api_key
|
19
|
+
def initialize(api_client = ApiClient.default)
|
23
20
|
@api_client = api_client
|
24
21
|
end
|
25
|
-
# Export activity history
|
26
|
-
# Begins an export of your activity history. The activity will be exported to a zip archive containing a single file named activity.csv in the same format as you would be able to export from your account's activity view. It includes the following fields: Date, Email Address, Sender, Subject, Status, Tags, Opens, Clicks, Bounce Detail. If you have configured any custom metadata fields, they will be included in the exported data.
|
27
|
-
# @param body
|
28
|
-
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [InlineResponse2004]
|
30
|
-
def activity(body = {}, opts = {})
|
31
|
-
data = activity_with_http_info(body, opts)
|
32
|
-
data
|
33
|
-
end
|
34
22
|
|
35
23
|
# Export activity history
|
36
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.
|
37
25
|
# @param body
|
38
26
|
# @param [Hash] opts the optional parameters
|
39
27
|
# @return [Array<(InlineResponse2004, Fixnum, Hash)>] InlineResponse2004 data, response status code and response headers
|
40
|
-
def
|
41
|
-
|
42
|
-
body[:key] = @api_key
|
43
|
-
|
44
|
-
# resource path
|
45
|
-
local_var_path = '/exports/activity'
|
46
|
-
|
47
|
-
# http body (model)
|
48
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
49
|
-
return data
|
50
|
-
end
|
51
|
-
# View export info
|
52
|
-
# Returns information about an export job. If the export job's state is 'complete', the returned data will include a URL you can use to fetch the results. Every export job produces a zip archive, but the format of the archive is distinct for each job type. The api calls that initiate exports include more details about the output format for that job type.
|
53
|
-
# @param body
|
54
|
-
# @param [Hash] opts the optional parameters
|
55
|
-
# @return [InlineResponse200]
|
56
|
-
def info(body = {}, opts = {})
|
57
|
-
data = info_with_http_info(body, opts)
|
28
|
+
def activity(body = {})
|
29
|
+
data = @api_client.call_api(:POST, '/exports/activity', body)
|
58
30
|
data
|
59
31
|
end
|
60
32
|
|
@@ -63,24 +35,8 @@ module MailchimpTransactional
|
|
63
35
|
# @param body
|
64
36
|
# @param [Hash] opts the optional parameters
|
65
37
|
# @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
|
66
|
-
def
|
67
|
-
|
68
|
-
body[:key] = @api_key
|
69
|
-
|
70
|
-
# resource path
|
71
|
-
local_var_path = '/exports/info'
|
72
|
-
|
73
|
-
# http body (model)
|
74
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
75
|
-
return data
|
76
|
-
end
|
77
|
-
# List exports
|
78
|
-
# Returns a list of your exports.
|
79
|
-
# @param body
|
80
|
-
# @param [Hash] opts the optional parameters
|
81
|
-
# @return [Array<InlineResponse2001>]
|
82
|
-
def list(body = {}, opts = {})
|
83
|
-
data = list_with_http_info(body, opts)
|
38
|
+
def info(body = {})
|
39
|
+
data = @api_client.call_api(:POST, '/exports/info', body)
|
84
40
|
data
|
85
41
|
end
|
86
42
|
|
@@ -89,24 +45,8 @@ module MailchimpTransactional
|
|
89
45
|
# @param body
|
90
46
|
# @param [Hash] opts the optional parameters
|
91
47
|
# @return [Array<(Array<InlineResponse2001>, Fixnum, Hash)>] Array<InlineResponse2001> data, response status code and response headers
|
92
|
-
def
|
93
|
-
|
94
|
-
body[:key] = @api_key
|
95
|
-
|
96
|
-
# resource path
|
97
|
-
local_var_path = '/exports/list'
|
98
|
-
|
99
|
-
# http body (model)
|
100
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
101
|
-
return data
|
102
|
-
end
|
103
|
-
# Export blacklist
|
104
|
-
# Begins an export of your rejection blacklist. The blacklist will be exported to a zip archive containing a single file named rejects.csv that includes the following fields: email, reason, detail, created_at, expires_at, last_event_at, expires_at.
|
105
|
-
# @param body
|
106
|
-
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [InlineResponse2002]
|
108
|
-
def rejects(body = {}, opts = {})
|
109
|
-
data = rejects_with_http_info(body, opts)
|
48
|
+
def list(body = {})
|
49
|
+
data = @api_client.call_api(:POST, '/exports/list', body)
|
110
50
|
data
|
111
51
|
end
|
112
52
|
|
@@ -115,24 +55,8 @@ module MailchimpTransactional
|
|
115
55
|
# @param body
|
116
56
|
# @param [Hash] opts the optional parameters
|
117
57
|
# @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
|
118
|
-
def
|
119
|
-
|
120
|
-
body[:key] = @api_key
|
121
|
-
|
122
|
-
# resource path
|
123
|
-
local_var_path = '/exports/rejects'
|
124
|
-
|
125
|
-
# http body (model)
|
126
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
127
|
-
return data
|
128
|
-
end
|
129
|
-
# Export whitelist
|
130
|
-
# Begins an export of your rejection whitelist. The whitelist will be exported to a zip archive containing a single file named whitelist.csv that includes the following fields: email, detail, created_at.
|
131
|
-
# @param body
|
132
|
-
# @param [Hash] opts the optional parameters
|
133
|
-
# @return [InlineResponse2003]
|
134
|
-
def whitelist(body = {}, opts = {})
|
135
|
-
data = whitelist_with_http_info(body, opts)
|
58
|
+
def rejects(body = {})
|
59
|
+
data = @api_client.call_api(:POST, '/exports/rejects', body)
|
136
60
|
data
|
137
61
|
end
|
138
62
|
|
@@ -141,16 +65,9 @@ module MailchimpTransactional
|
|
141
65
|
# @param body
|
142
66
|
# @param [Hash] opts the optional parameters
|
143
67
|
# @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers
|
144
|
-
def
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
# resource path
|
149
|
-
local_var_path = '/exports/whitelist'
|
150
|
-
|
151
|
-
# http body (model)
|
152
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
153
|
-
return data
|
68
|
+
def whitelist(body = {})
|
69
|
+
data = @api_client.call_api(:POST, '/exports/whitelist', body)
|
70
|
+
data
|
154
71
|
end
|
155
72
|
end
|
156
73
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.0.
|
6
|
+
OpenAPI spec version: 1.0.11
|
7
7
|
Contact: apihelp@mandrill.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
@@ -16,45 +16,17 @@ module MailchimpTransactional
|
|
16
16
|
class InboundApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
def initialize(api_key = '', api_client = ApiClient.default)
|
22
|
-
@api_key = api_key
|
19
|
+
def initialize(api_client = ApiClient.default)
|
23
20
|
@api_client = api_client
|
24
21
|
end
|
25
|
-
# Add inbound domain
|
26
|
-
# Add an inbound domain to your account.
|
27
|
-
# @param body
|
28
|
-
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [InlineResponse2006]
|
30
|
-
def add_domain(body = {}, opts = {})
|
31
|
-
data = add_domain_with_http_info(body, opts)
|
32
|
-
data
|
33
|
-
end
|
34
22
|
|
35
23
|
# Add inbound domain
|
36
24
|
# Add an inbound domain to your account.
|
37
25
|
# @param body
|
38
26
|
# @param [Hash] opts the optional parameters
|
39
27
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
40
|
-
def
|
41
|
-
|
42
|
-
body[:key] = @api_key
|
43
|
-
|
44
|
-
# resource path
|
45
|
-
local_var_path = '/inbound/add-domain'
|
46
|
-
|
47
|
-
# http body (model)
|
48
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
49
|
-
return data
|
50
|
-
end
|
51
|
-
# Add mailbox route
|
52
|
-
# Add a new mailbox route to an inbound domain.
|
53
|
-
# @param body
|
54
|
-
# @param [Hash] opts the optional parameters
|
55
|
-
# @return [InlineResponse20010]
|
56
|
-
def add_route(body = {}, opts = {})
|
57
|
-
data = add_route_with_http_info(body, opts)
|
28
|
+
def add_domain(body = {})
|
29
|
+
data = @api_client.call_api(:POST, '/inbound/add-domain', body)
|
58
30
|
data
|
59
31
|
end
|
60
32
|
|
@@ -63,24 +35,8 @@ module MailchimpTransactional
|
|
63
35
|
# @param body
|
64
36
|
# @param [Hash] opts the optional parameters
|
65
37
|
# @return [Array<(InlineResponse20010, Fixnum, Hash)>] InlineResponse20010 data, response status code and response headers
|
66
|
-
def
|
67
|
-
|
68
|
-
body[:key] = @api_key
|
69
|
-
|
70
|
-
# resource path
|
71
|
-
local_var_path = '/inbound/add-route'
|
72
|
-
|
73
|
-
# http body (model)
|
74
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
75
|
-
return data
|
76
|
-
end
|
77
|
-
# Check domain settings
|
78
|
-
# Check the MX settings for an inbound domain. The domain must have already been added with the add-domain call.
|
79
|
-
# @param body
|
80
|
-
# @param [Hash] opts the optional parameters
|
81
|
-
# @return [InlineResponse2007]
|
82
|
-
def check_domain(body = {}, opts = {})
|
83
|
-
data = check_domain_with_http_info(body, opts)
|
38
|
+
def add_route(body = {})
|
39
|
+
data = @api_client.call_api(:POST, '/inbound/add-route', body)
|
84
40
|
data
|
85
41
|
end
|
86
42
|
|
@@ -89,24 +45,8 @@ module MailchimpTransactional
|
|
89
45
|
# @param body
|
90
46
|
# @param [Hash] opts the optional parameters
|
91
47
|
# @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
|
92
|
-
def
|
93
|
-
|
94
|
-
body[:key] = @api_key
|
95
|
-
|
96
|
-
# resource path
|
97
|
-
local_var_path = '/inbound/check-domain'
|
98
|
-
|
99
|
-
# http body (model)
|
100
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
101
|
-
return data
|
102
|
-
end
|
103
|
-
# Delete inbound domain
|
104
|
-
# Delete an inbound domain from the account. All mail will stop routing for this domain immediately.
|
105
|
-
# @param body
|
106
|
-
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [InlineResponse2008]
|
108
|
-
def delete_domain(body = {}, opts = {})
|
109
|
-
data = delete_domain_with_http_info(body, opts)
|
48
|
+
def check_domain(body = {})
|
49
|
+
data = @api_client.call_api(:POST, '/inbound/check-domain', body)
|
110
50
|
data
|
111
51
|
end
|
112
52
|
|
@@ -115,24 +55,8 @@ module MailchimpTransactional
|
|
115
55
|
# @param body
|
116
56
|
# @param [Hash] opts the optional parameters
|
117
57
|
# @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
|
118
|
-
def
|
119
|
-
|
120
|
-
body[:key] = @api_key
|
121
|
-
|
122
|
-
# resource path
|
123
|
-
local_var_path = '/inbound/delete-domain'
|
124
|
-
|
125
|
-
# http body (model)
|
126
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
127
|
-
return data
|
128
|
-
end
|
129
|
-
# Delete mailbox route
|
130
|
-
# Delete an existing inbound mailbox route.
|
131
|
-
# @param body
|
132
|
-
# @param [Hash] opts the optional parameters
|
133
|
-
# @return [InlineResponse20012]
|
134
|
-
def delete_route(body = {}, opts = {})
|
135
|
-
data = delete_route_with_http_info(body, opts)
|
58
|
+
def delete_domain(body = {})
|
59
|
+
data = @api_client.call_api(:POST, '/inbound/delete-domain', body)
|
136
60
|
data
|
137
61
|
end
|
138
62
|
|
@@ -141,24 +65,8 @@ module MailchimpTransactional
|
|
141
65
|
# @param body
|
142
66
|
# @param [Hash] opts the optional parameters
|
143
67
|
# @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
|
144
|
-
def
|
145
|
-
|
146
|
-
body[:key] = @api_key
|
147
|
-
|
148
|
-
# resource path
|
149
|
-
local_var_path = '/inbound/delete-route'
|
150
|
-
|
151
|
-
# http body (model)
|
152
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
153
|
-
return data
|
154
|
-
end
|
155
|
-
# List inbound domains
|
156
|
-
# List the domains that have been configured for inbound delivery.
|
157
|
-
# @param body
|
158
|
-
# @param [Hash] opts the optional parameters
|
159
|
-
# @return [Array<InlineResponse2005>]
|
160
|
-
def domains(body = {}, opts = {})
|
161
|
-
data = domains_with_http_info(body, opts)
|
68
|
+
def delete_route(body = {})
|
69
|
+
data = @api_client.call_api(:POST, '/inbound/delete-route', body)
|
162
70
|
data
|
163
71
|
end
|
164
72
|
|
@@ -167,24 +75,8 @@ module MailchimpTransactional
|
|
167
75
|
# @param body
|
168
76
|
# @param [Hash] opts the optional parameters
|
169
77
|
# @return [Array<(Array<InlineResponse2005>, Fixnum, Hash)>] Array<InlineResponse2005> data, response status code and response headers
|
170
|
-
def
|
171
|
-
|
172
|
-
body[:key] = @api_key
|
173
|
-
|
174
|
-
# resource path
|
175
|
-
local_var_path = '/inbound/domains'
|
176
|
-
|
177
|
-
# http body (model)
|
178
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
179
|
-
return data
|
180
|
-
end
|
181
|
-
# List mailbox routes
|
182
|
-
# List the mailbox routes defined for an inbound domain.
|
183
|
-
# @param body
|
184
|
-
# @param [Hash] opts the optional parameters
|
185
|
-
# @return [Array<InlineResponse2009>]
|
186
|
-
def routes(body = {}, opts = {})
|
187
|
-
data = routes_with_http_info(body, opts)
|
78
|
+
def domains(body = {})
|
79
|
+
data = @api_client.call_api(:POST, '/inbound/domains', body)
|
188
80
|
data
|
189
81
|
end
|
190
82
|
|
@@ -193,24 +85,8 @@ module MailchimpTransactional
|
|
193
85
|
# @param body
|
194
86
|
# @param [Hash] opts the optional parameters
|
195
87
|
# @return [Array<(Array<InlineResponse2009>, Fixnum, Hash)>] Array<InlineResponse2009> data, response status code and response headers
|
196
|
-
def
|
197
|
-
|
198
|
-
body[:key] = @api_key
|
199
|
-
|
200
|
-
# resource path
|
201
|
-
local_var_path = '/inbound/routes'
|
202
|
-
|
203
|
-
# http body (model)
|
204
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
205
|
-
return data
|
206
|
-
end
|
207
|
-
# Send mime document
|
208
|
-
# Take a raw MIME document destined for a domain with inbound domains set up, and send it to the inbound hook exactly as if it had been sent over SMTP.
|
209
|
-
# @param body
|
210
|
-
# @param [Hash] opts the optional parameters
|
211
|
-
# @return [Array<InlineResponse20013>]
|
212
|
-
def send_raw(body = {}, opts = {})
|
213
|
-
data = send_raw_with_http_info(body, opts)
|
88
|
+
def routes(body = {})
|
89
|
+
data = @api_client.call_api(:POST, '/inbound/routes', body)
|
214
90
|
data
|
215
91
|
end
|
216
92
|
|
@@ -219,24 +95,8 @@ module MailchimpTransactional
|
|
219
95
|
# @param body
|
220
96
|
# @param [Hash] opts the optional parameters
|
221
97
|
# @return [Array<(Array<InlineResponse20013>, Fixnum, Hash)>] Array<InlineResponse20013> data, response status code and response headers
|
222
|
-
def
|
223
|
-
|
224
|
-
body[:key] = @api_key
|
225
|
-
|
226
|
-
# resource path
|
227
|
-
local_var_path = '/inbound/send-raw'
|
228
|
-
|
229
|
-
# http body (model)
|
230
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
231
|
-
return data
|
232
|
-
end
|
233
|
-
# Update mailbox route
|
234
|
-
# Update the pattern or webhook of an existing inbound mailbox route. If null is provided for any fields, the values will remain unchanged.
|
235
|
-
# @param body
|
236
|
-
# @param [Hash] opts the optional parameters
|
237
|
-
# @return [InlineResponse20011]
|
238
|
-
def update_route(body = {}, opts = {})
|
239
|
-
data = update_route_with_http_info(body, opts)
|
98
|
+
def send_raw(body = {})
|
99
|
+
data = @api_client.call_api(:POST, '/inbound/send-raw', body)
|
240
100
|
data
|
241
101
|
end
|
242
102
|
|
@@ -245,16 +105,9 @@ module MailchimpTransactional
|
|
245
105
|
# @param body
|
246
106
|
# @param [Hash] opts the optional parameters
|
247
107
|
# @return [Array<(InlineResponse20011, Fixnum, Hash)>] InlineResponse20011 data, response status code and response headers
|
248
|
-
def
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
# resource path
|
253
|
-
local_var_path = '/inbound/update-route'
|
254
|
-
|
255
|
-
# http body (model)
|
256
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
257
|
-
return data
|
108
|
+
def update_route(body = {})
|
109
|
+
data = @api_client.call_api(:POST, '/inbound/update-route', body)
|
110
|
+
data
|
258
111
|
end
|
259
112
|
end
|
260
113
|
end
|