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