MailchimpMarketing 3.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/MailchimpMarketing.gemspec +45 -0
  4. data/README.md +378 -0
  5. data/lib/MailchimpMarketing.rb +162 -0
  6. data/lib/MailchimpMarketing/api/activity_feed_api.rb +57 -0
  7. data/lib/MailchimpMarketing/api/authorized_apps_api.rb +78 -0
  8. data/lib/MailchimpMarketing/api/automations_api.rb +351 -0
  9. data/lib/MailchimpMarketing/api/batch_webhooks_api.rb +111 -0
  10. data/lib/MailchimpMarketing/api/batches_api.rb +94 -0
  11. data/lib/MailchimpMarketing/api/campaign_folders_api.rb +111 -0
  12. data/lib/MailchimpMarketing/api/campaigns_api.rb +414 -0
  13. data/lib/MailchimpMarketing/api/connected_sites_api.rb +110 -0
  14. data/lib/MailchimpMarketing/api/conversations_api.rb +124 -0
  15. data/lib/MailchimpMarketing/api/dashboard_api.rb +128 -0
  16. data/lib/MailchimpMarketing/api/ecommerce_api.rb +1139 -0
  17. data/lib/MailchimpMarketing/api/external_auths_api.rb +78 -0
  18. data/lib/MailchimpMarketing/api/facebook_ads_api.rb +66 -0
  19. data/lib/MailchimpMarketing/api/file_manager_api.rb +224 -0
  20. data/lib/MailchimpMarketing/api/landing_pages_api.rb +164 -0
  21. data/lib/MailchimpMarketing/api/lists_api.rb +1302 -0
  22. data/lib/MailchimpMarketing/api/ping_api.rb +39 -0
  23. data/lib/MailchimpMarketing/api/postcards_api.rb +45 -0
  24. data/lib/MailchimpMarketing/api/reporting_api.rb +142 -0
  25. data/lib/MailchimpMarketing/api/reports_api.rb +464 -0
  26. data/lib/MailchimpMarketing/api/root_api.rb +41 -0
  27. data/lib/MailchimpMarketing/api/search_campaigns_api.rb +43 -0
  28. data/lib/MailchimpMarketing/api/search_members_api.rb +44 -0
  29. data/lib/MailchimpMarketing/api/template_folders_api.rb +111 -0
  30. data/lib/MailchimpMarketing/api/templates_api.rb +137 -0
  31. data/lib/MailchimpMarketing/api/verified_domains_api.rb +104 -0
  32. data/lib/MailchimpMarketing/api_client.rb +214 -0
  33. data/lib/MailchimpMarketing/api_error.rb +38 -0
  34. data/lib/MailchimpMarketing/configuration.rb +209 -0
  35. data/lib/MailchimpMarketing/version.rb +15 -0
  36. metadata +257 -0
@@ -0,0 +1,57 @@
1
+ =begin
2
+ #Mailchimp Marketing API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 3.0.7
7
+ Contact: apihelp@mailchimp.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+ require 'json'
15
+
16
+ module MailchimpMarketing
17
+ class ActivityFeedApi
18
+ attr_accessor :api_client
19
+
20
+ def initialize(api_client)
21
+ @api_client = api_client
22
+ end
23
+
24
+ # List activity feed resources
25
+ def get(opts = {})
26
+
27
+ query_params = {}
28
+ form_params = {}
29
+ post_body = nil
30
+
31
+ local_var_path = '/activity-feed'
32
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
33
+ :query_params => query_params,
34
+ :form_params => form_params,
35
+ :body => post_body)
36
+ return data, status_code, headers
37
+ end
38
+
39
+ # Get latest chimp chatter
40
+ def get_chimp_chatter(opts = {})
41
+ fail ArgumentError, 'invalid value for "opts[:"count"]", must be smaller than or equal to 1000.' if !opts[:'count'].nil? && opts[:'count'] > 1000
42
+
43
+ query_params = {}
44
+ query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
45
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
46
+ form_params = {}
47
+ post_body = nil
48
+
49
+ local_var_path = '/activity-feed/chimp-chatter'
50
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
51
+ :query_params => query_params,
52
+ :form_params => form_params,
53
+ :body => post_body)
54
+ return data, status_code, headers
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,78 @@
1
+ =begin
2
+ #Mailchimp Marketing API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 3.0.7
7
+ Contact: apihelp@mailchimp.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+ require 'json'
15
+
16
+ module MailchimpMarketing
17
+ class AuthorizedAppsApi
18
+ attr_accessor :api_client
19
+
20
+ def initialize(api_client)
21
+ @api_client = api_client
22
+ end
23
+
24
+ # List authorized apps
25
+ def list(opts = {})
26
+ fail ArgumentError, 'invalid value for "opts[:"count"]", must be smaller than or equal to 1000.' if !opts[:'count'].nil? && opts[:'count'] > 1000
27
+
28
+ query_params = {}
29
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
30
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
31
+ query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
32
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
33
+ form_params = {}
34
+ post_body = nil
35
+
36
+ local_var_path = '/authorized-apps'
37
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
38
+ :query_params => query_params,
39
+ :form_params => form_params,
40
+ :body => post_body)
41
+ return data, status_code, headers
42
+ end
43
+
44
+ # Get authorized app info
45
+ def get(app_id, opts = {})
46
+ fail ArgumentError, "Missing required param: 'app_id'" if app_id.nil?
47
+
48
+ query_params = {}
49
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
50
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
51
+ form_params = {}
52
+ post_body = nil
53
+
54
+ local_var_path = '/authorized-apps/{app_id}'.sub('{' + 'app_id' + '}', app_id.to_s)
55
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
56
+ :query_params => query_params,
57
+ :form_params => form_params,
58
+ :body => post_body)
59
+ return data, status_code, headers
60
+ end
61
+
62
+ # Link application
63
+ def link(client_details, opts = {})
64
+ fail ArgumentError, "Missing required param: 'client_details'" if client_details.nil?
65
+
66
+ query_params = {}
67
+ form_params = {}
68
+ post_body = @api_client.object_to_http_body(client_details)
69
+
70
+ local_var_path = '/authorized-apps'
71
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body)
75
+ return data, status_code, headers
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,351 @@
1
+ =begin
2
+ #Mailchimp Marketing API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 3.0.7
7
+ Contact: apihelp@mailchimp.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+ require 'json'
15
+
16
+ module MailchimpMarketing
17
+ class AutomationsApi
18
+ attr_accessor :api_client
19
+
20
+ def initialize(api_client)
21
+ @api_client = api_client
22
+ end
23
+
24
+ # Archive automation
25
+ def archive(workflow_id, opts = {})
26
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
27
+
28
+ query_params = {}
29
+ form_params = {}
30
+ post_body = nil
31
+
32
+ local_var_path = '/automations/{workflow_id}/actions/archive'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
33
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
34
+ :query_params => query_params,
35
+ :form_params => form_params,
36
+ :body => post_body)
37
+ return data, status_code, headers
38
+ end
39
+
40
+ # Delete workflow email
41
+ def delete_workflow_email(workflow_id, workflow_email_id, opts = {})
42
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
43
+ fail ArgumentError, "Missing required param: 'workflow_email_id'" if workflow_email_id.nil?
44
+
45
+ query_params = {}
46
+ form_params = {}
47
+ post_body = nil
48
+
49
+ local_var_path = '/automations/{workflow_id}/emails/{workflow_email_id}'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'workflow_email_id' + '}', workflow_email_id.to_s)
50
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
51
+ :query_params => query_params,
52
+ :form_params => form_params,
53
+ :body => post_body)
54
+ return data, status_code, headers
55
+ end
56
+
57
+ # List automations
58
+ def list(opts = {})
59
+ fail ArgumentError, 'invalid value for "status", must be one of save, paused, sending' if opts[:'status'] && !['save', 'paused', 'sending'].include?(opts[:'status'])
60
+
61
+ query_params = {}
62
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
63
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
64
+ query_params[:'before_create_time'] = opts[:'before_create_time'] if !opts[:'before_create_time'].nil?
65
+ query_params[:'since_create_time'] = opts[:'since_create_time'] if !opts[:'since_create_time'].nil?
66
+ query_params[:'before_send_time'] = opts[:'before_send_time'] if !opts[:'before_send_time'].nil?
67
+ query_params[:'since_send_time'] = opts[:'since_send_time'] if !opts[:'since_send_time'].nil?
68
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
69
+ form_params = {}
70
+ post_body = nil
71
+
72
+ local_var_path = '/automations'
73
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
74
+ :query_params => query_params,
75
+ :form_params => form_params,
76
+ :body => post_body)
77
+ return data, status_code, headers
78
+ end
79
+
80
+ # Get automation info
81
+ def get(workflow_id, opts = {})
82
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
83
+
84
+ query_params = {}
85
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
86
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
87
+ form_params = {}
88
+ post_body = nil
89
+
90
+ local_var_path = '/automations/{workflow_id}'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
91
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
92
+ :query_params => query_params,
93
+ :form_params => form_params,
94
+ :body => post_body)
95
+ return data, status_code, headers
96
+ end
97
+
98
+ # List automated emails
99
+ def list_all_workflow_emails(workflow_id, opts = {})
100
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
101
+
102
+ query_params = {}
103
+ form_params = {}
104
+ post_body = nil
105
+
106
+ local_var_path = '/automations/{workflow_id}/emails'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
107
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
108
+ :query_params => query_params,
109
+ :form_params => form_params,
110
+ :body => post_body)
111
+ return data, status_code, headers
112
+ end
113
+
114
+ # Get workflow email info
115
+ def get_workflow_email(workflow_id, workflow_email_id, opts = {})
116
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
117
+ fail ArgumentError, "Missing required param: 'workflow_email_id'" if workflow_email_id.nil?
118
+
119
+ query_params = {}
120
+ form_params = {}
121
+ post_body = nil
122
+
123
+ local_var_path = '/automations/{workflow_id}/emails/{workflow_email_id}'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'workflow_email_id' + '}', workflow_email_id.to_s)
124
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
125
+ :query_params => query_params,
126
+ :form_params => form_params,
127
+ :body => post_body)
128
+ return data, status_code, headers
129
+ end
130
+
131
+ # List automated email subscribers
132
+ def get_workflow_email_subscriber_queue(workflow_id, workflow_email_id, opts = {})
133
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
134
+ fail ArgumentError, "Missing required param: 'workflow_email_id'" if workflow_email_id.nil?
135
+
136
+ query_params = {}
137
+ form_params = {}
138
+ post_body = nil
139
+
140
+ local_var_path = '/automations/{workflow_id}/emails/{workflow_email_id}/queue'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'workflow_email_id' + '}', workflow_email_id.to_s)
141
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
142
+ :query_params => query_params,
143
+ :form_params => form_params,
144
+ :body => post_body)
145
+ return data, status_code, headers
146
+ end
147
+
148
+ # Get automated email subscriber
149
+ def get_workflow_email_subscriber(workflow_id, workflow_email_id, subscriber_hash, opts = {})
150
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
151
+ fail ArgumentError, "Missing required param: 'workflow_email_id'" if workflow_email_id.nil?
152
+ fail ArgumentError, "Missing required param: 'subscriber_hash'" if subscriber_hash.nil?
153
+
154
+ query_params = {}
155
+ form_params = {}
156
+ post_body = nil
157
+
158
+ local_var_path = '/automations/{workflow_id}/emails/{workflow_email_id}/queue/{subscriber_hash}'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'workflow_email_id' + '}', workflow_email_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
159
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
160
+ :query_params => query_params,
161
+ :form_params => form_params,
162
+ :body => post_body)
163
+ return data, status_code, headers
164
+ end
165
+
166
+ # List subscribers removed from workflow
167
+ def list_workflow_email_subscribers_removed(workflow_id, opts = {})
168
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
169
+
170
+ query_params = {}
171
+ form_params = {}
172
+ post_body = nil
173
+
174
+ local_var_path = '/automations/{workflow_id}/removed-subscribers'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
175
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
176
+ :query_params => query_params,
177
+ :form_params => form_params,
178
+ :body => post_body)
179
+ return data, status_code, headers
180
+ end
181
+
182
+ # Get subscriber removed from workflow
183
+ def get_removed_workflow_email_subscriber(workflow_id, subscriber_hash, opts = {})
184
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
185
+ fail ArgumentError, "Missing required param: 'subscriber_hash'" if subscriber_hash.nil?
186
+
187
+ query_params = {}
188
+ form_params = {}
189
+ post_body = nil
190
+
191
+ local_var_path = '/automations/{workflow_id}/removed-subscribers/{subscriber_hash}'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
192
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
193
+ :query_params => query_params,
194
+ :form_params => form_params,
195
+ :body => post_body)
196
+ return data, status_code, headers
197
+ end
198
+
199
+ # Update workflow email
200
+ def update_workflow_email(workflow_id, workflow_email_id, body, opts = {})
201
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
202
+ fail ArgumentError, "Missing required param: 'workflow_email_id'" if workflow_email_id.nil?
203
+ fail ArgumentError, "Missing required param: 'body'" if body.nil?
204
+
205
+ query_params = {}
206
+ form_params = {}
207
+ post_body = @api_client.object_to_http_body(body)
208
+
209
+ local_var_path = '/automations/{workflow_id}/emails/{workflow_email_id}'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'workflow_email_id' + '}', workflow_email_id.to_s)
210
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
211
+ :query_params => query_params,
212
+ :form_params => form_params,
213
+ :body => post_body)
214
+ return data, status_code, headers
215
+ end
216
+
217
+ # Update automation
218
+ def update(workflow_id, body, opts = {})
219
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
220
+ fail ArgumentError, "Missing required param: 'body'" if body.nil?
221
+
222
+ query_params = {}
223
+ form_params = {}
224
+ post_body = @api_client.object_to_http_body(body)
225
+
226
+ local_var_path = '/automations/{workflow_id}'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
227
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
228
+ :query_params => query_params,
229
+ :form_params => form_params,
230
+ :body => post_body)
231
+ return data, status_code, headers
232
+ end
233
+
234
+ # Add automation
235
+ def create(body, opts = {})
236
+ fail ArgumentError, "Missing required param: 'body'" if body.nil?
237
+
238
+ query_params = {}
239
+ form_params = {}
240
+ post_body = @api_client.object_to_http_body(body)
241
+
242
+ local_var_path = '/automations'
243
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
244
+ :query_params => query_params,
245
+ :form_params => form_params,
246
+ :body => post_body)
247
+ return data, status_code, headers
248
+ end
249
+
250
+ # Pause automation emails
251
+ def pause_all_emails(workflow_id, opts = {})
252
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
253
+
254
+ query_params = {}
255
+ form_params = {}
256
+ post_body = nil
257
+
258
+ local_var_path = '/automations/{workflow_id}/actions/pause-all-emails'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
259
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
260
+ :query_params => query_params,
261
+ :form_params => form_params,
262
+ :body => post_body)
263
+ return data, status_code, headers
264
+ end
265
+
266
+ # Start automation emails
267
+ def start_all_emails(workflow_id, opts = {})
268
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
269
+
270
+ query_params = {}
271
+ form_params = {}
272
+ post_body = nil
273
+
274
+ local_var_path = '/automations/{workflow_id}/actions/start-all-emails'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
275
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
276
+ :query_params => query_params,
277
+ :form_params => form_params,
278
+ :body => post_body)
279
+ return data, status_code, headers
280
+ end
281
+
282
+ # Pause automated email
283
+ def pause_workflow_email(workflow_id, workflow_email_id, opts = {})
284
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
285
+ fail ArgumentError, "Missing required param: 'workflow_email_id'" if workflow_email_id.nil?
286
+
287
+ query_params = {}
288
+ form_params = {}
289
+ post_body = nil
290
+
291
+ local_var_path = '/automations/{workflow_id}/emails/{workflow_email_id}/actions/pause'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'workflow_email_id' + '}', workflow_email_id.to_s)
292
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
293
+ :query_params => query_params,
294
+ :form_params => form_params,
295
+ :body => post_body)
296
+ return data, status_code, headers
297
+ end
298
+
299
+ # Start automated email
300
+ def start_workflow_email(workflow_id, workflow_email_id, opts = {})
301
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
302
+ fail ArgumentError, "Missing required param: 'workflow_email_id'" if workflow_email_id.nil?
303
+
304
+ query_params = {}
305
+ form_params = {}
306
+ post_body = nil
307
+
308
+ local_var_path = '/automations/{workflow_id}/emails/{workflow_email_id}/actions/start'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'workflow_email_id' + '}', workflow_email_id.to_s)
309
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
310
+ :query_params => query_params,
311
+ :form_params => form_params,
312
+ :body => post_body)
313
+ return data, status_code, headers
314
+ end
315
+
316
+ # Add subscriber to workflow email
317
+ def add_workflow_email_subscriber(workflow_id, workflow_email_id, body, opts = {})
318
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
319
+ fail ArgumentError, "Missing required param: 'workflow_email_id'" if workflow_email_id.nil?
320
+ fail ArgumentError, "Missing required param: 'body'" if body.nil?
321
+
322
+ query_params = {}
323
+ form_params = {}
324
+ post_body = @api_client.object_to_http_body(body)
325
+
326
+ local_var_path = '/automations/{workflow_id}/emails/{workflow_email_id}/queue'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'workflow_email_id' + '}', workflow_email_id.to_s)
327
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
328
+ :query_params => query_params,
329
+ :form_params => form_params,
330
+ :body => post_body)
331
+ return data, status_code, headers
332
+ end
333
+
334
+ # Remove subscriber from workflow
335
+ def remove_workflow_email_subscriber(workflow_id, body, opts = {})
336
+ fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
337
+ fail ArgumentError, "Missing required param: 'body'" if body.nil?
338
+
339
+ query_params = {}
340
+ form_params = {}
341
+ post_body = @api_client.object_to_http_body(body)
342
+
343
+ local_var_path = '/automations/{workflow_id}/removed-subscribers'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
344
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
345
+ :query_params => query_params,
346
+ :form_params => form_params,
347
+ :body => post_body)
348
+ return data, status_code, headers
349
+ end
350
+ end
351
+ end