MailchimpTransactional 1.0.9 → 1.0.11

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.9
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 TagsApi
17
17
  attr_accessor :api_client
18
18
 
19
- attr_accessor :api_key
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
- # View all tags history
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 = all_time_series_with_http_info(body, opts)
32
- data
33
- end
34
22
 
35
23
  # View all tags history
36
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 all_time_series_with_http_info(body, opts = {})
41
- # add api key to request body
42
- body[:key] = @api_key
43
-
44
- # resource path
45
- local_var_path = '/tags/all-time-series'
46
-
47
- # http body (model)
48
- data = @api_client.call_api(:POST, local_var_path, :body => body)
49
- return data
50
- end
51
- # Delete tag
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.
53
- # @param body
54
- # @param [Hash] opts the optional parameters
55
- # @return [InlineResponse20055]
56
- def delete(body = {}, opts = {})
57
- data = delete_with_http_info(body, opts)
28
+ def all_time_series(body = {})
29
+ data = @api_client.call_api(:POST, '/tags/all-time-series', 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<(InlineResponse20055, Fixnum, Hash)>] InlineResponse20055 data, response status code and response headers
66
- def delete_with_http_info(body, opts = {})
67
- # add api key to request body
68
- body[:key] = @api_key
69
-
70
- # resource path
71
- local_var_path = '/tags/delete'
72
-
73
- # http body (model)
74
- data = @api_client.call_api(:POST, local_var_path, :body => body)
75
- return data
76
- end
77
- # Get tag info
78
- # Return more detailed information about a single tag, including aggregates of recent stats.
79
- # @param body
80
- # @param [Hash] opts the optional parameters
81
- # @return [InlineResponse20056]
82
- def info(body = {}, opts = {})
83
- data = info_with_http_info(body, opts)
38
+ def delete(body = {})
39
+ data = @api_client.call_api(:POST, '/tags/delete', 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<(InlineResponse20056, Fixnum, Hash)>] InlineResponse20056 data, response status code and response headers
92
- def info_with_http_info(body, opts = {})
93
- # add api key to request body
94
- body[:key] = @api_key
95
-
96
- # resource path
97
- local_var_path = '/tags/info'
98
-
99
- # http body (model)
100
- data = @api_client.call_api(:POST, local_var_path, :body => body)
101
- return data
102
- end
103
- # List tags
104
- # Return all of the user-defined tag information.
105
- # @param body
106
- # @param [Hash] opts the optional parameters
107
- # @return [Array<InlineResponse20054>]
108
- def list(body = {}, opts = {})
109
- data = list_with_http_info(body, opts)
48
+ def info(body = {})
49
+ data = @api_client.call_api(:POST, '/tags/info', 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<(Array<InlineResponse20054>, Fixnum, Hash)>] Array<InlineResponse20054> data, response status code and response headers
118
- def list_with_http_info(body, opts = {})
119
- # add api key to request body
120
- body[:key] = @api_key
121
-
122
- # resource path
123
- local_var_path = '/tags/list'
124
-
125
- # http body (model)
126
- data = @api_client.call_api(:POST, local_var_path, :body => body)
127
- return data
128
- end
129
- # View tag history
130
- # Return the recent history (hourly stats for the last 30 days) for a tag.
131
- # @param body
132
- # @param [Hash] opts the optional parameters
133
- # @return [Array<InlineResponse20028>]
134
- def time_series(body = {}, opts = {})
135
- data = time_series_with_http_info(body, opts)
58
+ def list(body = {})
59
+ data = @api_client.call_api(:POST, '/tags/list', 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<(Array<InlineResponse20028>, Fixnum, Hash)>] Array<InlineResponse20028> data, response status code and response headers
144
- def time_series_with_http_info(body, opts = {})
145
- # add api key to request body
146
- body[:key] = @api_key
147
-
148
- # resource path
149
- local_var_path = '/tags/time-series'
150
-
151
- # http body (model)
152
- data = @api_client.call_api(:POST, local_var_path, :body => body)
153
- return data
68
+ def time_series(body = {})
69
+ data = @api_client.call_api(:POST, '/tags/time-series', 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.9
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 TemplatesApi
17
17
  attr_accessor :api_client
18
18
 
19
- attr_accessor :api_key
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 template
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 = add_with_http_info(body, opts)
32
- data
33
- end
34
22
 
35
23
  # Add template
36
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 add_with_http_info(body, opts = {})
41
- # add api key to request body
42
- body[:key] = @api_key
43
-
44
- # resource path
45
- local_var_path = '/templates/add'
46
-
47
- # http body (model)
48
- data = @api_client.call_api(:POST, local_var_path, :body => body)
49
- return data
50
- end
51
- # Delete template
52
- # Delete a template.
53
- # @param body
54
- # @param [Hash] opts the optional parameters
55
- # @return [InlineResponse20061]
56
- def delete(body = {}, opts = {})
57
- data = delete_with_http_info(body, opts)
28
+ def add(body = {})
29
+ data = @api_client.call_api(:POST, '/templates/add', 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<(InlineResponse20061, Fixnum, Hash)>] InlineResponse20061 data, response status code and response headers
66
- def delete_with_http_info(body, opts = {})
67
- # add api key to request body
68
- body[:key] = @api_key
69
-
70
- # resource path
71
- local_var_path = '/templates/delete'
72
-
73
- # http body (model)
74
- data = @api_client.call_api(:POST, local_var_path, :body => body)
75
- return data
76
- end
77
- # Get template info
78
- # Get the information for an existing template.
79
- # @param body
80
- # @param [Hash] opts the optional parameters
81
- # @return [InlineResponse20058]
82
- def info(body = {}, opts = {})
83
- data = info_with_http_info(body, opts)
38
+ def delete(body = {})
39
+ data = @api_client.call_api(:POST, '/templates/delete', 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<(InlineResponse20058, Fixnum, Hash)>] InlineResponse20058 data, response status code and response headers
92
- def info_with_http_info(body, opts = {})
93
- # add api key to request body
94
- body[:key] = @api_key
95
-
96
- # resource path
97
- local_var_path = '/templates/info'
98
-
99
- # http body (model)
100
- data = @api_client.call_api(:POST, local_var_path, :body => body)
101
- return data
102
- end
103
- # List templates
104
- # Return a list of all the templates available to this user.
105
- # @param body
106
- # @param [Hash] opts the optional parameters
107
- # @return [Array<InlineResponse20062>]
108
- def list(body = {}, opts = {})
109
- data = list_with_http_info(body, opts)
48
+ def info(body = {})
49
+ data = @api_client.call_api(:POST, '/templates/info', 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<(Array<InlineResponse20062>, Fixnum, Hash)>] Array<InlineResponse20062> data, response status code and response headers
118
- def list_with_http_info(body, opts = {})
119
- # add api key to request body
120
- body[:key] = @api_key
121
-
122
- # resource path
123
- local_var_path = '/templates/list'
124
-
125
- # http body (model)
126
- data = @api_client.call_api(:POST, local_var_path, :body => body)
127
- return data
128
- end
129
- # Publish template content
130
- # Publish the content for the template. Any new messages sent using this template will start using the content that was previously in draft.
131
- # @param body
132
- # @param [Hash] opts the optional parameters
133
- # @return [InlineResponse20060]
134
- def publish(body = {}, opts = {})
135
- data = publish_with_http_info(body, opts)
58
+ def list(body = {})
59
+ data = @api_client.call_api(:POST, '/templates/list', 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<(InlineResponse20060, Fixnum, Hash)>] InlineResponse20060 data, response status code and response headers
144
- def publish_with_http_info(body, opts = {})
145
- # add api key to request body
146
- body[:key] = @api_key
147
-
148
- # resource path
149
- local_var_path = '/templates/publish'
150
-
151
- # http body (model)
152
- data = @api_client.call_api(:POST, local_var_path, :body => body)
153
- return data
154
- end
155
- # Render html template
156
- # Inject content and optionally merge fields into a template, returning the HTML that results.
157
- # @param body
158
- # @param [Hash] opts the optional parameters
159
- # @return [InlineResponse20063]
160
- def render(body = {}, opts = {})
161
- data = render_with_http_info(body, opts)
68
+ def publish(body = {})
69
+ data = @api_client.call_api(:POST, '/templates/publish', 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<(InlineResponse20063, Fixnum, Hash)>] InlineResponse20063 data, response status code and response headers
170
- def render_with_http_info(body, opts = {})
171
- # add api key to request body
172
- body[:key] = @api_key
173
-
174
- # resource path
175
- local_var_path = '/templates/render'
176
-
177
- # http body (model)
178
- data = @api_client.call_api(:POST, local_var_path, :body => body)
179
- return data
180
- end
181
- # Get template history
182
- # Return the recent history (hourly stats for the last 30 days) for a template.
183
- # @param body
184
- # @param [Hash] opts the optional parameters
185
- # @return [Array<InlineResponse20046>]
186
- def time_series(body = {}, opts = {})
187
- data = time_series_with_http_info(body, opts)
78
+ def render(body = {})
79
+ data = @api_client.call_api(:POST, '/templates/render', 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<InlineResponse20046>, Fixnum, Hash)>] Array<InlineResponse20046> data, response status code and response headers
196
- def time_series_with_http_info(body, opts = {})
197
- # add api key to request body
198
- body[:key] = @api_key
199
-
200
- # resource path
201
- local_var_path = '/templates/time-series'
202
-
203
- # http body (model)
204
- data = @api_client.call_api(:POST, local_var_path, :body => body)
205
- return data
206
- end
207
- # Update template
208
- # Update the code for an existing template. If null is provided for any fields, the values will remain unchanged.
209
- # @param body
210
- # @param [Hash] opts the optional parameters
211
- # @return [InlineResponse20059]
212
- def update(body = {}, opts = {})
213
- data = update_with_http_info(body, opts)
88
+ def time_series(body = {})
89
+ data = @api_client.call_api(:POST, '/templates/time-series', body)
214
90
  data
215
91
  end
216
92
 
@@ -219,16 +95,9 @@ module MailchimpTransactional
219
95
  # @param body
220
96
  # @param [Hash] opts the optional parameters
221
97
  # @return [Array<(InlineResponse20059, Fixnum, Hash)>] InlineResponse20059 data, response status code and response headers
222
- def update_with_http_info(body, opts = {})
223
- # add api key to request body
224
- body[:key] = @api_key
225
-
226
- # resource path
227
- local_var_path = '/templates/update'
228
-
229
- # http body (model)
230
- data = @api_client.call_api(:POST, local_var_path, :body => body)
231
- return data
98
+ def update(body = {})
99
+ data = @api_client.call_api(:POST, '/templates/update', body)
100
+ data
232
101
  end
233
102
  end
234
103
  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.9
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 UrlsApi
17
17
  attr_accessor :api_client
18
18
 
19
- attr_accessor :api_key
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 tracking domains
26
- # Add a tracking domain to your account.
27
- # @param body
28
- # @param [Hash] opts the optional parameters
29
- # @return [InlineResponse20068]
30
- def add_tracking_domain(body = {}, opts = {})
31
- data = add_tracking_domain_with_http_info(body, opts)
32
- data
33
- end
34
22
 
35
23
  # Add tracking domains
36
24
  # Add a tracking domain to your account.
37
25
  # @param body
38
26
  # @param [Hash] opts the optional parameters
39
27
  # @return [Array<(InlineResponse20068, Fixnum, Hash)>] InlineResponse20068 data, response status code and response headers
40
- def add_tracking_domain_with_http_info(body, opts = {})
41
- # add api key to request body
42
- body[:key] = @api_key
43
-
44
- # resource path
45
- local_var_path = '/urls/add-tracking-domain'
46
-
47
- # http body (model)
48
- data = @api_client.call_api(:POST, local_var_path, :body => body)
49
- return data
50
- end
51
- # Check cname settings
52
- # Checks the CNAME settings for a tracking domain. The domain must have been added already with the add-tracking-domain call.
53
- # @param body
54
- # @param [Hash] opts the optional parameters
55
- # @return [InlineResponse20068]
56
- def check_tracking_domain(body = {}, opts = {})
57
- data = check_tracking_domain_with_http_info(body, opts)
28
+ def add_tracking_domain(body = {})
29
+ data = @api_client.call_api(:POST, '/urls/add-tracking-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<(InlineResponse20068, Fixnum, Hash)>] InlineResponse20068 data, response status code and response headers
66
- def check_tracking_domain_with_http_info(body, opts = {})
67
- # add api key to request body
68
- body[:key] = @api_key
69
-
70
- # resource path
71
- local_var_path = '/urls/check-tracking-domain'
72
-
73
- # http body (model)
74
- data = @api_client.call_api(:POST, local_var_path, :body => body)
75
- return data
76
- end
77
- # List most clicked ur ls
78
- # Get the 100 most clicked URLs.
79
- # @param body
80
- # @param [Hash] opts the optional parameters
81
- # @return [Array<InlineResponse20064>]
82
- def list(body = {}, opts = {})
83
- data = list_with_http_info(body, opts)
38
+ def check_tracking_domain(body = {})
39
+ data = @api_client.call_api(:POST, '/urls/check-tracking-domain', 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<InlineResponse20064>, Fixnum, Hash)>] Array<InlineResponse20064> data, response status code and response headers
92
- def list_with_http_info(body, opts = {})
93
- # add api key to request body
94
- body[:key] = @api_key
95
-
96
- # resource path
97
- local_var_path = '/urls/list'
98
-
99
- # http body (model)
100
- data = @api_client.call_api(:POST, local_var_path, :body => body)
101
- return data
102
- end
103
- # Search most clicked ur ls
104
- # Return the 100 most clicked URLs that match the search query given.
105
- # @param body
106
- # @param [Hash] opts the optional parameters
107
- # @return [Array<InlineResponse20065>]
108
- def search(body = {}, opts = {})
109
- data = search_with_http_info(body, opts)
48
+ def list(body = {})
49
+ data = @api_client.call_api(:POST, '/urls/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<(Array<InlineResponse20065>, Fixnum, Hash)>] Array<InlineResponse20065> data, response status code and response headers
118
- def search_with_http_info(body, opts = {})
119
- # add api key to request body
120
- body[:key] = @api_key
121
-
122
- # resource path
123
- local_var_path = '/urls/search'
124
-
125
- # http body (model)
126
- data = @api_client.call_api(:POST, local_var_path, :body => body)
127
- return data
128
- end
129
- # Get url history
130
- # Return the recent history (hourly stats for the last 30 days) for a URL
131
- # @param body
132
- # @param [Hash] opts the optional parameters
133
- # @return [Array<InlineResponse20066>]
134
- def time_series(body = {}, opts = {})
135
- data = time_series_with_http_info(body, opts)
58
+ def search(body = {})
59
+ data = @api_client.call_api(:POST, '/urls/search', 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<(Array<InlineResponse20066>, Fixnum, Hash)>] Array<InlineResponse20066> data, response status code and response headers
144
- def time_series_with_http_info(body, opts = {})
145
- # add api key to request body
146
- body[:key] = @api_key
147
-
148
- # resource path
149
- local_var_path = '/urls/time-series'
150
-
151
- # http body (model)
152
- data = @api_client.call_api(:POST, local_var_path, :body => body)
153
- return data
154
- end
155
- # List tracking domains
156
- # Get the list of tracking domains set up for this account.
157
- # @param body
158
- # @param [Hash] opts the optional parameters
159
- # @return [Array<InlineResponse20067>]
160
- def tracking_domains(body = {}, opts = {})
161
- data = tracking_domains_with_http_info(body, opts)
68
+ def time_series(body = {})
69
+ data = @api_client.call_api(:POST, '/urls/time-series', body)
162
70
  data
163
71
  end
164
72
 
@@ -167,16 +75,9 @@ module MailchimpTransactional
167
75
  # @param body
168
76
  # @param [Hash] opts the optional parameters
169
77
  # @return [Array<(Array<InlineResponse20067>, Fixnum, Hash)>] Array<InlineResponse20067> data, response status code and response headers
170
- def tracking_domains_with_http_info(body, opts = {})
171
- # add api key to request body
172
- body[:key] = @api_key
173
-
174
- # resource path
175
- local_var_path = '/urls/tracking-domains'
176
-
177
- # http body (model)
178
- data = @api_client.call_api(:POST, local_var_path, :body => body)
179
- return data
78
+ def tracking_domains(body = {})
79
+ data = @api_client.call_api(:POST, '/urls/tracking-domains', body)
80
+ data
180
81
  end
181
82
  end
182
83
  end