MailchimpTransactional 1.0.6 → 1.0.13

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.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,191 +16,68 @@ 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
- # /urls/add-tracking-domain
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, _status_code, _headers = add_tracking_domain_with_http_info(body, opts)
32
- data
33
- end
34
22
 
35
- # /urls/add-tracking-domain
36
- # Add a tracking domain to your account
23
+ # Add tracking domains
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
- 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 => 'InlineResponse20068')
53
- return data, status_code, headers
54
- end
55
- # /urls/check-tracking-domain
56
- # Checks the CNAME settings for a tracking domain. The domain must have been added already with the add-tracking-domain call
57
- # @param body
58
- # @param [Hash] opts the optional parameters
59
- # @return [InlineResponse20068]
60
- def check_tracking_domain(body = {}, opts = {})
61
- data, _status_code, _headers = 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)
62
30
  data
63
31
  end
64
32
 
65
- # /urls/check-tracking-domain
66
- # Checks the CNAME settings for a tracking domain. The domain must have been added already with the add-tracking-domain call
33
+ # Check cname settings
34
+ # Checks the CNAME settings for a tracking domain. The domain must have been added already with the add-tracking-domain call.
67
35
  # @param body
68
36
  # @param [Hash] opts the optional parameters
69
37
  # @return [Array<(InlineResponse20068, Fixnum, Hash)>] InlineResponse20068 data, response status code and response headers
70
- def check_tracking_domain_with_http_info(body, opts = {})
71
- # add api key to request body
72
- body[:key] = @api_key
73
-
74
- # resource path
75
- local_var_path = '/urls/check-tracking-domain'
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 => 'InlineResponse20068')
83
- return data, status_code, headers
84
- end
85
- # /urls/list
86
- # Get the 100 most clicked URLs
87
- # @param body
88
- # @param [Hash] opts the optional parameters
89
- # @return [Array<InlineResponse20064>]
90
- def list(body = {}, opts = {})
91
- data, _status_code, _headers = list_with_http_info(body, opts)
38
+ def check_tracking_domain(body = {})
39
+ data = @api_client.call_api(:POST, '/urls/check-tracking-domain', body)
92
40
  data
93
41
  end
94
42
 
95
- # /urls/list
96
- # Get the 100 most clicked URLs
43
+ # List most clicked ur ls
44
+ # Get the 100 most clicked URLs.
97
45
  # @param body
98
46
  # @param [Hash] opts the optional parameters
99
47
  # @return [Array<(Array<InlineResponse20064>, Fixnum, Hash)>] Array<InlineResponse20064> data, response status code and response headers
100
- def list_with_http_info(body, opts = {})
101
- # add api key to request body
102
- body[:key] = @api_key
103
-
104
- # resource path
105
- local_var_path = '/urls/list'
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 => 'Array<InlineResponse20064>')
113
- return data, status_code, headers
114
- end
115
- # /urls/search (deprecated)
116
- # Return the 100 most clicked URLs that match the search query given
117
- # @param body
118
- # @param [Hash] opts the optional parameters
119
- # @return [Array<InlineResponse20065>]
120
- def search(body = {}, opts = {})
121
- data, _status_code, _headers = search_with_http_info(body, opts)
48
+ def list(body = {})
49
+ data = @api_client.call_api(:POST, '/urls/list', body)
122
50
  data
123
51
  end
124
52
 
125
- # /urls/search (deprecated)
126
- # Return the 100 most clicked URLs that match the search query given
53
+ # Search most clicked ur ls
54
+ # Return the 100 most clicked URLs that match the search query given.
127
55
  # @param body
128
56
  # @param [Hash] opts the optional parameters
129
57
  # @return [Array<(Array<InlineResponse20065>, Fixnum, Hash)>] Array<InlineResponse20065> data, response status code and response headers
130
- def search_with_http_info(body, opts = {})
131
- # add api key to request body
132
- body[:key] = @api_key
133
-
134
- # resource path
135
- local_var_path = '/urls/search'
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<InlineResponse20065>')
143
- return data, status_code, headers
144
- end
145
- # /urls/time-series
146
- # Return the recent history (hourly stats for the last 30 days) for a url
147
- # @param body
148
- # @param [Hash] opts the optional parameters
149
- # @return [Array<InlineResponse20066>]
150
- def time_series(body = {}, opts = {})
151
- data, _status_code, _headers = time_series_with_http_info(body, opts)
58
+ def search(body = {})
59
+ data = @api_client.call_api(:POST, '/urls/search', body)
152
60
  data
153
61
  end
154
62
 
155
- # /urls/time-series
156
- # Return the recent history (hourly stats for the last 30 days) for a url
63
+ # Get url history
64
+ # Return the recent history (hourly stats for the last 30 days) for a URL
157
65
  # @param body
158
66
  # @param [Hash] opts the optional parameters
159
67
  # @return [Array<(Array<InlineResponse20066>, Fixnum, Hash)>] Array<InlineResponse20066> data, response status code and response headers
160
- def time_series_with_http_info(body, opts = {})
161
- # add api key to request body
162
- body[:key] = @api_key
163
-
164
- # resource path
165
- local_var_path = '/urls/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<InlineResponse20066>')
173
- return data, status_code, headers
174
- end
175
- # /urls/tracking-domains
176
- # Get the list of tracking domains set up for this account
177
- # @param body
178
- # @param [Hash] opts the optional parameters
179
- # @return [Array<InlineResponse20067>]
180
- def tracking_domains(body = {}, opts = {})
181
- data, _status_code, _headers = tracking_domains_with_http_info(body, opts)
68
+ def time_series(body = {})
69
+ data = @api_client.call_api(:POST, '/urls/time-series', body)
182
70
  data
183
71
  end
184
72
 
185
- # /urls/tracking-domains
186
- # Get the list of tracking domains set up for this account
73
+ # List tracking domains
74
+ # Get the list of tracking domains set up for this account.
187
75
  # @param body
188
76
  # @param [Hash] opts the optional parameters
189
77
  # @return [Array<(Array<InlineResponse20067>, Fixnum, Hash)>] Array<InlineResponse20067> data, response status code and response headers
190
- def tracking_domains_with_http_info(body, opts = {})
191
- # add api key to request body
192
- body[:key] = @api_key
193
-
194
- # resource path
195
- local_var_path = '/urls/tracking-domains'
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 => 'Array<InlineResponse20067>')
203
- return data, status_code, headers
78
+ def tracking_domains(body = {})
79
+ data = @api_client.call_api(:POST, '/urls/tracking-domains', body)
80
+ data
204
81
  end
205
82
  end
206
83
  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.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,131 +16,48 @@ module MailchimpTransactional
16
16
  class UsersApi
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
- # /users/info
26
- # Return the information about the API-connected user
27
- # @param body
28
- # @param [Hash] opts the optional parameters
29
- # @return [InlineResponse20069]
30
- def info(body = {}, opts = {})
31
- data, _status_code, _headers = info_with_http_info(body, opts)
32
- data
33
- end
34
22
 
35
- # /users/info
36
- # Return the information about the API-connected user
23
+ # Get user info
24
+ # Return the information about the API-connected user.
37
25
  # @param body
38
26
  # @param [Hash] opts the optional parameters
39
27
  # @return [Array<(InlineResponse20069, Fixnum, Hash)>] InlineResponse20069 data, response status code and response headers
40
- def info_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 = '/users/info'
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 => 'InlineResponse20069')
53
- return data, status_code, headers
54
- end
55
- # /users/ping
56
- # Validate an API key and respond to a ping
57
- # @param body
58
- # @param [Hash] opts the optional parameters
59
- # @return [String]
60
- def ping(body = {}, opts = {})
61
- data, _status_code, _headers = ping_with_http_info(body, opts)
28
+ def info(body = {})
29
+ data = @api_client.call_api(:POST, '/users/info', body)
62
30
  data
63
31
  end
64
32
 
65
- # /users/ping
66
- # Validate an API key and respond to a ping
33
+ # Ping
34
+ # Validate an API key and respond to a ping.
67
35
  # @param body
68
36
  # @param [Hash] opts the optional parameters
69
37
  # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
70
- def ping_with_http_info(body, opts = {})
71
- # add api key to request body
72
- body[:key] = @api_key
73
-
74
- # resource path
75
- local_var_path = '/users/ping'
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 => 'String')
83
- return data, status_code, headers
84
- end
85
- # /users/ping2
86
- # Validate an API key and respond to a ping (anal JSON parser version)
87
- # @param body
88
- # @param [Hash] opts the optional parameters
89
- # @return [InlineResponse20070]
90
- def ping2(body = {}, opts = {})
91
- data, _status_code, _headers = ping2_with_http_info(body, opts)
38
+ def ping(body = {})
39
+ data = @api_client.call_api(:POST, '/users/ping', body)
92
40
  data
93
41
  end
94
42
 
95
- # /users/ping2
96
- # Validate an API key and respond to a ping (anal JSON parser version)
43
+ # Ping 2
44
+ # Validate an API key and respond to a ping (JSON parser version).
97
45
  # @param body
98
46
  # @param [Hash] opts the optional parameters
99
47
  # @return [Array<(InlineResponse20070, Fixnum, Hash)>] InlineResponse20070 data, response status code and response headers
100
- def ping2_with_http_info(body, opts = {})
101
- # add api key to request body
102
- body[:key] = @api_key
103
-
104
- # resource path
105
- local_var_path = '/users/ping2'
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 => 'InlineResponse20070')
113
- return data, status_code, headers
114
- end
115
- # /users/senders
116
- # Return the senders that have tried to use this account, both verified and unverified
117
- # @param body
118
- # @param [Hash] opts the optional parameters
119
- # @return [Array<InlineResponse20040>]
120
- def senders(body = {}, opts = {})
121
- data, _status_code, _headers = senders_with_http_info(body, opts)
48
+ def ping2(body = {})
49
+ data = @api_client.call_api(:POST, '/users/ping2', body)
122
50
  data
123
51
  end
124
52
 
125
- # /users/senders
126
- # Return the senders that have tried to use this account, both verified and unverified
53
+ # List account senders
54
+ # Return the senders that have tried to use this account, both verified and unverified.
127
55
  # @param body
128
56
  # @param [Hash] opts the optional parameters
129
57
  # @return [Array<(Array<InlineResponse20040>, Fixnum, Hash)>] Array<InlineResponse20040> data, response status code and response headers
130
- def senders_with_http_info(body, opts = {})
131
- # add api key to request body
132
- body[:key] = @api_key
133
-
134
- # resource path
135
- local_var_path = '/users/senders'
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<InlineResponse20040>')
143
- return data, status_code, headers
58
+ def senders(body = {})
59
+ data = @api_client.call_api(:POST, '/users/senders', body)
60
+ data
144
61
  end
145
62
  end
146
63
  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.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 WebhooksApi
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
- # /webhooks/add
26
- # Add a new webhook
27
- # @param body
28
- # @param [Hash] opts the optional parameters
29
- # @return [InlineResponse20072]
30
- def add(body = {}, opts = {})
31
- data, _status_code, _headers = add_with_http_info(body, opts)
32
- data
33
- end
34
22
 
35
- # /webhooks/add
36
- # Add a new webhook
23
+ # Add webhook
24
+ # Add a new webhook.
37
25
  # @param body
38
26
  # @param [Hash] opts the optional parameters
39
27
  # @return [Array<(InlineResponse20072, Fixnum, Hash)>] InlineResponse20072 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 = '/webhooks/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 => 'InlineResponse20072')
53
- return data, status_code, headers
54
- end
55
- # /webhooks/delete
56
- # Delete an existing webhook
57
- # @param body
58
- # @param [Hash] opts the optional parameters
59
- # @return [InlineResponse20075]
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, '/webhooks/add', body)
62
30
  data
63
31
  end
64
32
 
65
- # /webhooks/delete
66
- # Delete an existing webhook
33
+ # Delete webhook
34
+ # Delete an existing webhook.
67
35
  # @param body
68
36
  # @param [Hash] opts the optional parameters
69
37
  # @return [Array<(InlineResponse20075, Fixnum, Hash)>] InlineResponse20075 data, response status code and response headers
70
- def delete_with_http_info(body, opts = {})
71
- # add api key to request body
72
- body[:key] = @api_key
73
-
74
- # resource path
75
- local_var_path = '/webhooks/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 => 'InlineResponse20075')
83
- return data, status_code, headers
84
- end
85
- # /webhooks/info
86
- # Given the ID of an existing webhook, return the data about it
87
- # @param body
88
- # @param [Hash] opts the optional parameters
89
- # @return [InlineResponse20073]
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, '/webhooks/delete', body)
92
40
  data
93
41
  end
94
42
 
95
- # /webhooks/info
96
- # Given the ID of an existing webhook, return the data about it
43
+ # Get webhook info
44
+ # Given the ID of an existing webhook, return the data about it.
97
45
  # @param body
98
46
  # @param [Hash] opts the optional parameters
99
47
  # @return [Array<(InlineResponse20073, Fixnum, Hash)>] InlineResponse20073 data, response status code and response headers
100
- def info_with_http_info(body, opts = {})
101
- # add api key to request body
102
- body[:key] = @api_key
103
-
104
- # resource path
105
- local_var_path = '/webhooks/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 => 'InlineResponse20073')
113
- return data, status_code, headers
114
- end
115
- # /webhooks/list
116
- # Get the list of all webhooks defined on the account
117
- # @param body
118
- # @param [Hash] opts the optional parameters
119
- # @return [Array<InlineResponse20071>]
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, '/webhooks/info', body)
122
50
  data
123
51
  end
124
52
 
125
- # /webhooks/list
126
- # Get the list of all webhooks defined on the account
53
+ # List webhooks
54
+ # Get the list of all webhooks defined on the account.
127
55
  # @param body
128
56
  # @param [Hash] opts the optional parameters
129
57
  # @return [Array<(Array<InlineResponse20071>, Fixnum, Hash)>] Array<InlineResponse20071> data, response status code and response headers
130
- def list_with_http_info(body, opts = {})
131
- # add api key to request body
132
- body[:key] = @api_key
133
-
134
- # resource path
135
- local_var_path = '/webhooks/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<InlineResponse20071>')
143
- return data, status_code, headers
144
- end
145
- # /webhooks/update
146
- # Update an existing webhook
147
- # @param body
148
- # @param [Hash] opts the optional parameters
149
- # @return [InlineResponse20074]
150
- def update(body = {}, opts = {})
151
- data, _status_code, _headers = update_with_http_info(body, opts)
58
+ def list(body = {})
59
+ data = @api_client.call_api(:POST, '/webhooks/list', body)
152
60
  data
153
61
  end
154
62
 
155
- # /webhooks/update
156
- # Update an existing webhook
63
+ # Update webhook
64
+ # Update an existing webhook.
157
65
  # @param body
158
66
  # @param [Hash] opts the optional parameters
159
67
  # @return [Array<(InlineResponse20074, Fixnum, Hash)>] InlineResponse20074 data, response status code and response headers
160
- def update_with_http_info(body, opts = {})
161
- # add api key to request body
162
- body[:key] = @api_key
163
-
164
- # resource path
165
- local_var_path = '/webhooks/update'
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 => 'InlineResponse20074')
173
- return data, status_code, headers
68
+ def update(body = {})
69
+ data = @api_client.call_api(:POST, '/webhooks/update', body)
70
+ data
174
71
  end
175
72
  end
176
73
  end