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
- # /urls/add-tracking-domain
26
- # Add a tracking domain to your account
25
+ # Add tracking domains
26
+ # Add a tracking domain to your account.
27
27
  # @param body
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @return [InlineResponse20068]
30
30
  def add_tracking_domain(body = {}, opts = {})
31
- data, _status_code, _headers = add_tracking_domain_with_http_info(body, opts)
31
+ data = add_tracking_domain_with_http_info(body, opts)
32
32
  data
33
33
  end
34
34
 
35
- # /urls/add-tracking-domain
36
- # Add a tracking domain to your account
35
+ # Add tracking domains
36
+ # Add a tracking domain to your account.
37
37
  # @param body
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @return [Array<(InlineResponse20068, Fixnum, Hash)>] InlineResponse20068 data, response status code and response headers
@@ -45,25 +45,21 @@ module MailchimpTransactional
45
45
  local_var_path = '/urls/add-tracking-domain'
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 => 'InlineResponse20068')
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
- # /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
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.
57
53
  # @param body
58
54
  # @param [Hash] opts the optional parameters
59
55
  # @return [InlineResponse20068]
60
56
  def check_tracking_domain(body = {}, opts = {})
61
- data, _status_code, _headers = check_tracking_domain_with_http_info(body, opts)
57
+ data = check_tracking_domain_with_http_info(body, opts)
62
58
  data
63
59
  end
64
60
 
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
61
+ # Check cname settings
62
+ # Checks the CNAME settings for a tracking domain. The domain must have been added already with the add-tracking-domain call.
67
63
  # @param body
68
64
  # @param [Hash] opts the optional parameters
69
65
  # @return [Array<(InlineResponse20068, Fixnum, Hash)>] InlineResponse20068 data, response status code and response headers
@@ -75,25 +71,21 @@ module MailchimpTransactional
75
71
  local_var_path = '/urls/check-tracking-domain'
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 => 'InlineResponse20068')
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
- # /urls/list
86
- # Get the 100 most clicked URLs
77
+ # List most clicked ur ls
78
+ # Get the 100 most clicked URLs.
87
79
  # @param body
88
80
  # @param [Hash] opts the optional parameters
89
81
  # @return [Array<InlineResponse20064>]
90
82
  def list(body = {}, opts = {})
91
- data, _status_code, _headers = list_with_http_info(body, opts)
83
+ data = list_with_http_info(body, opts)
92
84
  data
93
85
  end
94
86
 
95
- # /urls/list
96
- # Get the 100 most clicked URLs
87
+ # List most clicked ur ls
88
+ # Get the 100 most clicked URLs.
97
89
  # @param body
98
90
  # @param [Hash] opts the optional parameters
99
91
  # @return [Array<(Array<InlineResponse20064>, Fixnum, Hash)>] Array<InlineResponse20064> data, response status code and response headers
@@ -105,25 +97,21 @@ module MailchimpTransactional
105
97
  local_var_path = '/urls/list'
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 => 'Array<InlineResponse20064>')
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
- # /urls/search (deprecated)
116
- # Return the 100 most clicked URLs that match the search query given
103
+ # Search most clicked ur ls
104
+ # Return the 100 most clicked URLs that match the search query given.
117
105
  # @param body
118
106
  # @param [Hash] opts the optional parameters
119
107
  # @return [Array<InlineResponse20065>]
120
108
  def search(body = {}, opts = {})
121
- data, _status_code, _headers = search_with_http_info(body, opts)
109
+ data = search_with_http_info(body, opts)
122
110
  data
123
111
  end
124
112
 
125
- # /urls/search (deprecated)
126
- # Return the 100 most clicked URLs that match the search query given
113
+ # Search most clicked ur ls
114
+ # Return the 100 most clicked URLs that match the search query given.
127
115
  # @param body
128
116
  # @param [Hash] opts the optional parameters
129
117
  # @return [Array<(Array<InlineResponse20065>, Fixnum, Hash)>] Array<InlineResponse20065> data, response status code and response headers
@@ -135,25 +123,21 @@ module MailchimpTransactional
135
123
  local_var_path = '/urls/search'
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<InlineResponse20065>')
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
- # /urls/time-series
146
- # Return the recent history (hourly stats for the last 30 days) for a url
129
+ # Get url history
130
+ # Return the recent history (hourly stats for the last 30 days) for a URL
147
131
  # @param body
148
132
  # @param [Hash] opts the optional parameters
149
133
  # @return [Array<InlineResponse20066>]
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
- # /urls/time-series
156
- # Return the recent history (hourly stats for the last 30 days) for a url
139
+ # Get url history
140
+ # Return the recent history (hourly stats for the last 30 days) for a URL
157
141
  # @param body
158
142
  # @param [Hash] opts the optional parameters
159
143
  # @return [Array<(Array<InlineResponse20066>, Fixnum, Hash)>] Array<InlineResponse20066> data, response status code and response headers
@@ -165,25 +149,21 @@ module MailchimpTransactional
165
149
  local_var_path = '/urls/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<InlineResponse20066>')
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
- # /urls/tracking-domains
176
- # Get the list of tracking domains set up for this account
155
+ # List tracking domains
156
+ # Get the list of tracking domains set up for this account.
177
157
  # @param body
178
158
  # @param [Hash] opts the optional parameters
179
159
  # @return [Array<InlineResponse20067>]
180
160
  def tracking_domains(body = {}, opts = {})
181
- data, _status_code, _headers = tracking_domains_with_http_info(body, opts)
161
+ data = tracking_domains_with_http_info(body, opts)
182
162
  data
183
163
  end
184
164
 
185
- # /urls/tracking-domains
186
- # Get the list of tracking domains set up for this account
165
+ # List tracking domains
166
+ # Get the list of tracking domains set up for this account.
187
167
  # @param body
188
168
  # @param [Hash] opts the optional parameters
189
169
  # @return [Array<(Array<InlineResponse20067>, Fixnum, Hash)>] Array<InlineResponse20067> data, response status code and response headers
@@ -195,12 +175,8 @@ module MailchimpTransactional
195
175
  local_var_path = '/urls/tracking-domains'
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 => 'Array<InlineResponse20067>')
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
181
  end
206
182
  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
- # /users/info
26
- # Return the information about the API-connected user
25
+ # Get user info
26
+ # Return the information about the API-connected user.
27
27
  # @param body
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @return [InlineResponse20069]
30
30
  def info(body = {}, opts = {})
31
- data, _status_code, _headers = info_with_http_info(body, opts)
31
+ data = info_with_http_info(body, opts)
32
32
  data
33
33
  end
34
34
 
35
- # /users/info
36
- # Return the information about the API-connected user
35
+ # Get user info
36
+ # Return the information about the API-connected user.
37
37
  # @param body
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @return [Array<(InlineResponse20069, Fixnum, Hash)>] InlineResponse20069 data, response status code and response headers
@@ -45,25 +45,21 @@ module MailchimpTransactional
45
45
  local_var_path = '/users/info'
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 => 'InlineResponse20069')
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
- # /users/ping
56
- # Validate an API key and respond to a ping
51
+ # Ping
52
+ # Validate an API key and respond to a ping.
57
53
  # @param body
58
54
  # @param [Hash] opts the optional parameters
59
55
  # @return [String]
60
56
  def ping(body = {}, opts = {})
61
- data, _status_code, _headers = ping_with_http_info(body, opts)
57
+ data = ping_with_http_info(body, opts)
62
58
  data
63
59
  end
64
60
 
65
- # /users/ping
66
- # Validate an API key and respond to a ping
61
+ # Ping
62
+ # Validate an API key and respond to a ping.
67
63
  # @param body
68
64
  # @param [Hash] opts the optional parameters
69
65
  # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
@@ -75,25 +71,21 @@ module MailchimpTransactional
75
71
  local_var_path = '/users/ping'
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 => 'String')
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
- # /users/ping2
86
- # Validate an API key and respond to a ping (anal JSON parser version)
77
+ # Ping 2
78
+ # Validate an API key and respond to a ping (JSON parser version).
87
79
  # @param body
88
80
  # @param [Hash] opts the optional parameters
89
81
  # @return [InlineResponse20070]
90
82
  def ping2(body = {}, opts = {})
91
- data, _status_code, _headers = ping2_with_http_info(body, opts)
83
+ data = ping2_with_http_info(body, opts)
92
84
  data
93
85
  end
94
86
 
95
- # /users/ping2
96
- # Validate an API key and respond to a ping (anal JSON parser version)
87
+ # Ping 2
88
+ # Validate an API key and respond to a ping (JSON parser version).
97
89
  # @param body
98
90
  # @param [Hash] opts the optional parameters
99
91
  # @return [Array<(InlineResponse20070, Fixnum, Hash)>] InlineResponse20070 data, response status code and response headers
@@ -105,25 +97,21 @@ module MailchimpTransactional
105
97
  local_var_path = '/users/ping2'
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 => 'InlineResponse20070')
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
- # /users/senders
116
- # Return the senders that have tried to use this account, both verified and unverified
103
+ # List account senders
104
+ # Return the senders that have tried to use this account, both verified and unverified.
117
105
  # @param body
118
106
  # @param [Hash] opts the optional parameters
119
107
  # @return [Array<InlineResponse20040>]
120
108
  def senders(body = {}, opts = {})
121
- data, _status_code, _headers = senders_with_http_info(body, opts)
109
+ data = senders_with_http_info(body, opts)
122
110
  data
123
111
  end
124
112
 
125
- # /users/senders
126
- # Return the senders that have tried to use this account, both verified and unverified
113
+ # List account senders
114
+ # Return the senders that have tried to use this account, both verified and unverified.
127
115
  # @param body
128
116
  # @param [Hash] opts the optional parameters
129
117
  # @return [Array<(Array<InlineResponse20040>, Fixnum, Hash)>] Array<InlineResponse20040> data, response status code and response headers
@@ -135,12 +123,8 @@ module MailchimpTransactional
135
123
  local_var_path = '/users/senders'
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<InlineResponse20040>')
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
  end
146
130
  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
- # /webhooks/add
26
- # Add a new webhook
25
+ # Add webhook
26
+ # Add a new webhook.
27
27
  # @param body
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @return [InlineResponse20072]
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
- # /webhooks/add
36
- # Add a new webhook
35
+ # Add webhook
36
+ # Add a new webhook.
37
37
  # @param body
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @return [Array<(InlineResponse20072, Fixnum, Hash)>] InlineResponse20072 data, response status code and response headers
@@ -45,25 +45,21 @@ module MailchimpTransactional
45
45
  local_var_path = '/webhooks/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 => 'InlineResponse20072')
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
- # /webhooks/delete
56
- # Delete an existing webhook
51
+ # Delete webhook
52
+ # Delete an existing webhook.
57
53
  # @param body
58
54
  # @param [Hash] opts the optional parameters
59
55
  # @return [InlineResponse20075]
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
- # /webhooks/delete
66
- # Delete an existing webhook
61
+ # Delete webhook
62
+ # Delete an existing webhook.
67
63
  # @param body
68
64
  # @param [Hash] opts the optional parameters
69
65
  # @return [Array<(InlineResponse20075, Fixnum, Hash)>] InlineResponse20075 data, response status code and response headers
@@ -75,25 +71,21 @@ module MailchimpTransactional
75
71
  local_var_path = '/webhooks/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 => 'InlineResponse20075')
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
- # /webhooks/info
86
- # Given the ID of an existing webhook, return the data about it
77
+ # Get webhook info
78
+ # Given the ID of an existing webhook, return the data about it.
87
79
  # @param body
88
80
  # @param [Hash] opts the optional parameters
89
81
  # @return [InlineResponse20073]
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
- # /webhooks/info
96
- # Given the ID of an existing webhook, return the data about it
87
+ # Get webhook info
88
+ # Given the ID of an existing webhook, return the data about it.
97
89
  # @param body
98
90
  # @param [Hash] opts the optional parameters
99
91
  # @return [Array<(InlineResponse20073, Fixnum, Hash)>] InlineResponse20073 data, response status code and response headers
@@ -105,25 +97,21 @@ module MailchimpTransactional
105
97
  local_var_path = '/webhooks/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 => 'InlineResponse20073')
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
- # /webhooks/list
116
- # Get the list of all webhooks defined on the account
103
+ # List webhooks
104
+ # Get the list of all webhooks defined on the account.
117
105
  # @param body
118
106
  # @param [Hash] opts the optional parameters
119
107
  # @return [Array<InlineResponse20071>]
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
- # /webhooks/list
126
- # Get the list of all webhooks defined on the account
113
+ # List webhooks
114
+ # Get the list of all webhooks defined on the account.
127
115
  # @param body
128
116
  # @param [Hash] opts the optional parameters
129
117
  # @return [Array<(Array<InlineResponse20071>, Fixnum, Hash)>] Array<InlineResponse20071> data, response status code and response headers
@@ -135,25 +123,21 @@ module MailchimpTransactional
135
123
  local_var_path = '/webhooks/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<InlineResponse20071>')
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
- # /webhooks/update
146
- # Update an existing webhook
129
+ # Update webhook
130
+ # Update an existing webhook.
147
131
  # @param body
148
132
  # @param [Hash] opts the optional parameters
149
133
  # @return [InlineResponse20074]
150
134
  def update(body = {}, opts = {})
151
- data, _status_code, _headers = update_with_http_info(body, opts)
135
+ data = update_with_http_info(body, opts)
152
136
  data
153
137
  end
154
138
 
155
- # /webhooks/update
156
- # Update an existing webhook
139
+ # Update webhook
140
+ # Update an existing webhook.
157
141
  # @param body
158
142
  # @param [Hash] opts the optional parameters
159
143
  # @return [Array<(InlineResponse20074, Fixnum, Hash)>] InlineResponse20074 data, response status code and response headers
@@ -165,12 +149,8 @@ module MailchimpTransactional
165
149
  local_var_path = '/webhooks/update'
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 => 'InlineResponse20074')
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