MailchimpTransactional 1.0.6 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
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
- # /subaccounts/add
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, _status_code, _headers = add_with_http_info(body, opts)
31
+ data = add_with_http_info(body, opts)
32
32
  data
33
33
  end
34
34
 
35
- # /subaccounts/add
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
- 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 => '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
- # /subaccounts/delete
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, _status_code, _headers = delete_with_http_info(body, opts)
57
+ data = delete_with_http_info(body, opts)
62
58
  data
63
59
  end
64
60
 
65
- # /subaccounts/delete
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
- 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 => '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
- # /subaccounts/info
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, _status_code, _headers = info_with_http_info(body, opts)
83
+ data = info_with_http_info(body, opts)
92
84
  data
93
85
  end
94
86
 
95
- # /subaccounts/info
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
- 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 => '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
- # /subaccounts/list
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, _status_code, _headers = list_with_http_info(body, opts)
109
+ data = list_with_http_info(body, opts)
122
110
  data
123
111
  end
124
112
 
125
- # /subaccounts/list
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
- 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<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
- # /subaccounts/pause
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, _status_code, _headers = pause_with_http_info(body, opts)
135
+ data = pause_with_http_info(body, opts)
152
136
  data
153
137
  end
154
138
 
155
- # /subaccounts/pause
139
+ # Pause subaccount
156
140
  # Pause a subaccount&#39;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
- 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 => '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
- # /subaccounts/resume
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, _status_code, _headers = resume_with_http_info(body, opts)
161
+ data = resume_with_http_info(body, opts)
182
162
  data
183
163
  end
184
164
 
185
- # /subaccounts/resume
186
- # Resume a paused subaccount&#39;s sending
165
+ # Resume subaccount
166
+ # Resume a paused subaccount&#39;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
- 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 => '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
- # /subaccounts/update
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, _status_code, _headers = update_with_http_info(body, opts)
187
+ data = update_with_http_info(body, opts)
212
188
  data
213
189
  end
214
190
 
215
- # /subaccounts/update
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
- 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 => '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
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
- # /tags/all-time-series
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, _status_code, _headers = all_time_series_with_http_info(body, opts)
31
+ data = all_time_series_with_http_info(body, opts)
32
32
  data
33
33
  end
34
34
 
35
- # /tags/all-time-series
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
- 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
48
+ data = @api_client.call_api(:POST, local_var_path, :body => body)
49
+ return data
54
50
  end
55
- # /tags/delete
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, _status_code, _headers = delete_with_http_info(body, opts)
57
+ data = delete_with_http_info(body, opts)
62
58
  data
63
59
  end
64
60
 
65
- # /tags/delete
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&#39;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
- 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
74
+ data = @api_client.call_api(:POST, local_var_path, :body => body)
75
+ return data
84
76
  end
85
- # /tags/info
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, _status_code, _headers = info_with_http_info(body, opts)
83
+ data = info_with_http_info(body, opts)
92
84
  data
93
85
  end
94
86
 
95
- # /tags/info
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
- 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
100
+ data = @api_client.call_api(:POST, local_var_path, :body => body)
101
+ return data
114
102
  end
115
- # /tags/list
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, _status_code, _headers = list_with_http_info(body, opts)
109
+ data = list_with_http_info(body, opts)
122
110
  data
123
111
  end
124
112
 
125
- # /tags/list
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
- 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
126
+ data = @api_client.call_api(:POST, local_var_path, :body => body)
127
+ return data
144
128
  end
145
- # /tags/time-series
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, _status_code, _headers = time_series_with_http_info(body, opts)
135
+ data = time_series_with_http_info(body, opts)
152
136
  data
153
137
  end
154
138
 
155
- # /tags/time-series
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
- 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
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
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
- # /templates/add
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, _status_code, _headers = add_with_http_info(body, opts)
31
+ data = add_with_http_info(body, opts)
32
32
  data
33
33
  end
34
34
 
35
- # /templates/add
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
- 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
48
+ data = @api_client.call_api(:POST, local_var_path, :body => body)
49
+ return data
54
50
  end
55
- # /templates/delete
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, _status_code, _headers = delete_with_http_info(body, opts)
57
+ data = delete_with_http_info(body, opts)
62
58
  data
63
59
  end
64
60
 
65
- # /templates/delete
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
- 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
74
+ data = @api_client.call_api(:POST, local_var_path, :body => body)
75
+ return data
84
76
  end
85
- # /templates/info
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, _status_code, _headers = info_with_http_info(body, opts)
83
+ data = info_with_http_info(body, opts)
92
84
  data
93
85
  end
94
86
 
95
- # /templates/info
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
- 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
100
+ data = @api_client.call_api(:POST, local_var_path, :body => body)
101
+ return data
114
102
  end
115
- # /templates/list
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, _status_code, _headers = list_with_http_info(body, opts)
109
+ data = list_with_http_info(body, opts)
122
110
  data
123
111
  end
124
112
 
125
- # /templates/list
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
- 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
126
+ data = @api_client.call_api(:POST, local_var_path, :body => body)
127
+ return data
144
128
  end
145
- # /templates/publish
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, _status_code, _headers = publish_with_http_info(body, opts)
135
+ data = publish_with_http_info(body, opts)
152
136
  data
153
137
  end
154
138
 
155
- # /templates/publish
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
- 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
152
+ data = @api_client.call_api(:POST, local_var_path, :body => body)
153
+ return data
174
154
  end
175
- # /templates/render
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, _status_code, _headers = render_with_http_info(body, opts)
161
+ data = render_with_http_info(body, opts)
182
162
  data
183
163
  end
184
164
 
185
- # /templates/render
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
- 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
178
+ data = @api_client.call_api(:POST, local_var_path, :body => body)
179
+ return data
204
180
  end
205
- # /templates/time-series
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, _status_code, _headers = time_series_with_http_info(body, opts)
187
+ data = time_series_with_http_info(body, opts)
212
188
  data
213
189
  end
214
190
 
215
- # /templates/time-series
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
- 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
204
+ data = @api_client.call_api(:POST, local_var_path, :body => body)
205
+ return data
234
206
  end
235
- # /templates/update
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, _status_code, _headers = update_with_http_info(body, opts)
213
+ data = update_with_http_info(body, opts)
242
214
  data
243
215
  end
244
216
 
245
- # /templates/update
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
- 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
230
+ data = @api_client.call_api(:POST, local_var_path, :body => body)
231
+ return data
264
232
  end
265
233
  end
266
234
  end