MailchimpTransactional 1.0.6 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MailchimpTransactional.gemspec +1 -1
- data/README.md +27 -8
- data/lib/MailchimpTransactional.rb +1 -1
- data/lib/MailchimpTransactional/api/exports_api.rb +26 -46
- data/lib/MailchimpTransactional/api/inbound_api.rb +60 -96
- data/lib/MailchimpTransactional/api/ips_api.rb +70 -122
- data/lib/MailchimpTransactional/api/messages_api.rb +74 -118
- data/lib/MailchimpTransactional/api/metadata_api.rb +23 -39
- data/lib/MailchimpTransactional/api/rejects_api.rb +16 -28
- data/lib/MailchimpTransactional/api/senders_api.rb +46 -74
- data/lib/MailchimpTransactional/api/subaccounts_api.rb +46 -74
- data/lib/MailchimpTransactional/api/tags_api.rb +34 -54
- data/lib/MailchimpTransactional/api/templates_api.rb +53 -85
- data/lib/MailchimpTransactional/api/urls_api.rb +43 -67
- data/lib/MailchimpTransactional/api/users_api.rb +29 -45
- data/lib/MailchimpTransactional/api/webhooks_api.rb +36 -56
- data/lib/MailchimpTransactional/api/whitelists_api.rb +16 -28
- data/lib/MailchimpTransactional/api_client.rb +1 -1
- data/lib/MailchimpTransactional/api_error.rb +1 -1
- data/lib/MailchimpTransactional/configuration.rb +1 -1
- data/lib/MailchimpTransactional/version.rb +2 -2
- metadata +2 -2
@@ -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
|
+
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
|
-
#
|
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
|
31
|
+
data = add_tracking_domain_with_http_info(body, opts)
|
32
32
|
data
|
33
33
|
end
|
34
34
|
|
35
|
-
#
|
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
|
-
|
49
|
-
data
|
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
|
-
#
|
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
|
57
|
+
data = check_tracking_domain_with_http_info(body, opts)
|
62
58
|
data
|
63
59
|
end
|
64
60
|
|
65
|
-
#
|
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
|
-
|
79
|
-
data
|
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
|
-
#
|
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
|
83
|
+
data = list_with_http_info(body, opts)
|
92
84
|
data
|
93
85
|
end
|
94
86
|
|
95
|
-
#
|
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
|
-
|
109
|
-
data
|
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
|
-
#
|
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
|
109
|
+
data = search_with_http_info(body, opts)
|
122
110
|
data
|
123
111
|
end
|
124
112
|
|
125
|
-
#
|
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
|
-
|
139
|
-
data
|
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
|
-
#
|
146
|
-
# Return the recent history (hourly stats for the last 30 days) for a
|
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
|
135
|
+
data = time_series_with_http_info(body, opts)
|
152
136
|
data
|
153
137
|
end
|
154
138
|
|
155
|
-
#
|
156
|
-
# Return the recent history (hourly stats for the last 30 days) for a
|
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
|
-
|
169
|
-
data
|
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
|
-
#
|
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
|
161
|
+
data = tracking_domains_with_http_info(body, opts)
|
182
162
|
data
|
183
163
|
end
|
184
164
|
|
185
|
-
#
|
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
|
-
|
199
|
-
data
|
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
|
+
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
|
-
#
|
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
|
31
|
+
data = info_with_http_info(body, opts)
|
32
32
|
data
|
33
33
|
end
|
34
34
|
|
35
|
-
#
|
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
|
-
|
49
|
-
data
|
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
|
-
#
|
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
|
57
|
+
data = ping_with_http_info(body, opts)
|
62
58
|
data
|
63
59
|
end
|
64
60
|
|
65
|
-
#
|
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
|
-
|
79
|
-
data
|
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
|
-
#
|
86
|
-
# Validate an API key and respond to a ping (
|
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
|
83
|
+
data = ping2_with_http_info(body, opts)
|
92
84
|
data
|
93
85
|
end
|
94
86
|
|
95
|
-
#
|
96
|
-
# Validate an API key and respond to a ping (
|
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
|
-
|
109
|
-
data
|
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
|
-
#
|
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
|
109
|
+
data = senders_with_http_info(body, opts)
|
122
110
|
data
|
123
111
|
end
|
124
112
|
|
125
|
-
#
|
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
|
-
|
139
|
-
data
|
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
|
+
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
|
-
#
|
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
|
31
|
+
data = add_with_http_info(body, opts)
|
32
32
|
data
|
33
33
|
end
|
34
34
|
|
35
|
-
#
|
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
|
-
|
49
|
-
data
|
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
|
-
#
|
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
|
57
|
+
data = delete_with_http_info(body, opts)
|
62
58
|
data
|
63
59
|
end
|
64
60
|
|
65
|
-
#
|
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
|
-
|
79
|
-
data
|
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
|
-
#
|
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
|
83
|
+
data = info_with_http_info(body, opts)
|
92
84
|
data
|
93
85
|
end
|
94
86
|
|
95
|
-
#
|
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
|
-
|
109
|
-
data
|
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
|
-
#
|
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
|
109
|
+
data = list_with_http_info(body, opts)
|
122
110
|
data
|
123
111
|
end
|
124
112
|
|
125
|
-
#
|
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
|
-
|
139
|
-
data
|
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
|
-
#
|
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
|
135
|
+
data = update_with_http_info(body, opts)
|
152
136
|
data
|
153
137
|
end
|
154
138
|
|
155
|
-
#
|
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
|
-
|
169
|
-
data
|
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
|