MailchimpTransactional 1.0.9 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/LICENSE +53 -0
- data/MailchimpTransactional.gemspec +4 -4
- data/README.md +9 -9
- data/lib/MailchimpTransactional.rb +60 -76
- data/lib/MailchimpTransactional/api/exports_api.rb +14 -97
- data/lib/MailchimpTransactional/api/inbound_api.rb +22 -169
- data/lib/MailchimpTransactional/api/ips_api.rb +30 -241
- data/lib/MailchimpTransactional/api/messages_api.rb +26 -205
- data/lib/MailchimpTransactional/api/metadata_api.rb +12 -79
- data/lib/MailchimpTransactional/api/rejects_api.rb +10 -61
- data/lib/MailchimpTransactional/api/senders_api.rb +18 -133
- data/lib/MailchimpTransactional/api/subaccounts_api.rb +18 -133
- data/lib/MailchimpTransactional/api/tags_api.rb +14 -97
- data/lib/MailchimpTransactional/api/templates_api.rb +20 -151
- data/lib/MailchimpTransactional/api/urls_api.rb +18 -117
- data/lib/MailchimpTransactional/api/users_api.rb +12 -79
- data/lib/MailchimpTransactional/api/webhooks_api.rb +14 -97
- data/lib/MailchimpTransactional/api/whitelists_api.rb +10 -61
- data/lib/MailchimpTransactional/api_client.rb +31 -116
- data/lib/MailchimpTransactional/api_error.rb +2 -2
- data/lib/MailchimpTransactional/configuration.rb +2 -2
- data/lib/MailchimpTransactional/version.rb +3 -3
- metadata +7 -12
@@ -3,8 +3,8 @@
|
|
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.
|
7
|
-
Contact: apihelp@
|
6
|
+
OpenAPI spec version: 1.0.15
|
7
|
+
Contact: apihelp@mailchimp.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
10
10
|
|
@@ -16,45 +16,17 @@ module MailchimpTransactional
|
|
16
16
|
class TemplatesApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
|
-
|
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
|
41
|
-
|
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
|
67
|
-
|
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
|
93
|
-
|
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
|
119
|
-
|
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
|
145
|
-
|
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
|
171
|
-
|
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
|
197
|
-
|
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
|
223
|
-
|
224
|
-
|
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,8 +3,8 @@
|
|
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.
|
7
|
-
Contact: apihelp@
|
6
|
+
OpenAPI spec version: 1.0.15
|
7
|
+
Contact: apihelp@mailchimp.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
10
10
|
|
@@ -16,45 +16,17 @@ module MailchimpTransactional
|
|
16
16
|
class UrlsApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
|
-
|
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
|
41
|
-
|
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,76 +35,28 @@ 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
|
67
|
-
|
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
|
|
87
|
-
# List most clicked
|
43
|
+
# List most clicked urls
|
88
44
|
# Get the 100 most clicked URLs.
|
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
|
93
|
-
|
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
|
|
113
|
-
# Search most clicked
|
53
|
+
# Search most clicked urls
|
114
54
|
# Return the 100 most clicked URLs that match the search query given.
|
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
|
119
|
-
|
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
|
145
|
-
|
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
|
171
|
-
|
172
|
-
|
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
|
@@ -3,8 +3,8 @@
|
|
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.
|
7
|
-
Contact: apihelp@
|
6
|
+
OpenAPI spec version: 1.0.15
|
7
|
+
Contact: apihelp@mailchimp.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
10
10
|
|
@@ -16,45 +16,17 @@ module MailchimpTransactional
|
|
16
16
|
class UsersApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
|
-
|
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
|
-
# Get user 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 = info_with_http_info(body, opts)
|
32
|
-
data
|
33
|
-
end
|
34
22
|
|
35
23
|
# Get user info
|
36
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
|
41
|
-
|
42
|
-
body[:key] = @api_key
|
43
|
-
|
44
|
-
# resource path
|
45
|
-
local_var_path = '/users/info'
|
46
|
-
|
47
|
-
# http body (model)
|
48
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
49
|
-
return data
|
50
|
-
end
|
51
|
-
# Ping
|
52
|
-
# Validate an API key and respond to a ping.
|
53
|
-
# @param body
|
54
|
-
# @param [Hash] opts the optional parameters
|
55
|
-
# @return [String]
|
56
|
-
def ping(body = {}, opts = {})
|
57
|
-
data = ping_with_http_info(body, opts)
|
28
|
+
def info(body = {})
|
29
|
+
data = @api_client.call_api(:POST, '/users/info', 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<(String, Fixnum, Hash)>] String data, response status code and response headers
|
66
|
-
def
|
67
|
-
|
68
|
-
body[:key] = @api_key
|
69
|
-
|
70
|
-
# resource path
|
71
|
-
local_var_path = '/users/ping'
|
72
|
-
|
73
|
-
# http body (model)
|
74
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
75
|
-
return data
|
76
|
-
end
|
77
|
-
# Ping 2
|
78
|
-
# Validate an API key and respond to a ping (JSON parser version).
|
79
|
-
# @param body
|
80
|
-
# @param [Hash] opts the optional parameters
|
81
|
-
# @return [InlineResponse20070]
|
82
|
-
def ping2(body = {}, opts = {})
|
83
|
-
data = ping2_with_http_info(body, opts)
|
38
|
+
def ping(body = {})
|
39
|
+
data = @api_client.call_api(:POST, '/users/ping', 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<(InlineResponse20070, Fixnum, Hash)>] InlineResponse20070 data, response status code and response headers
|
92
|
-
def
|
93
|
-
|
94
|
-
body[:key] = @api_key
|
95
|
-
|
96
|
-
# resource path
|
97
|
-
local_var_path = '/users/ping2'
|
98
|
-
|
99
|
-
# http body (model)
|
100
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
101
|
-
return data
|
102
|
-
end
|
103
|
-
# List account senders
|
104
|
-
# Return the senders that have tried to use this account, both verified and unverified.
|
105
|
-
# @param body
|
106
|
-
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [Array<InlineResponse20040>]
|
108
|
-
def senders(body = {}, opts = {})
|
109
|
-
data = senders_with_http_info(body, opts)
|
48
|
+
def ping2(body = {})
|
49
|
+
data = @api_client.call_api(:POST, '/users/ping2', body)
|
110
50
|
data
|
111
51
|
end
|
112
52
|
|
@@ -115,16 +55,9 @@ module MailchimpTransactional
|
|
115
55
|
# @param body
|
116
56
|
# @param [Hash] opts the optional parameters
|
117
57
|
# @return [Array<(Array<InlineResponse20040>, Fixnum, Hash)>] Array<InlineResponse20040> data, response status code and response headers
|
118
|
-
def
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
# resource path
|
123
|
-
local_var_path = '/users/senders'
|
124
|
-
|
125
|
-
# http body (model)
|
126
|
-
data = @api_client.call_api(:POST, local_var_path, :body => body)
|
127
|
-
return data
|
58
|
+
def senders(body = {})
|
59
|
+
data = @api_client.call_api(:POST, '/users/senders', body)
|
60
|
+
data
|
128
61
|
end
|
129
62
|
end
|
130
63
|
end
|