MailchimpMarketing 3.0.8 → 3.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +53 -0
  3. data/MailchimpMarketing.gemspec +2 -2
  4. data/README.md +2 -2
  5. data/lib/MailchimpMarketing.rb +1 -1
  6. data/lib/MailchimpMarketing/api/activity_feed_api.rb +5 -10
  7. data/lib/MailchimpMarketing/api/authorized_apps_api.rb +7 -14
  8. data/lib/MailchimpMarketing/api/automations_api.rb +39 -78
  9. data/lib/MailchimpMarketing/api/batch_webhooks_api.rb +11 -22
  10. data/lib/MailchimpMarketing/api/batches_api.rb +9 -18
  11. data/lib/MailchimpMarketing/api/campaign_folders_api.rb +11 -22
  12. data/lib/MailchimpMarketing/api/campaigns_api.rb +45 -90
  13. data/lib/MailchimpMarketing/api/connected_sites_api.rb +11 -22
  14. data/lib/MailchimpMarketing/api/conversations_api.rb +11 -22
  15. data/lib/MailchimpMarketing/api/dashboard_api.rb +13 -26
  16. data/lib/MailchimpMarketing/api/ecommerce_api.rb +119 -238
  17. data/lib/MailchimpMarketing/api/external_auths_api.rb +7 -14
  18. data/lib/MailchimpMarketing/api/facebook_ads_api.rb +5 -10
  19. data/lib/MailchimpMarketing/api/file_manager_api.rb +23 -46
  20. data/lib/MailchimpMarketing/api/landing_pages_api.rb +17 -34
  21. data/lib/MailchimpMarketing/api/lists_api.rb +136 -268
  22. data/lib/MailchimpMarketing/api/ping_api.rb +3 -6
  23. data/lib/MailchimpMarketing/api/postcards_api.rb +3 -6
  24. data/lib/MailchimpMarketing/api/reporting_api.rb +13 -26
  25. data/lib/MailchimpMarketing/api/reports_api.rb +45 -90
  26. data/lib/MailchimpMarketing/api/root_api.rb +3 -6
  27. data/lib/MailchimpMarketing/api/search_campaigns_api.rb +3 -6
  28. data/lib/MailchimpMarketing/api/search_members_api.rb +3 -6
  29. data/lib/MailchimpMarketing/api/template_folders_api.rb +11 -22
  30. data/lib/MailchimpMarketing/api/templates_api.rb +13 -26
  31. data/lib/MailchimpMarketing/api/verified_domains_api.rb +11 -22
  32. data/lib/MailchimpMarketing/api_client.rb +17 -117
  33. data/lib/MailchimpMarketing/api_error.rb +1 -1
  34. data/lib/MailchimpMarketing/configuration.rb +1 -1
  35. data/lib/MailchimpMarketing/version.rb +2 -2
  36. metadata +6 -11
@@ -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: 3.0.8
6
+ OpenAPI spec version: 3.0.13
7
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
@@ -11,7 +11,6 @@ Swagger Codegen version: 2.4.12
11
11
  =end
12
12
 
13
13
  require 'uri'
14
- require 'json'
15
14
 
16
15
  module MailchimpMarketing
17
16
  class ListsApi
@@ -26,15 +25,13 @@ module MailchimpMarketing
26
25
  fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
27
26
 
28
27
  query_params = {}
29
- form_params = {}
30
28
  post_body = nil
31
29
 
32
30
  local_var_path = '/lists/{list_id}'.sub('{' + 'list_id' + '}', list_id.to_s)
33
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
31
+ data = @api_client.call_api(:DELETE, local_var_path,
34
32
  :query_params => query_params,
35
- :form_params => form_params,
36
33
  :body => post_body)
37
- return data, status_code, headers
34
+ return data
38
35
  end
39
36
 
40
37
  # Delete interest category
@@ -43,15 +40,13 @@ module MailchimpMarketing
43
40
  fail ArgumentError, "Missing required param: 'interest_category_id'" if interest_category_id.nil?
44
41
 
45
42
  query_params = {}
46
- form_params = {}
47
43
  post_body = nil
48
44
 
49
45
  local_var_path = '/lists/{list_id}/interest-categories/{interest_category_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'interest_category_id' + '}', interest_category_id.to_s)
50
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
46
+ data = @api_client.call_api(:DELETE, local_var_path,
51
47
  :query_params => query_params,
52
- :form_params => form_params,
53
48
  :body => post_body)
54
- return data, status_code, headers
49
+ return data
55
50
  end
56
51
 
57
52
  # Delete interest in category
@@ -61,15 +56,13 @@ module MailchimpMarketing
61
56
  fail ArgumentError, "Missing required param: 'interest_id'" if interest_id.nil?
62
57
 
63
58
  query_params = {}
64
- form_params = {}
65
59
  post_body = nil
66
60
 
67
61
  local_var_path = '/lists/{list_id}/interest-categories/{interest_category_id}/interests/{interest_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'interest_category_id' + '}', interest_category_id.to_s).sub('{' + 'interest_id' + '}', interest_id.to_s)
68
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
62
+ data = @api_client.call_api(:DELETE, local_var_path,
69
63
  :query_params => query_params,
70
- :form_params => form_params,
71
64
  :body => post_body)
72
- return data, status_code, headers
65
+ return data
73
66
  end
74
67
 
75
68
  # Archive list member
@@ -78,15 +71,13 @@ module MailchimpMarketing
78
71
  fail ArgumentError, "Missing required param: 'subscriber_hash'" if subscriber_hash.nil?
79
72
 
80
73
  query_params = {}
81
- form_params = {}
82
74
  post_body = nil
83
75
 
84
76
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
85
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
77
+ data = @api_client.call_api(:DELETE, local_var_path,
86
78
  :query_params => query_params,
87
- :form_params => form_params,
88
79
  :body => post_body)
89
- return data, status_code, headers
80
+ return data
90
81
  end
91
82
 
92
83
  # Delete note
@@ -96,15 +87,13 @@ module MailchimpMarketing
96
87
  fail ArgumentError, "Missing required param: 'note_id'" if note_id.nil?
97
88
 
98
89
  query_params = {}
99
- form_params = {}
100
90
  post_body = nil
101
91
 
102
92
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}/notes/{note_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s).sub('{' + 'note_id' + '}', note_id.to_s)
103
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
93
+ data = @api_client.call_api(:DELETE, local_var_path,
104
94
  :query_params => query_params,
105
- :form_params => form_params,
106
95
  :body => post_body)
107
- return data, status_code, headers
96
+ return data
108
97
  end
109
98
 
110
99
  # Delete merge field
@@ -113,15 +102,13 @@ module MailchimpMarketing
113
102
  fail ArgumentError, "Missing required param: 'merge_id'" if merge_id.nil?
114
103
 
115
104
  query_params = {}
116
- form_params = {}
117
105
  post_body = nil
118
106
 
119
107
  local_var_path = '/lists/{list_id}/merge-fields/{merge_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'merge_id' + '}', merge_id.to_s)
120
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
108
+ data = @api_client.call_api(:DELETE, local_var_path,
121
109
  :query_params => query_params,
122
- :form_params => form_params,
123
110
  :body => post_body)
124
- return data, status_code, headers
111
+ return data
125
112
  end
126
113
 
127
114
  # Delete segment
@@ -130,15 +117,13 @@ module MailchimpMarketing
130
117
  fail ArgumentError, "Missing required param: 'segment_id'" if segment_id.nil?
131
118
 
132
119
  query_params = {}
133
- form_params = {}
134
120
  post_body = nil
135
121
 
136
122
  local_var_path = '/lists/{list_id}/segments/{segment_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'segment_id' + '}', segment_id.to_s)
137
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
123
+ data = @api_client.call_api(:DELETE, local_var_path,
138
124
  :query_params => query_params,
139
- :form_params => form_params,
140
125
  :body => post_body)
141
- return data, status_code, headers
126
+ return data
142
127
  end
143
128
 
144
129
  # Remove list member from segment
@@ -148,15 +133,13 @@ module MailchimpMarketing
148
133
  fail ArgumentError, "Missing required param: 'subscriber_hash'" if subscriber_hash.nil?
149
134
 
150
135
  query_params = {}
151
- form_params = {}
152
136
  post_body = nil
153
137
 
154
138
  local_var_path = '/lists/{list_id}/segments/{segment_id}/members/{subscriber_hash}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'segment_id' + '}', segment_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
155
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
139
+ data = @api_client.call_api(:DELETE, local_var_path,
156
140
  :query_params => query_params,
157
- :form_params => form_params,
158
141
  :body => post_body)
159
- return data, status_code, headers
142
+ return data
160
143
  end
161
144
 
162
145
  # Delete webhook
@@ -165,15 +148,13 @@ module MailchimpMarketing
165
148
  fail ArgumentError, "Missing required param: 'webhook_id'" if webhook_id.nil?
166
149
 
167
150
  query_params = {}
168
- form_params = {}
169
151
  post_body = nil
170
152
 
171
153
  local_var_path = '/lists/{list_id}/webhooks/{webhook_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'webhook_id' + '}', webhook_id.to_s)
172
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
154
+ data = @api_client.call_api(:DELETE, local_var_path,
173
155
  :query_params => query_params,
174
- :form_params => form_params,
175
156
  :body => post_body)
176
- return data, status_code, headers
157
+ return data
177
158
  end
178
159
 
179
160
  # List member tags
@@ -187,15 +168,13 @@ module MailchimpMarketing
187
168
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
188
169
  query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
189
170
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
190
- form_params = {}
191
171
  post_body = nil
192
172
 
193
173
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}/tags'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
194
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
174
+ data = @api_client.call_api(:GET, local_var_path,
195
175
  :query_params => query_params,
196
- :form_params => form_params,
197
176
  :body => post_body)
198
- return data, status_code, headers
177
+ return data
199
178
  end
200
179
 
201
180
  # Get lists info
@@ -216,15 +195,13 @@ module MailchimpMarketing
216
195
  query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
217
196
  query_params[:'sort_field'] = opts[:'sort_field'] if !opts[:'sort_field'].nil?
218
197
  query_params[:'sort_dir'] = opts[:'sort_dir'] if !opts[:'sort_dir'].nil?
219
- form_params = {}
220
198
  post_body = nil
221
199
 
222
200
  local_var_path = '/lists'
223
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
201
+ data = @api_client.call_api(:GET, local_var_path,
224
202
  :query_params => query_params,
225
- :form_params => form_params,
226
203
  :body => post_body)
227
- return data, status_code, headers
204
+ return data
228
205
  end
229
206
 
230
207
  # Get list info
@@ -234,15 +211,13 @@ module MailchimpMarketing
234
211
  query_params = {}
235
212
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
236
213
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
237
- form_params = {}
238
214
  post_body = nil
239
215
 
240
216
  local_var_path = '/lists/{list_id}'.sub('{' + 'list_id' + '}', list_id.to_s)
241
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
217
+ data = @api_client.call_api(:GET, local_var_path,
242
218
  :query_params => query_params,
243
- :form_params => form_params,
244
219
  :body => post_body)
245
- return data, status_code, headers
220
+ return data
246
221
  end
247
222
 
248
223
  # List abuse reports
@@ -255,15 +230,13 @@ module MailchimpMarketing
255
230
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
256
231
  query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
257
232
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
258
- form_params = {}
259
233
  post_body = nil
260
234
 
261
235
  local_var_path = '/lists/{list_id}/abuse-reports'.sub('{' + 'list_id' + '}', list_id.to_s)
262
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
236
+ data = @api_client.call_api(:GET, local_var_path,
263
237
  :query_params => query_params,
264
- :form_params => form_params,
265
238
  :body => post_body)
266
- return data, status_code, headers
239
+ return data
267
240
  end
268
241
 
269
242
  # Get abuse report
@@ -277,15 +250,13 @@ module MailchimpMarketing
277
250
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
278
251
  query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
279
252
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
280
- form_params = {}
281
253
  post_body = nil
282
254
 
283
255
  local_var_path = '/lists/{list_id}/abuse-reports/{report_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'report_id' + '}', report_id.to_s)
284
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
256
+ data = @api_client.call_api(:GET, local_var_path,
285
257
  :query_params => query_params,
286
- :form_params => form_params,
287
258
  :body => post_body)
288
- return data, status_code, headers
259
+ return data
289
260
  end
290
261
 
291
262
  # List recent activity
@@ -295,15 +266,13 @@ module MailchimpMarketing
295
266
  query_params = {}
296
267
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
297
268
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
298
- form_params = {}
299
269
  post_body = nil
300
270
 
301
271
  local_var_path = '/lists/{list_id}/activity'.sub('{' + 'list_id' + '}', list_id.to_s)
302
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
272
+ data = @api_client.call_api(:GET, local_var_path,
303
273
  :query_params => query_params,
304
- :form_params => form_params,
305
274
  :body => post_body)
306
- return data, status_code, headers
275
+ return data
307
276
  end
308
277
 
309
278
  # List top email clients
@@ -313,15 +282,13 @@ module MailchimpMarketing
313
282
  query_params = {}
314
283
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
315
284
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
316
- form_params = {}
317
285
  post_body = nil
318
286
 
319
287
  local_var_path = '/lists/{list_id}/clients'.sub('{' + 'list_id' + '}', list_id.to_s)
320
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
288
+ data = @api_client.call_api(:GET, local_var_path,
321
289
  :query_params => query_params,
322
- :form_params => form_params,
323
290
  :body => post_body)
324
- return data, status_code, headers
291
+ return data
325
292
  end
326
293
 
327
294
  # List external i ds
@@ -332,15 +299,13 @@ module MailchimpMarketing
332
299
  query_params = {}
333
300
  query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
334
301
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
335
- form_params = {}
336
302
  post_body = nil
337
303
 
338
304
  local_var_path = '/lists/{list_id}/external-ids'.sub('{' + 'list_id' + '}', list_id.to_s)
339
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
305
+ data = @api_client.call_api(:GET, local_var_path,
340
306
  :query_params => query_params,
341
- :form_params => form_params,
342
307
  :body => post_body)
343
- return data, status_code, headers
308
+ return data
344
309
  end
345
310
 
346
311
  # List growth history data
@@ -357,15 +322,13 @@ module MailchimpMarketing
357
322
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
358
323
  query_params[:'sort_field'] = opts[:'sort_field'] if !opts[:'sort_field'].nil?
359
324
  query_params[:'sort_dir'] = opts[:'sort_dir'] if !opts[:'sort_dir'].nil?
360
- form_params = {}
361
325
  post_body = nil
362
326
 
363
327
  local_var_path = '/lists/{list_id}/growth-history'.sub('{' + 'list_id' + '}', list_id.to_s)
364
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
328
+ data = @api_client.call_api(:GET, local_var_path,
365
329
  :query_params => query_params,
366
- :form_params => form_params,
367
330
  :body => post_body)
368
- return data, status_code, headers
331
+ return data
369
332
  end
370
333
 
371
334
  # Get growth history by month
@@ -376,15 +339,13 @@ module MailchimpMarketing
376
339
  query_params = {}
377
340
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
378
341
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
379
- form_params = {}
380
342
  post_body = nil
381
343
 
382
344
  local_var_path = '/lists/{list_id}/growth-history/{month}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'month' + '}', month.to_s)
383
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
345
+ data = @api_client.call_api(:GET, local_var_path,
384
346
  :query_params => query_params,
385
- :form_params => form_params,
386
347
  :body => post_body)
387
- return data, status_code, headers
348
+ return data
388
349
  end
389
350
 
390
351
  # List interest categories
@@ -398,15 +359,13 @@ module MailchimpMarketing
398
359
  query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
399
360
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
400
361
  query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
401
- form_params = {}
402
362
  post_body = nil
403
363
 
404
364
  local_var_path = '/lists/{list_id}/interest-categories'.sub('{' + 'list_id' + '}', list_id.to_s)
405
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
365
+ data = @api_client.call_api(:GET, local_var_path,
406
366
  :query_params => query_params,
407
- :form_params => form_params,
408
367
  :body => post_body)
409
- return data, status_code, headers
368
+ return data
410
369
  end
411
370
 
412
371
  # Get interest category info
@@ -417,15 +376,13 @@ module MailchimpMarketing
417
376
  query_params = {}
418
377
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
419
378
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
420
- form_params = {}
421
379
  post_body = nil
422
380
 
423
381
  local_var_path = '/lists/{list_id}/interest-categories/{interest_category_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'interest_category_id' + '}', interest_category_id.to_s)
424
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
382
+ data = @api_client.call_api(:GET, local_var_path,
425
383
  :query_params => query_params,
426
- :form_params => form_params,
427
384
  :body => post_body)
428
- return data, status_code, headers
385
+ return data
429
386
  end
430
387
 
431
388
  # List interests in category
@@ -439,15 +396,13 @@ module MailchimpMarketing
439
396
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
440
397
  query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
441
398
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
442
- form_params = {}
443
399
  post_body = nil
444
400
 
445
401
  local_var_path = '/lists/{list_id}/interest-categories/{interest_category_id}/interests'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'interest_category_id' + '}', interest_category_id.to_s)
446
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
402
+ data = @api_client.call_api(:GET, local_var_path,
447
403
  :query_params => query_params,
448
- :form_params => form_params,
449
404
  :body => post_body)
450
- return data, status_code, headers
405
+ return data
451
406
  end
452
407
 
453
408
  # Get interest in category
@@ -459,15 +414,13 @@ module MailchimpMarketing
459
414
  query_params = {}
460
415
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
461
416
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
462
- form_params = {}
463
417
  post_body = nil
464
418
 
465
419
  local_var_path = '/lists/{list_id}/interest-categories/{interest_category_id}/interests/{interest_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'interest_category_id' + '}', interest_category_id.to_s).sub('{' + 'interest_id' + '}', interest_id.to_s)
466
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
420
+ data = @api_client.call_api(:GET, local_var_path,
467
421
  :query_params => query_params,
468
- :form_params => form_params,
469
422
  :body => post_body)
470
- return data, status_code, headers
423
+ return data
471
424
  end
472
425
 
473
426
  # List locations
@@ -477,15 +430,13 @@ module MailchimpMarketing
477
430
  query_params = {}
478
431
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
479
432
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
480
- form_params = {}
481
433
  post_body = nil
482
434
 
483
435
  local_var_path = '/lists/{list_id}/locations'.sub('{' + 'list_id' + '}', list_id.to_s)
484
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
436
+ data = @api_client.call_api(:GET, local_var_path,
485
437
  :query_params => query_params,
486
- :form_params => form_params,
487
438
  :body => post_body)
488
- return data, status_code, headers
439
+ return data
489
440
  end
490
441
 
491
442
  # List members info
@@ -517,15 +468,13 @@ module MailchimpMarketing
517
468
  query_params[:'sort_dir'] = opts[:'sort_dir'] if !opts[:'sort_dir'].nil?
518
469
  query_params[:'since_last_campaign'] = opts[:'since_last_campaign'] if !opts[:'since_last_campaign'].nil?
519
470
  query_params[:'unsubscribed_since'] = opts[:'unsubscribed_since'] if !opts[:'unsubscribed_since'].nil?
520
- form_params = {}
521
471
  post_body = nil
522
472
 
523
473
  local_var_path = '/lists/{list_id}/members'.sub('{' + 'list_id' + '}', list_id.to_s)
524
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
474
+ data = @api_client.call_api(:GET, local_var_path,
525
475
  :query_params => query_params,
526
- :form_params => form_params,
527
476
  :body => post_body)
528
- return data, status_code, headers
477
+ return data
529
478
  end
530
479
 
531
480
  # Get member info
@@ -536,15 +485,13 @@ module MailchimpMarketing
536
485
  query_params = {}
537
486
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
538
487
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
539
- form_params = {}
540
488
  post_body = nil
541
489
 
542
490
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
543
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
491
+ data = @api_client.call_api(:GET, local_var_path,
544
492
  :query_params => query_params,
545
- :form_params => form_params,
546
493
  :body => post_body)
547
- return data, status_code, headers
494
+ return data
548
495
  end
549
496
 
550
497
  # View recent activity 50
@@ -556,15 +503,13 @@ module MailchimpMarketing
556
503
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
557
504
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
558
505
  query_params[:'action'] = @api_client.build_collection_param(opts[:'action'], :csv) if !opts[:'action'].nil?
559
- form_params = {}
560
506
  post_body = nil
561
507
 
562
508
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}/activity'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
563
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
509
+ data = @api_client.call_api(:GET, local_var_path,
564
510
  :query_params => query_params,
565
- :form_params => form_params,
566
511
  :body => post_body)
567
- return data, status_code, headers
512
+ return data
568
513
  end
569
514
 
570
515
  # View recent activity 10
@@ -579,15 +524,13 @@ module MailchimpMarketing
579
524
  query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
580
525
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
581
526
  query_params[:'activity_filters'] = @api_client.build_collection_param(opts[:'activity_filters'], :csv) if !opts[:'activity_filters'].nil?
582
- form_params = {}
583
527
  post_body = nil
584
528
 
585
529
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}/activity-feed'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
586
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
530
+ data = @api_client.call_api(:GET, local_var_path,
587
531
  :query_params => query_params,
588
- :form_params => form_params,
589
532
  :body => post_body)
590
- return data, status_code, headers
533
+ return data
591
534
  end
592
535
 
593
536
  # List member events
@@ -601,15 +544,13 @@ module MailchimpMarketing
601
544
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
602
545
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
603
546
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
604
- form_params = {}
605
547
  post_body = nil
606
548
 
607
549
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}/events'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
608
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
550
+ data = @api_client.call_api(:GET, local_var_path,
609
551
  :query_params => query_params,
610
- :form_params => form_params,
611
552
  :body => post_body)
612
- return data, status_code, headers
553
+ return data
613
554
  end
614
555
 
615
556
  # List member goal events
@@ -620,15 +561,13 @@ module MailchimpMarketing
620
561
  query_params = {}
621
562
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
622
563
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
623
- form_params = {}
624
564
  post_body = nil
625
565
 
626
566
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}/goals'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
627
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
567
+ data = @api_client.call_api(:GET, local_var_path,
628
568
  :query_params => query_params,
629
- :form_params => form_params,
630
569
  :body => post_body)
631
- return data, status_code, headers
570
+ return data
632
571
  end
633
572
 
634
573
  # List recent member notes
@@ -646,15 +585,13 @@ module MailchimpMarketing
646
585
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
647
586
  query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
648
587
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
649
- form_params = {}
650
588
  post_body = nil
651
589
 
652
590
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}/notes'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
653
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
591
+ data = @api_client.call_api(:GET, local_var_path,
654
592
  :query_params => query_params,
655
- :form_params => form_params,
656
593
  :body => post_body)
657
- return data, status_code, headers
594
+ return data
658
595
  end
659
596
 
660
597
  # Get member note
@@ -666,15 +603,13 @@ module MailchimpMarketing
666
603
  query_params = {}
667
604
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
668
605
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
669
- form_params = {}
670
606
  post_body = nil
671
607
 
672
608
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}/notes/{note_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s).sub('{' + 'note_id' + '}', note_id.to_s)
673
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
609
+ data = @api_client.call_api(:GET, local_var_path,
674
610
  :query_params => query_params,
675
- :form_params => form_params,
676
611
  :body => post_body)
677
- return data, status_code, headers
612
+ return data
678
613
  end
679
614
 
680
615
  # List merge fields
@@ -689,15 +624,13 @@ module MailchimpMarketing
689
624
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
690
625
  query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
691
626
  query_params[:'required'] = opts[:'required'] if !opts[:'required'].nil?
692
- form_params = {}
693
627
  post_body = nil
694
628
 
695
629
  local_var_path = '/lists/{list_id}/merge-fields'.sub('{' + 'list_id' + '}', list_id.to_s)
696
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
630
+ data = @api_client.call_api(:GET, local_var_path,
697
631
  :query_params => query_params,
698
- :form_params => form_params,
699
632
  :body => post_body)
700
- return data, status_code, headers
633
+ return data
701
634
  end
702
635
 
703
636
  # Get merge field
@@ -708,15 +641,13 @@ module MailchimpMarketing
708
641
  query_params = {}
709
642
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
710
643
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
711
- form_params = {}
712
644
  post_body = nil
713
645
 
714
646
  local_var_path = '/lists/{list_id}/merge-fields/{merge_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'merge_id' + '}', merge_id.to_s)
715
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
647
+ data = @api_client.call_api(:GET, local_var_path,
716
648
  :query_params => query_params,
717
- :form_params => form_params,
718
649
  :body => post_body)
719
- return data, status_code, headers
650
+ return data
720
651
  end
721
652
 
722
653
  # Get segment info
@@ -730,15 +661,13 @@ module MailchimpMarketing
730
661
  query_params[:'include_cleaned'] = opts[:'include_cleaned'] if !opts[:'include_cleaned'].nil?
731
662
  query_params[:'include_transactional'] = opts[:'include_transactional'] if !opts[:'include_transactional'].nil?
732
663
  query_params[:'include_unsubscribed'] = opts[:'include_unsubscribed'] if !opts[:'include_unsubscribed'].nil?
733
- form_params = {}
734
664
  post_body = nil
735
665
 
736
666
  local_var_path = '/lists/{list_id}/segments/{segment_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'segment_id' + '}', segment_id.to_s)
737
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
667
+ data = @api_client.call_api(:GET, local_var_path,
738
668
  :query_params => query_params,
739
- :form_params => form_params,
740
669
  :body => post_body)
741
- return data, status_code, headers
670
+ return data
742
671
  end
743
672
 
744
673
  # List members in segment
@@ -755,15 +684,13 @@ module MailchimpMarketing
755
684
  query_params[:'include_cleaned'] = opts[:'include_cleaned'] if !opts[:'include_cleaned'].nil?
756
685
  query_params[:'include_transactional'] = opts[:'include_transactional'] if !opts[:'include_transactional'].nil?
757
686
  query_params[:'include_unsubscribed'] = opts[:'include_unsubscribed'] if !opts[:'include_unsubscribed'].nil?
758
- form_params = {}
759
687
  post_body = nil
760
688
 
761
689
  local_var_path = '/lists/{list_id}/segments/{segment_id}/members'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'segment_id' + '}', segment_id.to_s)
762
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
690
+ data = @api_client.call_api(:GET, local_var_path,
763
691
  :query_params => query_params,
764
- :form_params => form_params,
765
692
  :body => post_body)
766
- return data, status_code, headers
693
+ return data
767
694
  end
768
695
 
769
696
  # List signup forms
@@ -771,15 +698,13 @@ module MailchimpMarketing
771
698
  fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
772
699
 
773
700
  query_params = {}
774
- form_params = {}
775
701
  post_body = nil
776
702
 
777
703
  local_var_path = '/lists/{list_id}/signup-forms'.sub('{' + 'list_id' + '}', list_id.to_s)
778
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
704
+ data = @api_client.call_api(:GET, local_var_path,
779
705
  :query_params => query_params,
780
- :form_params => form_params,
781
706
  :body => post_body)
782
- return data, status_code, headers
707
+ return data
783
708
  end
784
709
 
785
710
  # List webhooks
@@ -787,15 +712,13 @@ module MailchimpMarketing
787
712
  fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
788
713
 
789
714
  query_params = {}
790
- form_params = {}
791
715
  post_body = nil
792
716
 
793
717
  local_var_path = '/lists/{list_id}/webhooks'.sub('{' + 'list_id' + '}', list_id.to_s)
794
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
718
+ data = @api_client.call_api(:GET, local_var_path,
795
719
  :query_params => query_params,
796
- :form_params => form_params,
797
720
  :body => post_body)
798
- return data, status_code, headers
721
+ return data
799
722
  end
800
723
 
801
724
  # Get webhook info
@@ -804,15 +727,13 @@ module MailchimpMarketing
804
727
  fail ArgumentError, "Missing required param: 'webhook_id'" if webhook_id.nil?
805
728
 
806
729
  query_params = {}
807
- form_params = {}
808
730
  post_body = nil
809
731
 
810
732
  local_var_path = '/lists/{list_id}/webhooks/{webhook_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'webhook_id' + '}', webhook_id.to_s)
811
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
733
+ data = @api_client.call_api(:GET, local_var_path,
812
734
  :query_params => query_params,
813
- :form_params => form_params,
814
735
  :body => post_body)
815
- return data, status_code, headers
736
+ return data
816
737
  end
817
738
 
818
739
  # Update lists
@@ -821,15 +742,13 @@ module MailchimpMarketing
821
742
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
822
743
 
823
744
  query_params = {}
824
- form_params = {}
825
745
  post_body = @api_client.object_to_http_body(body)
826
746
 
827
747
  local_var_path = '/lists/{list_id}'.sub('{' + 'list_id' + '}', list_id.to_s)
828
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
748
+ data = @api_client.call_api(:PATCH, local_var_path,
829
749
  :query_params => query_params,
830
- :form_params => form_params,
831
750
  :body => post_body)
832
- return data, status_code, headers
751
+ return data
833
752
  end
834
753
 
835
754
  # Update interest category
@@ -839,15 +758,13 @@ module MailchimpMarketing
839
758
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
840
759
 
841
760
  query_params = {}
842
- form_params = {}
843
761
  post_body = @api_client.object_to_http_body(body)
844
762
 
845
763
  local_var_path = '/lists/{list_id}/interest-categories/{interest_category_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'interest_category_id' + '}', interest_category_id.to_s)
846
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
764
+ data = @api_client.call_api(:PATCH, local_var_path,
847
765
  :query_params => query_params,
848
- :form_params => form_params,
849
766
  :body => post_body)
850
- return data, status_code, headers
767
+ return data
851
768
  end
852
769
 
853
770
  # Update interest in category
@@ -857,15 +774,13 @@ module MailchimpMarketing
857
774
  fail ArgumentError, "Missing required param: 'interest_id'" if interest_id.nil?
858
775
 
859
776
  query_params = {}
860
- form_params = {}
861
777
  post_body = @api_client.object_to_http_body(opts[:'body'])
862
778
 
863
779
  local_var_path = '/lists/{list_id}/interest-categories/{interest_category_id}/interests/{interest_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'interest_category_id' + '}', interest_category_id.to_s).sub('{' + 'interest_id' + '}', interest_id.to_s)
864
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
780
+ data = @api_client.call_api(:PATCH, local_var_path,
865
781
  :query_params => query_params,
866
- :form_params => form_params,
867
782
  :body => post_body)
868
- return data, status_code, headers
783
+ return data
869
784
  end
870
785
 
871
786
  # Update list member
@@ -876,15 +791,13 @@ module MailchimpMarketing
876
791
 
877
792
  query_params = {}
878
793
  query_params[:'skip_merge_validation'] = opts[:'skip_merge_validation'] if !opts[:'skip_merge_validation'].nil?
879
- form_params = {}
880
794
  post_body = @api_client.object_to_http_body(body)
881
795
 
882
796
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
883
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
797
+ data = @api_client.call_api(:PATCH, local_var_path,
884
798
  :query_params => query_params,
885
- :form_params => form_params,
886
799
  :body => post_body)
887
- return data, status_code, headers
800
+ return data
888
801
  end
889
802
 
890
803
  # Update note
@@ -894,15 +807,13 @@ module MailchimpMarketing
894
807
  fail ArgumentError, "Missing required param: 'note_id'" if note_id.nil?
895
808
 
896
809
  query_params = {}
897
- form_params = {}
898
810
  post_body = @api_client.object_to_http_body(opts[:'body'])
899
811
 
900
812
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}/notes/{note_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s).sub('{' + 'note_id' + '}', note_id.to_s)
901
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
813
+ data = @api_client.call_api(:PATCH, local_var_path,
902
814
  :query_params => query_params,
903
- :form_params => form_params,
904
815
  :body => post_body)
905
- return data, status_code, headers
816
+ return data
906
817
  end
907
818
 
908
819
  # Update merge field
@@ -912,15 +823,13 @@ module MailchimpMarketing
912
823
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
913
824
 
914
825
  query_params = {}
915
- form_params = {}
916
826
  post_body = @api_client.object_to_http_body(body)
917
827
 
918
828
  local_var_path = '/lists/{list_id}/merge-fields/{merge_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'merge_id' + '}', merge_id.to_s)
919
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
829
+ data = @api_client.call_api(:PATCH, local_var_path,
920
830
  :query_params => query_params,
921
- :form_params => form_params,
922
831
  :body => post_body)
923
- return data, status_code, headers
832
+ return data
924
833
  end
925
834
 
926
835
  # Update segment
@@ -930,15 +839,13 @@ module MailchimpMarketing
930
839
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
931
840
 
932
841
  query_params = {}
933
- form_params = {}
934
842
  post_body = @api_client.object_to_http_body(body)
935
843
 
936
844
  local_var_path = '/lists/{list_id}/segments/{segment_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'segment_id' + '}', segment_id.to_s)
937
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
845
+ data = @api_client.call_api(:PATCH, local_var_path,
938
846
  :query_params => query_params,
939
- :form_params => form_params,
940
847
  :body => post_body)
941
- return data, status_code, headers
848
+ return data
942
849
  end
943
850
 
944
851
  # Update webhook
@@ -948,32 +855,29 @@ module MailchimpMarketing
948
855
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
949
856
 
950
857
  query_params = {}
951
- form_params = {}
952
858
  post_body = @api_client.object_to_http_body(body)
953
859
 
954
860
  local_var_path = '/lists/{list_id}/webhooks/{webhook_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'webhook_id' + '}', webhook_id.to_s)
955
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
861
+ data = @api_client.call_api(:PATCH, local_var_path,
956
862
  :query_params => query_params,
957
- :form_params => form_params,
958
863
  :body => post_body)
959
- return data, status_code, headers
864
+ return data
960
865
  end
961
866
 
962
867
  # Add event
963
- def create_list_member_event(list_id, subscriber_hash, opts = {})
868
+ def create_list_member_event(list_id, subscriber_hash, body, opts = {})
964
869
  fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
965
870
  fail ArgumentError, "Missing required param: 'subscriber_hash'" if subscriber_hash.nil?
871
+ fail ArgumentError, "Missing required param: 'body'" if body.nil?
966
872
 
967
873
  query_params = {}
968
- form_params = {}
969
- post_body = @api_client.object_to_http_body(opts[:'body'])
874
+ post_body = @api_client.object_to_http_body(body)
970
875
 
971
876
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}/events'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
972
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
877
+ data = @api_client.call_api(:POST, local_var_path,
973
878
  :query_params => query_params,
974
- :form_params => form_params,
975
879
  :body => post_body)
976
- return data, status_code, headers
880
+ return data
977
881
  end
978
882
 
979
883
  # Add or remove member tags
@@ -982,15 +886,13 @@ module MailchimpMarketing
982
886
  fail ArgumentError, "Missing required param: 'subscriber_hash'" if subscriber_hash.nil?
983
887
 
984
888
  query_params = {}
985
- form_params = {}
986
889
  post_body = @api_client.object_to_http_body(opts[:'body'])
987
890
 
988
891
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}/tags'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
989
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
892
+ data = @api_client.call_api(:POST, local_var_path,
990
893
  :query_params => query_params,
991
- :form_params => form_params,
992
894
  :body => post_body)
993
- return data, status_code, headers
895
+ return data
994
896
  end
995
897
 
996
898
  # Add list
@@ -998,15 +900,13 @@ module MailchimpMarketing
998
900
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
999
901
 
1000
902
  query_params = {}
1001
- form_params = {}
1002
903
  post_body = @api_client.object_to_http_body(body)
1003
904
 
1004
905
  local_var_path = '/lists'
1005
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
906
+ data = @api_client.call_api(:POST, local_var_path,
1006
907
  :query_params => query_params,
1007
- :form_params => form_params,
1008
908
  :body => post_body)
1009
- return data, status_code, headers
909
+ return data
1010
910
  end
1011
911
 
1012
912
  # Batch subscribe or unsubscibe
@@ -1017,15 +917,13 @@ module MailchimpMarketing
1017
917
  query_params = {}
1018
918
  query_params[:'skip_merge_validation'] = opts[:'skip_merge_validation'] if !opts[:'skip_merge_validation'].nil?
1019
919
  query_params[:'skip_duplicate_check'] = opts[:'skip_duplicate_check'] if !opts[:'skip_duplicate_check'].nil?
1020
- form_params = {}
1021
920
  post_body = @api_client.object_to_http_body(body)
1022
921
 
1023
922
  local_var_path = '/lists/{list_id}'.sub('{' + 'list_id' + '}', list_id.to_s)
1024
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
923
+ data = @api_client.call_api(:POST, local_var_path,
1025
924
  :query_params => query_params,
1026
- :form_params => form_params,
1027
925
  :body => post_body)
1028
- return data, status_code, headers
926
+ return data
1029
927
  end
1030
928
 
1031
929
  # Add external id
@@ -1033,15 +931,13 @@ module MailchimpMarketing
1033
931
  fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
1034
932
 
1035
933
  query_params = {}
1036
- form_params = {}
1037
934
  post_body = @api_client.object_to_http_body(opts[:'body'])
1038
935
 
1039
936
  local_var_path = '/lists/{list_id}/external-ids'.sub('{' + 'list_id' + '}', list_id.to_s)
1040
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
937
+ data = @api_client.call_api(:POST, local_var_path,
1041
938
  :query_params => query_params,
1042
- :form_params => form_params,
1043
939
  :body => post_body)
1044
- return data, status_code, headers
940
+ return data
1045
941
  end
1046
942
 
1047
943
  # Add interest category
@@ -1050,15 +946,13 @@ module MailchimpMarketing
1050
946
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
1051
947
 
1052
948
  query_params = {}
1053
- form_params = {}
1054
949
  post_body = @api_client.object_to_http_body(body)
1055
950
 
1056
951
  local_var_path = '/lists/{list_id}/interest-categories'.sub('{' + 'list_id' + '}', list_id.to_s)
1057
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
952
+ data = @api_client.call_api(:POST, local_var_path,
1058
953
  :query_params => query_params,
1059
- :form_params => form_params,
1060
954
  :body => post_body)
1061
- return data, status_code, headers
955
+ return data
1062
956
  end
1063
957
 
1064
958
  # Add interest in category
@@ -1068,15 +962,13 @@ module MailchimpMarketing
1068
962
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
1069
963
 
1070
964
  query_params = {}
1071
- form_params = {}
1072
965
  post_body = @api_client.object_to_http_body(body)
1073
966
 
1074
967
  local_var_path = '/lists/{list_id}/interest-categories/{interest_category_id}/interests'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'interest_category_id' + '}', interest_category_id.to_s)
1075
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
968
+ data = @api_client.call_api(:POST, local_var_path,
1076
969
  :query_params => query_params,
1077
- :form_params => form_params,
1078
970
  :body => post_body)
1079
- return data, status_code, headers
971
+ return data
1080
972
  end
1081
973
 
1082
974
  # Add member to list
@@ -1086,15 +978,13 @@ module MailchimpMarketing
1086
978
 
1087
979
  query_params = {}
1088
980
  query_params[:'skip_merge_validation'] = opts[:'skip_merge_validation'] if !opts[:'skip_merge_validation'].nil?
1089
- form_params = {}
1090
981
  post_body = @api_client.object_to_http_body(body)
1091
982
 
1092
983
  local_var_path = '/lists/{list_id}/members'.sub('{' + 'list_id' + '}', list_id.to_s)
1093
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
984
+ data = @api_client.call_api(:POST, local_var_path,
1094
985
  :query_params => query_params,
1095
- :form_params => form_params,
1096
986
  :body => post_body)
1097
- return data, status_code, headers
987
+ return data
1098
988
  end
1099
989
 
1100
990
  # Delete list member
@@ -1103,15 +993,13 @@ module MailchimpMarketing
1103
993
  fail ArgumentError, "Missing required param: 'subscriber_hash'" if subscriber_hash.nil?
1104
994
 
1105
995
  query_params = {}
1106
- form_params = {}
1107
996
  post_body = nil
1108
997
 
1109
998
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}/actions/delete-permanent'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
1110
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
999
+ data = @api_client.call_api(:POST, local_var_path,
1111
1000
  :query_params => query_params,
1112
- :form_params => form_params,
1113
1001
  :body => post_body)
1114
- return data, status_code, headers
1002
+ return data
1115
1003
  end
1116
1004
 
1117
1005
  # Add member note
@@ -1120,15 +1008,13 @@ module MailchimpMarketing
1120
1008
  fail ArgumentError, "Missing required param: 'subscriber_hash'" if subscriber_hash.nil?
1121
1009
 
1122
1010
  query_params = {}
1123
- form_params = {}
1124
1011
  post_body = @api_client.object_to_http_body(opts[:'body'])
1125
1012
 
1126
1013
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}/notes'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
1127
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1014
+ data = @api_client.call_api(:POST, local_var_path,
1128
1015
  :query_params => query_params,
1129
- :form_params => form_params,
1130
1016
  :body => post_body)
1131
- return data, status_code, headers
1017
+ return data
1132
1018
  end
1133
1019
 
1134
1020
  # Add merge field
@@ -1137,15 +1023,13 @@ module MailchimpMarketing
1137
1023
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
1138
1024
 
1139
1025
  query_params = {}
1140
- form_params = {}
1141
1026
  post_body = @api_client.object_to_http_body(body)
1142
1027
 
1143
1028
  local_var_path = '/lists/{list_id}/merge-fields'.sub('{' + 'list_id' + '}', list_id.to_s)
1144
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1029
+ data = @api_client.call_api(:POST, local_var_path,
1145
1030
  :query_params => query_params,
1146
- :form_params => form_params,
1147
1031
  :body => post_body)
1148
- return data, status_code, headers
1032
+ return data
1149
1033
  end
1150
1034
 
1151
1035
  # Add segment
@@ -1154,15 +1038,13 @@ module MailchimpMarketing
1154
1038
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
1155
1039
 
1156
1040
  query_params = {}
1157
- form_params = {}
1158
1041
  post_body = @api_client.object_to_http_body(body)
1159
1042
 
1160
1043
  local_var_path = '/lists/{list_id}/segments'.sub('{' + 'list_id' + '}', list_id.to_s)
1161
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1044
+ data = @api_client.call_api(:POST, local_var_path,
1162
1045
  :query_params => query_params,
1163
- :form_params => form_params,
1164
1046
  :body => post_body)
1165
- return data, status_code, headers
1047
+ return data
1166
1048
  end
1167
1049
 
1168
1050
  # Batch add or remove members
@@ -1172,15 +1054,13 @@ module MailchimpMarketing
1172
1054
  fail ArgumentError, "Missing required param: 'segment_id'" if segment_id.nil?
1173
1055
 
1174
1056
  query_params = {}
1175
- form_params = {}
1176
1057
  post_body = @api_client.object_to_http_body(body)
1177
1058
 
1178
1059
  local_var_path = '/lists/{list_id}/segments/{segment_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'segment_id' + '}', segment_id.to_s)
1179
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1060
+ data = @api_client.call_api(:POST, local_var_path,
1180
1061
  :query_params => query_params,
1181
- :form_params => form_params,
1182
1062
  :body => post_body)
1183
- return data, status_code, headers
1063
+ return data
1184
1064
  end
1185
1065
 
1186
1066
  # Add member to segment
@@ -1190,15 +1070,13 @@ module MailchimpMarketing
1190
1070
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
1191
1071
 
1192
1072
  query_params = {}
1193
- form_params = {}
1194
1073
  post_body = @api_client.object_to_http_body(body)
1195
1074
 
1196
1075
  local_var_path = '/lists/{list_id}/segments/{segment_id}/members'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'segment_id' + '}', segment_id.to_s)
1197
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1076
+ data = @api_client.call_api(:POST, local_var_path,
1198
1077
  :query_params => query_params,
1199
- :form_params => form_params,
1200
1078
  :body => post_body)
1201
- return data, status_code, headers
1079
+ return data
1202
1080
  end
1203
1081
 
1204
1082
  # Customize signup form
@@ -1207,15 +1085,13 @@ module MailchimpMarketing
1207
1085
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
1208
1086
 
1209
1087
  query_params = {}
1210
- form_params = {}
1211
1088
  post_body = @api_client.object_to_http_body(body)
1212
1089
 
1213
1090
  local_var_path = '/lists/{list_id}/signup-forms'.sub('{' + 'list_id' + '}', list_id.to_s)
1214
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1091
+ data = @api_client.call_api(:POST, local_var_path,
1215
1092
  :query_params => query_params,
1216
- :form_params => form_params,
1217
1093
  :body => post_body)
1218
- return data, status_code, headers
1094
+ return data
1219
1095
  end
1220
1096
 
1221
1097
  # Add webhook
@@ -1224,15 +1100,13 @@ module MailchimpMarketing
1224
1100
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
1225
1101
 
1226
1102
  query_params = {}
1227
- form_params = {}
1228
1103
  post_body = @api_client.object_to_http_body(body)
1229
1104
 
1230
1105
  local_var_path = '/lists/{list_id}/webhooks'.sub('{' + 'list_id' + '}', list_id.to_s)
1231
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1106
+ data = @api_client.call_api(:POST, local_var_path,
1232
1107
  :query_params => query_params,
1233
- :form_params => form_params,
1234
1108
  :body => post_body)
1235
- return data, status_code, headers
1109
+ return data
1236
1110
  end
1237
1111
 
1238
1112
  # List segments
@@ -1253,15 +1127,13 @@ module MailchimpMarketing
1253
1127
  query_params[:'include_unsubscribed'] = opts[:'include_unsubscribed'] if !opts[:'include_unsubscribed'].nil?
1254
1128
  query_params[:'since_updated_at'] = opts[:'since_updated_at'] if !opts[:'since_updated_at'].nil?
1255
1129
  query_params[:'before_updated_at'] = opts[:'before_updated_at'] if !opts[:'before_updated_at'].nil?
1256
- form_params = {}
1257
1130
  post_body = nil
1258
1131
 
1259
1132
  local_var_path = '/lists/{list_id}/segments'.sub('{' + 'list_id' + '}', list_id.to_s)
1260
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1133
+ data = @api_client.call_api(:GET, local_var_path,
1261
1134
  :query_params => query_params,
1262
- :form_params => form_params,
1263
1135
  :body => post_body)
1264
- return data, status_code, headers
1136
+ return data
1265
1137
  end
1266
1138
 
1267
1139
  # Preview segment
@@ -1269,15 +1141,13 @@ module MailchimpMarketing
1269
1141
  fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
1270
1142
 
1271
1143
  query_params = {}
1272
- form_params = {}
1273
1144
  post_body = @api_client.object_to_http_body(opts[:'body'])
1274
1145
 
1275
1146
  local_var_path = '/lists/{list_id}/preview-segment'.sub('{' + 'list_id' + '}', list_id.to_s)
1276
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1147
+ data = @api_client.call_api(:POST, local_var_path,
1277
1148
  :query_params => query_params,
1278
- :form_params => form_params,
1279
1149
  :body => post_body)
1280
- return data, status_code, headers
1150
+ return data
1281
1151
  end
1282
1152
 
1283
1153
  # Add or update list member
@@ -1288,15 +1158,13 @@ module MailchimpMarketing
1288
1158
 
1289
1159
  query_params = {}
1290
1160
  query_params[:'skip_merge_validation'] = opts[:'skip_merge_validation'] if !opts[:'skip_merge_validation'].nil?
1291
- form_params = {}
1292
1161
  post_body = @api_client.object_to_http_body(body)
1293
1162
 
1294
1163
  local_var_path = '/lists/{list_id}/members/{subscriber_hash}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
1295
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1164
+ data = @api_client.call_api(:PUT, local_var_path,
1296
1165
  :query_params => query_params,
1297
- :form_params => form_params,
1298
1166
  :body => post_body)
1299
- return data, status_code, headers
1167
+ return data
1300
1168
  end
1301
1169
  end
1302
1170
  end