MailchimpMarketing 3.0.9 → 3.0.14

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 +4 -4
  2. data/LICENSE +53 -0
  3. data/MailchimpMarketing.gemspec +1 -1
  4. data/README.md +2 -2
  5. data/lib/MailchimpMarketing.rb +1 -1
  6. data/lib/MailchimpMarketing/api/activity_feed_api.rb +5 -5
  7. data/lib/MailchimpMarketing/api/authorized_apps_api.rb +7 -7
  8. data/lib/MailchimpMarketing/api/automations_api.rb +39 -39
  9. data/lib/MailchimpMarketing/api/batch_webhooks_api.rb +11 -11
  10. data/lib/MailchimpMarketing/api/batches_api.rb +9 -9
  11. data/lib/MailchimpMarketing/api/campaign_folders_api.rb +11 -11
  12. data/lib/MailchimpMarketing/api/campaigns_api.rb +45 -45
  13. data/lib/MailchimpMarketing/api/connected_sites_api.rb +11 -11
  14. data/lib/MailchimpMarketing/api/conversations_api.rb +11 -11
  15. data/lib/MailchimpMarketing/api/dashboard_api.rb +13 -13
  16. data/lib/MailchimpMarketing/api/ecommerce_api.rb +119 -119
  17. data/lib/MailchimpMarketing/api/external_auths_api.rb +7 -7
  18. data/lib/MailchimpMarketing/api/facebook_ads_api.rb +5 -5
  19. data/lib/MailchimpMarketing/api/file_manager_api.rb +23 -23
  20. data/lib/MailchimpMarketing/api/landing_pages_api.rb +17 -17
  21. data/lib/MailchimpMarketing/api/lists_api.rb +136 -135
  22. data/lib/MailchimpMarketing/api/ping_api.rb +3 -3
  23. data/lib/MailchimpMarketing/api/postcards_api.rb +3 -3
  24. data/lib/MailchimpMarketing/api/reporting_api.rb +13 -13
  25. data/lib/MailchimpMarketing/api/reports_api.rb +45 -45
  26. data/lib/MailchimpMarketing/api/root_api.rb +3 -3
  27. data/lib/MailchimpMarketing/api/search_campaigns_api.rb +3 -3
  28. data/lib/MailchimpMarketing/api/search_members_api.rb +3 -3
  29. data/lib/MailchimpMarketing/api/template_folders_api.rb +11 -11
  30. data/lib/MailchimpMarketing/api/templates_api.rb +13 -13
  31. data/lib/MailchimpMarketing/api/verified_domains_api.rb +11 -11
  32. data/lib/MailchimpMarketing/api_client.rb +10 -8
  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 +3 -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: 3.0.9
6
+ OpenAPI spec version: 3.0.14
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
@@ -27,10 +27,10 @@ module MailchimpMarketing
27
27
  post_body = nil
28
28
 
29
29
  local_var_path = '/ping'
30
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
30
+ data = @api_client.call_api(:GET, local_var_path,
31
31
  :query_params => query_params,
32
32
  :body => post_body)
33
- return data, status_code, headers
33
+ return data
34
34
  end
35
35
  end
36
36
  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: 3.0.9
6
+ OpenAPI spec version: 3.0.14
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
@@ -33,10 +33,10 @@ module MailchimpMarketing
33
33
  post_body = nil
34
34
 
35
35
  local_var_path = '/postcards'
36
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
36
+ data = @api_client.call_api(:GET, local_var_path,
37
37
  :query_params => query_params,
38
38
  :body => post_body)
39
- return data, status_code, headers
39
+ return data
40
40
  end
41
41
  end
42
42
  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: 3.0.9
6
+ OpenAPI spec version: 3.0.14
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
@@ -27,10 +27,10 @@ module MailchimpMarketing
27
27
  post_body = nil
28
28
 
29
29
  local_var_path = '/reporting'
30
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
30
+ data = @api_client.call_api(:GET, local_var_path,
31
31
  :query_params => query_params,
32
32
  :body => post_body)
33
- return data, status_code, headers
33
+ return data
34
34
  end
35
35
 
36
36
  # List facebook ads reports
@@ -49,10 +49,10 @@ module MailchimpMarketing
49
49
  post_body = nil
50
50
 
51
51
  local_var_path = '/reporting/facebook-ads'
52
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
52
+ data = @api_client.call_api(:GET, local_var_path,
53
53
  :query_params => query_params,
54
54
  :body => post_body)
55
- return data, status_code, headers
55
+ return data
56
56
  end
57
57
 
58
58
  # Get facebook ad report
@@ -65,10 +65,10 @@ module MailchimpMarketing
65
65
  post_body = nil
66
66
 
67
67
  local_var_path = '/reporting/facebook-ads/{outreach_id}'.sub('{' + 'outreach_id' + '}', outreach_id.to_s)
68
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
68
+ data = @api_client.call_api(:GET, local_var_path,
69
69
  :query_params => query_params,
70
70
  :body => post_body)
71
- return data, status_code, headers
71
+ return data
72
72
  end
73
73
 
74
74
  # List facebook ecommerce report
@@ -86,10 +86,10 @@ module MailchimpMarketing
86
86
  post_body = nil
87
87
 
88
88
  local_var_path = '/reporting/facebook-ads/{outreach_id}/ecommerce-product-activity'.sub('{' + 'outreach_id' + '}', outreach_id.to_s)
89
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
89
+ data = @api_client.call_api(:GET, local_var_path,
90
90
  :query_params => query_params,
91
91
  :body => post_body)
92
- return data, status_code, headers
92
+ return data
93
93
  end
94
94
 
95
95
  # List landing pages reports
@@ -104,10 +104,10 @@ module MailchimpMarketing
104
104
  post_body = nil
105
105
 
106
106
  local_var_path = '/reporting/landing-pages'
107
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
107
+ data = @api_client.call_api(:GET, local_var_path,
108
108
  :query_params => query_params,
109
109
  :body => post_body)
110
- return data, status_code, headers
110
+ return data
111
111
  end
112
112
 
113
113
  # Get landing page report
@@ -120,10 +120,10 @@ module MailchimpMarketing
120
120
  post_body = nil
121
121
 
122
122
  local_var_path = '/reporting/landing-pages/{outreach_id}'.sub('{' + 'outreach_id' + '}', outreach_id.to_s)
123
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
123
+ data = @api_client.call_api(:GET, local_var_path,
124
124
  :query_params => query_params,
125
125
  :body => post_body)
126
- return data, status_code, headers
126
+ return data
127
127
  end
128
128
  end
129
129
  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: 3.0.9
6
+ OpenAPI spec version: 3.0.14
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
@@ -36,10 +36,10 @@ module MailchimpMarketing
36
36
  post_body = nil
37
37
 
38
38
  local_var_path = '/reports'
39
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
39
+ data = @api_client.call_api(:GET, local_var_path,
40
40
  :query_params => query_params,
41
41
  :body => post_body)
42
- return data, status_code, headers
42
+ return data
43
43
  end
44
44
 
45
45
  # Get campaign report
@@ -52,10 +52,10 @@ module MailchimpMarketing
52
52
  post_body = nil
53
53
 
54
54
  local_var_path = '/reports/{campaign_id}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
55
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
55
+ data = @api_client.call_api(:GET, local_var_path,
56
56
  :query_params => query_params,
57
57
  :body => post_body)
58
- return data, status_code, headers
58
+ return data
59
59
  end
60
60
 
61
61
  # List abuse reports
@@ -68,10 +68,10 @@ module MailchimpMarketing
68
68
  post_body = nil
69
69
 
70
70
  local_var_path = '/reports/{campaign_id}/abuse-reports'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
71
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
71
+ data = @api_client.call_api(:GET, local_var_path,
72
72
  :query_params => query_params,
73
73
  :body => post_body)
74
- return data, status_code, headers
74
+ return data
75
75
  end
76
76
 
77
77
  # Get abuse report
@@ -85,10 +85,10 @@ module MailchimpMarketing
85
85
  post_body = nil
86
86
 
87
87
  local_var_path = '/reports/{campaign_id}/abuse-reports/{report_id}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'report_id' + '}', report_id.to_s)
88
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
88
+ data = @api_client.call_api(:GET, local_var_path,
89
89
  :query_params => query_params,
90
90
  :body => post_body)
91
- return data, status_code, headers
91
+ return data
92
92
  end
93
93
 
94
94
  # List campaign feedback
@@ -101,10 +101,10 @@ module MailchimpMarketing
101
101
  post_body = nil
102
102
 
103
103
  local_var_path = '/reports/{campaign_id}/advice'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
104
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
104
+ data = @api_client.call_api(:GET, local_var_path,
105
105
  :query_params => query_params,
106
106
  :body => post_body)
107
- return data, status_code, headers
107
+ return data
108
108
  end
109
109
 
110
110
  # List campaign details
@@ -120,10 +120,10 @@ module MailchimpMarketing
120
120
  post_body = nil
121
121
 
122
122
  local_var_path = '/reports/{campaign_id}/click-details'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
123
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
123
+ data = @api_client.call_api(:GET, local_var_path,
124
124
  :query_params => query_params,
125
125
  :body => post_body)
126
- return data, status_code, headers
126
+ return data
127
127
  end
128
128
 
129
129
  # Get campaign link details
@@ -137,10 +137,10 @@ module MailchimpMarketing
137
137
  post_body = nil
138
138
 
139
139
  local_var_path = '/reports/{campaign_id}/click-details/{link_id}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'link_id' + '}', link_id.to_s)
140
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
140
+ data = @api_client.call_api(:GET, local_var_path,
141
141
  :query_params => query_params,
142
142
  :body => post_body)
143
- return data, status_code, headers
143
+ return data
144
144
  end
145
145
 
146
146
  # List clicked link subscribers
@@ -157,10 +157,10 @@ module MailchimpMarketing
157
157
  post_body = nil
158
158
 
159
159
  local_var_path = '/reports/{campaign_id}/click-details/{link_id}/members'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'link_id' + '}', link_id.to_s)
160
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
160
+ data = @api_client.call_api(:GET, local_var_path,
161
161
  :query_params => query_params,
162
162
  :body => post_body)
163
- return data, status_code, headers
163
+ return data
164
164
  end
165
165
 
166
166
  # Get clicked link subscriber
@@ -175,10 +175,10 @@ module MailchimpMarketing
175
175
  post_body = nil
176
176
 
177
177
  local_var_path = '/reports/{campaign_id}/click-details/{link_id}/members/{subscriber_hash}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'link_id' + '}', link_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
178
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
178
+ data = @api_client.call_api(:GET, local_var_path,
179
179
  :query_params => query_params,
180
180
  :body => post_body)
181
- return data, status_code, headers
181
+ return data
182
182
  end
183
183
 
184
184
  # List domain performance stats
@@ -191,10 +191,10 @@ module MailchimpMarketing
191
191
  post_body = nil
192
192
 
193
193
  local_var_path = '/reports/{campaign_id}/domain-performance'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
194
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
194
+ data = @api_client.call_api(:GET, local_var_path,
195
195
  :query_params => query_params,
196
196
  :body => post_body)
197
- return data, status_code, headers
197
+ return data
198
198
  end
199
199
 
200
200
  # List campaign product activity
@@ -212,10 +212,10 @@ module MailchimpMarketing
212
212
  post_body = nil
213
213
 
214
214
  local_var_path = '/reports/{campaign_id}/ecommerce-product-activity'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
215
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
215
+ data = @api_client.call_api(:GET, local_var_path,
216
216
  :query_params => query_params,
217
217
  :body => post_body)
218
- return data, status_code, headers
218
+ return data
219
219
  end
220
220
 
221
221
  # List eep url activity
@@ -228,10 +228,10 @@ module MailchimpMarketing
228
228
  post_body = nil
229
229
 
230
230
  local_var_path = '/reports/{campaign_id}/eepurl'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
231
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
231
+ data = @api_client.call_api(:GET, local_var_path,
232
232
  :query_params => query_params,
233
233
  :body => post_body)
234
- return data, status_code, headers
234
+ return data
235
235
  end
236
236
 
237
237
  # List email activity
@@ -248,10 +248,10 @@ module MailchimpMarketing
248
248
  post_body = nil
249
249
 
250
250
  local_var_path = '/reports/{campaign_id}/email-activity'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
251
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
251
+ data = @api_client.call_api(:GET, local_var_path,
252
252
  :query_params => query_params,
253
253
  :body => post_body)
254
- return data, status_code, headers
254
+ return data
255
255
  end
256
256
 
257
257
  # Get subscriber email activity
@@ -266,10 +266,10 @@ module MailchimpMarketing
266
266
  post_body = nil
267
267
 
268
268
  local_var_path = '/reports/{campaign_id}/email-activity/{subscriber_hash}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
269
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
269
+ data = @api_client.call_api(:GET, local_var_path,
270
270
  :query_params => query_params,
271
271
  :body => post_body)
272
- return data, status_code, headers
272
+ return data
273
273
  end
274
274
 
275
275
  # List top open activities
@@ -285,10 +285,10 @@ module MailchimpMarketing
285
285
  post_body = nil
286
286
 
287
287
  local_var_path = '/reports/{campaign_id}/locations'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
288
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
288
+ data = @api_client.call_api(:GET, local_var_path,
289
289
  :query_params => query_params,
290
290
  :body => post_body)
291
- return data, status_code, headers
291
+ return data
292
292
  end
293
293
 
294
294
  # List campaign open details
@@ -305,10 +305,10 @@ module MailchimpMarketing
305
305
  post_body = nil
306
306
 
307
307
  local_var_path = '/reports/{campaign_id}/open-details'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
308
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
308
+ data = @api_client.call_api(:GET, local_var_path,
309
309
  :query_params => query_params,
310
310
  :body => post_body)
311
- return data, status_code, headers
311
+ return data
312
312
  end
313
313
 
314
314
  # Get opened campaign subscriber
@@ -322,10 +322,10 @@ module MailchimpMarketing
322
322
  post_body = nil
323
323
 
324
324
  local_var_path = '/reports/{campaign_id}/open-details/{subscriber_hash}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
325
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
325
+ data = @api_client.call_api(:GET, local_var_path,
326
326
  :query_params => query_params,
327
327
  :body => post_body)
328
- return data, status_code, headers
328
+ return data
329
329
  end
330
330
 
331
331
  # List campaign recipients
@@ -341,10 +341,10 @@ module MailchimpMarketing
341
341
  post_body = nil
342
342
 
343
343
  local_var_path = '/reports/{campaign_id}/sent-to'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
344
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
344
+ data = @api_client.call_api(:GET, local_var_path,
345
345
  :query_params => query_params,
346
346
  :body => post_body)
347
- return data, status_code, headers
347
+ return data
348
348
  end
349
349
 
350
350
  # Get campaign recipient info
@@ -358,10 +358,10 @@ module MailchimpMarketing
358
358
  post_body = nil
359
359
 
360
360
  local_var_path = '/reports/{campaign_id}/sent-to/{subscriber_hash}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
361
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
361
+ data = @api_client.call_api(:GET, local_var_path,
362
362
  :query_params => query_params,
363
363
  :body => post_body)
364
- return data, status_code, headers
364
+ return data
365
365
  end
366
366
 
367
367
  # List child campaign reports
@@ -374,10 +374,10 @@ module MailchimpMarketing
374
374
  post_body = nil
375
375
 
376
376
  local_var_path = '/reports/{campaign_id}/sub-reports'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
377
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
377
+ data = @api_client.call_api(:GET, local_var_path,
378
378
  :query_params => query_params,
379
379
  :body => post_body)
380
- return data, status_code, headers
380
+ return data
381
381
  end
382
382
 
383
383
  # List unsubscribed members
@@ -393,10 +393,10 @@ module MailchimpMarketing
393
393
  post_body = nil
394
394
 
395
395
  local_var_path = '/reports/{campaign_id}/unsubscribed'.sub('{' + 'campaign_id' + '}', campaign_id.to_s)
396
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
396
+ data = @api_client.call_api(:GET, local_var_path,
397
397
  :query_params => query_params,
398
398
  :body => post_body)
399
- return data, status_code, headers
399
+ return data
400
400
  end
401
401
 
402
402
  # Get unsubscribed member
@@ -410,10 +410,10 @@ module MailchimpMarketing
410
410
  post_body = nil
411
411
 
412
412
  local_var_path = '/reports/{campaign_id}/unsubscribed/{subscriber_hash}'.sub('{' + 'campaign_id' + '}', campaign_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
413
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
413
+ data = @api_client.call_api(:GET, local_var_path,
414
414
  :query_params => query_params,
415
415
  :body => post_body)
416
- return data, status_code, headers
416
+ return data
417
417
  end
418
418
  end
419
419
  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: 3.0.9
6
+ OpenAPI spec version: 3.0.14
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
@@ -29,10 +29,10 @@ module MailchimpMarketing
29
29
  post_body = nil
30
30
 
31
31
  local_var_path = '/'
32
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
32
+ data = @api_client.call_api(:GET, local_var_path,
33
33
  :query_params => query_params,
34
34
  :body => post_body)
35
- return data, status_code, headers
35
+ return data
36
36
  end
37
37
  end
38
38
  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: 3.0.9
6
+ OpenAPI spec version: 3.0.14
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
@@ -31,10 +31,10 @@ module MailchimpMarketing
31
31
  post_body = nil
32
32
 
33
33
  local_var_path = '/search-campaigns'
34
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
34
+ data = @api_client.call_api(:GET, local_var_path,
35
35
  :query_params => query_params,
36
36
  :body => post_body)
37
- return data, status_code, headers
37
+ return data
38
38
  end
39
39
  end
40
40
  end