MailchimpTransactional 1.0.6 → 1.0.13
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/Gemfile +1 -1
- data/LICENSE +53 -0
- data/MailchimpTransactional.gemspec +2 -2
- data/README.md +33 -14
- data/lib/MailchimpTransactional.rb +59 -75
- data/lib/MailchimpTransactional/api/exports_api.rb +18 -121
- data/lib/MailchimpTransactional/api/inbound_api.rb +37 -220
- data/lib/MailchimpTransactional/api/ips_api.rb +44 -307
- data/lib/MailchimpTransactional/api/messages_api.rb +45 -268
- data/lib/MailchimpTransactional/api/metadata_api.rb +16 -99
- data/lib/MailchimpTransactional/api/rejects_api.rb +12 -75
- data/lib/MailchimpTransactional/api/senders_api.rb +29 -172
- data/lib/MailchimpTransactional/api/subaccounts_api.rb +29 -172
- data/lib/MailchimpTransactional/api/tags_api.rb +22 -125
- data/lib/MailchimpTransactional/api/templates_api.rb +33 -196
- data/lib/MailchimpTransactional/api/urls_api.rb +27 -150
- data/lib/MailchimpTransactional/api/users_api.rb +19 -102
- data/lib/MailchimpTransactional/api/webhooks_api.rb +23 -126
- data/lib/MailchimpTransactional/api/whitelists_api.rb +12 -75
- data/lib/MailchimpTransactional/api_client.rb +30 -115
- 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
@@ -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.13
|
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,161 +16,58 @@ module MailchimpTransactional
|
|
16
16
|
class TagsApi
|
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
|
-
# /tags/all-time-series
|
26
|
-
# Return the recent history (hourly stats for the last 30 days) for all tags
|
27
|
-
# @param body
|
28
|
-
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [Array<InlineResponse20028>]
|
30
|
-
def all_time_series(body = {}, opts = {})
|
31
|
-
data, _status_code, _headers = all_time_series_with_http_info(body, opts)
|
32
|
-
data
|
33
|
-
end
|
34
22
|
|
35
|
-
#
|
36
|
-
# Return the recent history (hourly stats for the last 30 days) for all tags
|
23
|
+
# View all tags history
|
24
|
+
# Return the recent history (hourly stats for the last 30 days) for all tags.
|
37
25
|
# @param body
|
38
26
|
# @param [Hash] opts the optional parameters
|
39
27
|
# @return [Array<(Array<InlineResponse20028>, Fixnum, Hash)>] Array<InlineResponse20028> data, response status code and response headers
|
40
|
-
def
|
41
|
-
|
42
|
-
body[:key] = @api_key
|
43
|
-
|
44
|
-
# resource path
|
45
|
-
local_var_path = '/tags/all-time-series'
|
46
|
-
|
47
|
-
# http body (model)
|
48
|
-
auth_names = []
|
49
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
50
|
-
:body => body,
|
51
|
-
:auth_names => auth_names,
|
52
|
-
:return_type => 'Array<InlineResponse20028>')
|
53
|
-
return data, status_code, headers
|
54
|
-
end
|
55
|
-
# /tags/delete
|
56
|
-
# 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.
|
57
|
-
# @param body
|
58
|
-
# @param [Hash] opts the optional parameters
|
59
|
-
# @return [InlineResponse20055]
|
60
|
-
def delete(body = {}, opts = {})
|
61
|
-
data, _status_code, _headers = delete_with_http_info(body, opts)
|
28
|
+
def all_time_series(body = {})
|
29
|
+
data = @api_client.call_api(:POST, '/tags/all-time-series', body)
|
62
30
|
data
|
63
31
|
end
|
64
32
|
|
65
|
-
#
|
33
|
+
# Delete tag
|
66
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.
|
67
35
|
# @param body
|
68
36
|
# @param [Hash] opts the optional parameters
|
69
37
|
# @return [Array<(InlineResponse20055, Fixnum, Hash)>] InlineResponse20055 data, response status code and response headers
|
70
|
-
def
|
71
|
-
|
72
|
-
body[:key] = @api_key
|
73
|
-
|
74
|
-
# resource path
|
75
|
-
local_var_path = '/tags/delete'
|
76
|
-
|
77
|
-
# http body (model)
|
78
|
-
auth_names = []
|
79
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
80
|
-
:body => body,
|
81
|
-
:auth_names => auth_names,
|
82
|
-
:return_type => 'InlineResponse20055')
|
83
|
-
return data, status_code, headers
|
84
|
-
end
|
85
|
-
# /tags/info
|
86
|
-
# Return more detailed information about a single tag, including aggregates of recent stats
|
87
|
-
# @param body
|
88
|
-
# @param [Hash] opts the optional parameters
|
89
|
-
# @return [InlineResponse20056]
|
90
|
-
def info(body = {}, opts = {})
|
91
|
-
data, _status_code, _headers = info_with_http_info(body, opts)
|
38
|
+
def delete(body = {})
|
39
|
+
data = @api_client.call_api(:POST, '/tags/delete', body)
|
92
40
|
data
|
93
41
|
end
|
94
42
|
|
95
|
-
#
|
96
|
-
# Return more detailed information about a single tag, including aggregates of recent stats
|
43
|
+
# Get tag info
|
44
|
+
# Return more detailed information about a single tag, including aggregates of recent stats.
|
97
45
|
# @param body
|
98
46
|
# @param [Hash] opts the optional parameters
|
99
47
|
# @return [Array<(InlineResponse20056, Fixnum, Hash)>] InlineResponse20056 data, response status code and response headers
|
100
|
-
def
|
101
|
-
|
102
|
-
body[:key] = @api_key
|
103
|
-
|
104
|
-
# resource path
|
105
|
-
local_var_path = '/tags/info'
|
106
|
-
|
107
|
-
# http body (model)
|
108
|
-
auth_names = []
|
109
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
110
|
-
:body => body,
|
111
|
-
:auth_names => auth_names,
|
112
|
-
:return_type => 'InlineResponse20056')
|
113
|
-
return data, status_code, headers
|
114
|
-
end
|
115
|
-
# /tags/list
|
116
|
-
# Return all of the user-defined tag information
|
117
|
-
# @param body
|
118
|
-
# @param [Hash] opts the optional parameters
|
119
|
-
# @return [Array<InlineResponse20054>]
|
120
|
-
def list(body = {}, opts = {})
|
121
|
-
data, _status_code, _headers = list_with_http_info(body, opts)
|
48
|
+
def info(body = {})
|
49
|
+
data = @api_client.call_api(:POST, '/tags/info', body)
|
122
50
|
data
|
123
51
|
end
|
124
52
|
|
125
|
-
#
|
126
|
-
# Return all of the user-defined tag information
|
53
|
+
# List tags
|
54
|
+
# Return all of the user-defined tag information.
|
127
55
|
# @param body
|
128
56
|
# @param [Hash] opts the optional parameters
|
129
57
|
# @return [Array<(Array<InlineResponse20054>, Fixnum, Hash)>] Array<InlineResponse20054> data, response status code and response headers
|
130
|
-
def
|
131
|
-
|
132
|
-
body[:key] = @api_key
|
133
|
-
|
134
|
-
# resource path
|
135
|
-
local_var_path = '/tags/list'
|
136
|
-
|
137
|
-
# http body (model)
|
138
|
-
auth_names = []
|
139
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
140
|
-
:body => body,
|
141
|
-
:auth_names => auth_names,
|
142
|
-
:return_type => 'Array<InlineResponse20054>')
|
143
|
-
return data, status_code, headers
|
144
|
-
end
|
145
|
-
# /tags/time-series
|
146
|
-
# Return the recent history (hourly stats for the last 30 days) for a tag
|
147
|
-
# @param body
|
148
|
-
# @param [Hash] opts the optional parameters
|
149
|
-
# @return [Array<InlineResponse20028>]
|
150
|
-
def time_series(body = {}, opts = {})
|
151
|
-
data, _status_code, _headers = time_series_with_http_info(body, opts)
|
58
|
+
def list(body = {})
|
59
|
+
data = @api_client.call_api(:POST, '/tags/list', body)
|
152
60
|
data
|
153
61
|
end
|
154
62
|
|
155
|
-
#
|
156
|
-
# Return the recent history (hourly stats for the last 30 days) for a tag
|
63
|
+
# View tag history
|
64
|
+
# Return the recent history (hourly stats for the last 30 days) for a tag.
|
157
65
|
# @param body
|
158
66
|
# @param [Hash] opts the optional parameters
|
159
67
|
# @return [Array<(Array<InlineResponse20028>, Fixnum, Hash)>] Array<InlineResponse20028> data, response status code and response headers
|
160
|
-
def
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
# resource path
|
165
|
-
local_var_path = '/tags/time-series'
|
166
|
-
|
167
|
-
# http body (model)
|
168
|
-
auth_names = []
|
169
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
170
|
-
:body => body,
|
171
|
-
:auth_names => auth_names,
|
172
|
-
:return_type => 'Array<InlineResponse20028>')
|
173
|
-
return data, status_code, headers
|
68
|
+
def time_series(body = {})
|
69
|
+
data = @api_client.call_api(:POST, '/tags/time-series', body)
|
70
|
+
data
|
174
71
|
end
|
175
72
|
end
|
176
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.13
|
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,251 +16,88 @@ module MailchimpTransactional
|
|
16
16
|
class TemplatesApi
|
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
|
-
# /templates/add
|
26
|
-
# Add a new template
|
27
|
-
# @param body
|
28
|
-
# @param [Hash] opts the optional parameters
|
29
|
-
# @return [InlineResponse20057]
|
30
|
-
def add(body = {}, opts = {})
|
31
|
-
data, _status_code, _headers = add_with_http_info(body, opts)
|
32
|
-
data
|
33
|
-
end
|
34
22
|
|
35
|
-
#
|
36
|
-
# Add a new template
|
23
|
+
# Add template
|
24
|
+
# Add a new template.
|
37
25
|
# @param body
|
38
26
|
# @param [Hash] opts the optional parameters
|
39
27
|
# @return [Array<(InlineResponse20057, Fixnum, Hash)>] InlineResponse20057 data, response status code and response headers
|
40
|
-
def
|
41
|
-
|
42
|
-
body[:key] = @api_key
|
43
|
-
|
44
|
-
# resource path
|
45
|
-
local_var_path = '/templates/add'
|
46
|
-
|
47
|
-
# http body (model)
|
48
|
-
auth_names = []
|
49
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
50
|
-
:body => body,
|
51
|
-
:auth_names => auth_names,
|
52
|
-
:return_type => 'InlineResponse20057')
|
53
|
-
return data, status_code, headers
|
54
|
-
end
|
55
|
-
# /templates/delete
|
56
|
-
# Delete a template
|
57
|
-
# @param body
|
58
|
-
# @param [Hash] opts the optional parameters
|
59
|
-
# @return [InlineResponse20061]
|
60
|
-
def delete(body = {}, opts = {})
|
61
|
-
data, _status_code, _headers = delete_with_http_info(body, opts)
|
28
|
+
def add(body = {})
|
29
|
+
data = @api_client.call_api(:POST, '/templates/add', body)
|
62
30
|
data
|
63
31
|
end
|
64
32
|
|
65
|
-
#
|
66
|
-
# Delete a template
|
33
|
+
# Delete template
|
34
|
+
# Delete a template.
|
67
35
|
# @param body
|
68
36
|
# @param [Hash] opts the optional parameters
|
69
37
|
# @return [Array<(InlineResponse20061, Fixnum, Hash)>] InlineResponse20061 data, response status code and response headers
|
70
|
-
def
|
71
|
-
|
72
|
-
body[:key] = @api_key
|
73
|
-
|
74
|
-
# resource path
|
75
|
-
local_var_path = '/templates/delete'
|
76
|
-
|
77
|
-
# http body (model)
|
78
|
-
auth_names = []
|
79
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
80
|
-
:body => body,
|
81
|
-
:auth_names => auth_names,
|
82
|
-
:return_type => 'InlineResponse20061')
|
83
|
-
return data, status_code, headers
|
84
|
-
end
|
85
|
-
# /templates/info
|
86
|
-
# Get the information for an existing template
|
87
|
-
# @param body
|
88
|
-
# @param [Hash] opts the optional parameters
|
89
|
-
# @return [InlineResponse20058]
|
90
|
-
def info(body = {}, opts = {})
|
91
|
-
data, _status_code, _headers = info_with_http_info(body, opts)
|
38
|
+
def delete(body = {})
|
39
|
+
data = @api_client.call_api(:POST, '/templates/delete', body)
|
92
40
|
data
|
93
41
|
end
|
94
42
|
|
95
|
-
#
|
96
|
-
# Get the information for an existing template
|
43
|
+
# Get template info
|
44
|
+
# Get the information for an existing template.
|
97
45
|
# @param body
|
98
46
|
# @param [Hash] opts the optional parameters
|
99
47
|
# @return [Array<(InlineResponse20058, Fixnum, Hash)>] InlineResponse20058 data, response status code and response headers
|
100
|
-
def
|
101
|
-
|
102
|
-
body[:key] = @api_key
|
103
|
-
|
104
|
-
# resource path
|
105
|
-
local_var_path = '/templates/info'
|
106
|
-
|
107
|
-
# http body (model)
|
108
|
-
auth_names = []
|
109
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
110
|
-
:body => body,
|
111
|
-
:auth_names => auth_names,
|
112
|
-
:return_type => 'InlineResponse20058')
|
113
|
-
return data, status_code, headers
|
114
|
-
end
|
115
|
-
# /templates/list
|
116
|
-
# Return a list of all the templates available to this user
|
117
|
-
# @param body
|
118
|
-
# @param [Hash] opts the optional parameters
|
119
|
-
# @return [Array<InlineResponse20062>]
|
120
|
-
def list(body = {}, opts = {})
|
121
|
-
data, _status_code, _headers = list_with_http_info(body, opts)
|
48
|
+
def info(body = {})
|
49
|
+
data = @api_client.call_api(:POST, '/templates/info', body)
|
122
50
|
data
|
123
51
|
end
|
124
52
|
|
125
|
-
#
|
126
|
-
# Return a list of all the templates available to this user
|
53
|
+
# List templates
|
54
|
+
# Return a list of all the templates available to this user.
|
127
55
|
# @param body
|
128
56
|
# @param [Hash] opts the optional parameters
|
129
57
|
# @return [Array<(Array<InlineResponse20062>, Fixnum, Hash)>] Array<InlineResponse20062> data, response status code and response headers
|
130
|
-
def
|
131
|
-
|
132
|
-
body[:key] = @api_key
|
133
|
-
|
134
|
-
# resource path
|
135
|
-
local_var_path = '/templates/list'
|
136
|
-
|
137
|
-
# http body (model)
|
138
|
-
auth_names = []
|
139
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
140
|
-
:body => body,
|
141
|
-
:auth_names => auth_names,
|
142
|
-
:return_type => 'Array<InlineResponse20062>')
|
143
|
-
return data, status_code, headers
|
144
|
-
end
|
145
|
-
# /templates/publish
|
146
|
-
# Publish the content for the template. Any new messages sent using this template will start using the content that was previously in draft.
|
147
|
-
# @param body
|
148
|
-
# @param [Hash] opts the optional parameters
|
149
|
-
# @return [InlineResponse20060]
|
150
|
-
def publish(body = {}, opts = {})
|
151
|
-
data, _status_code, _headers = publish_with_http_info(body, opts)
|
58
|
+
def list(body = {})
|
59
|
+
data = @api_client.call_api(:POST, '/templates/list', body)
|
152
60
|
data
|
153
61
|
end
|
154
62
|
|
155
|
-
#
|
63
|
+
# Publish template content
|
156
64
|
# Publish the content for the template. Any new messages sent using this template will start using the content that was previously in draft.
|
157
65
|
# @param body
|
158
66
|
# @param [Hash] opts the optional parameters
|
159
67
|
# @return [Array<(InlineResponse20060, Fixnum, Hash)>] InlineResponse20060 data, response status code and response headers
|
160
|
-
def
|
161
|
-
|
162
|
-
body[:key] = @api_key
|
163
|
-
|
164
|
-
# resource path
|
165
|
-
local_var_path = '/templates/publish'
|
166
|
-
|
167
|
-
# http body (model)
|
168
|
-
auth_names = []
|
169
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
170
|
-
:body => body,
|
171
|
-
:auth_names => auth_names,
|
172
|
-
:return_type => 'InlineResponse20060')
|
173
|
-
return data, status_code, headers
|
174
|
-
end
|
175
|
-
# /templates/render
|
176
|
-
# Inject content and optionally merge fields into a template, returning the HTML that results
|
177
|
-
# @param body
|
178
|
-
# @param [Hash] opts the optional parameters
|
179
|
-
# @return [InlineResponse20063]
|
180
|
-
def render(body = {}, opts = {})
|
181
|
-
data, _status_code, _headers = render_with_http_info(body, opts)
|
68
|
+
def publish(body = {})
|
69
|
+
data = @api_client.call_api(:POST, '/templates/publish', body)
|
182
70
|
data
|
183
71
|
end
|
184
72
|
|
185
|
-
#
|
186
|
-
# Inject content and optionally merge fields into a template, returning the HTML that results
|
73
|
+
# Render html template
|
74
|
+
# Inject content and optionally merge fields into a template, returning the HTML that results.
|
187
75
|
# @param body
|
188
76
|
# @param [Hash] opts the optional parameters
|
189
77
|
# @return [Array<(InlineResponse20063, Fixnum, Hash)>] InlineResponse20063 data, response status code and response headers
|
190
|
-
def
|
191
|
-
|
192
|
-
body[:key] = @api_key
|
193
|
-
|
194
|
-
# resource path
|
195
|
-
local_var_path = '/templates/render'
|
196
|
-
|
197
|
-
# http body (model)
|
198
|
-
auth_names = []
|
199
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
200
|
-
:body => body,
|
201
|
-
:auth_names => auth_names,
|
202
|
-
:return_type => 'InlineResponse20063')
|
203
|
-
return data, status_code, headers
|
204
|
-
end
|
205
|
-
# /templates/time-series
|
206
|
-
# Return the recent history (hourly stats for the last 30 days) for a template
|
207
|
-
# @param body
|
208
|
-
# @param [Hash] opts the optional parameters
|
209
|
-
# @return [Array<InlineResponse20046>]
|
210
|
-
def time_series(body = {}, opts = {})
|
211
|
-
data, _status_code, _headers = time_series_with_http_info(body, opts)
|
78
|
+
def render(body = {})
|
79
|
+
data = @api_client.call_api(:POST, '/templates/render', body)
|
212
80
|
data
|
213
81
|
end
|
214
82
|
|
215
|
-
#
|
216
|
-
# Return the recent history (hourly stats for the last 30 days) for a template
|
83
|
+
# Get template history
|
84
|
+
# Return the recent history (hourly stats for the last 30 days) for a template.
|
217
85
|
# @param body
|
218
86
|
# @param [Hash] opts the optional parameters
|
219
87
|
# @return [Array<(Array<InlineResponse20046>, Fixnum, Hash)>] Array<InlineResponse20046> data, response status code and response headers
|
220
|
-
def
|
221
|
-
|
222
|
-
body[:key] = @api_key
|
223
|
-
|
224
|
-
# resource path
|
225
|
-
local_var_path = '/templates/time-series'
|
226
|
-
|
227
|
-
# http body (model)
|
228
|
-
auth_names = []
|
229
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
230
|
-
:body => body,
|
231
|
-
:auth_names => auth_names,
|
232
|
-
:return_type => 'Array<InlineResponse20046>')
|
233
|
-
return data, status_code, headers
|
234
|
-
end
|
235
|
-
# /templates/update
|
236
|
-
# Update the code for an existing template. If null is provided for any fields, the values will remain unchanged.
|
237
|
-
# @param body
|
238
|
-
# @param [Hash] opts the optional parameters
|
239
|
-
# @return [InlineResponse20059]
|
240
|
-
def update(body = {}, opts = {})
|
241
|
-
data, _status_code, _headers = update_with_http_info(body, opts)
|
88
|
+
def time_series(body = {})
|
89
|
+
data = @api_client.call_api(:POST, '/templates/time-series', body)
|
242
90
|
data
|
243
91
|
end
|
244
92
|
|
245
|
-
#
|
93
|
+
# Update template
|
246
94
|
# Update the code for an existing template. If null is provided for any fields, the values will remain unchanged.
|
247
95
|
# @param body
|
248
96
|
# @param [Hash] opts the optional parameters
|
249
97
|
# @return [Array<(InlineResponse20059, Fixnum, Hash)>] InlineResponse20059 data, response status code and response headers
|
250
|
-
def
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
# resource path
|
255
|
-
local_var_path = '/templates/update'
|
256
|
-
|
257
|
-
# http body (model)
|
258
|
-
auth_names = []
|
259
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
260
|
-
:body => body,
|
261
|
-
:auth_names => auth_names,
|
262
|
-
:return_type => 'InlineResponse20059')
|
263
|
-
return data, status_code, headers
|
98
|
+
def update(body = {})
|
99
|
+
data = @api_client.call_api(:POST, '/templates/update', body)
|
100
|
+
data
|
264
101
|
end
|
265
102
|
end
|
266
103
|
end
|