MailchimpMarketing 3.0.19 → 3.0.21
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.
- checksums.yaml +4 -4
- data/MailchimpMarketing.gemspec +1 -1
- data/README.md +2 -14
- data/lib/MailchimpMarketing.rb +1 -16
- data/lib/MailchimpMarketing/api/activity_feed_api.rb +1 -1
- data/lib/MailchimpMarketing/api/authorized_apps_api.rb +1 -1
- data/lib/MailchimpMarketing/api/automations_api.rb +4 -1
- data/lib/MailchimpMarketing/api/batch_webhooks_api.rb +1 -1
- data/lib/MailchimpMarketing/api/batches_api.rb +1 -1
- data/lib/MailchimpMarketing/api/campaign_folders_api.rb +1 -1
- data/lib/MailchimpMarketing/api/campaigns_api.rb +1 -1
- data/lib/MailchimpMarketing/api/connected_sites_api.rb +1 -1
- data/lib/MailchimpMarketing/api/conversations_api.rb +1 -1
- data/lib/MailchimpMarketing/api/ecommerce_api.rb +1 -3
- data/lib/MailchimpMarketing/api/facebook_ads_api.rb +1 -1
- data/lib/MailchimpMarketing/api/file_manager_api.rb +1 -1
- data/lib/MailchimpMarketing/api/landing_pages_api.rb +2 -1
- data/lib/MailchimpMarketing/api/lists_api.rb +2 -32
- data/lib/MailchimpMarketing/api/ping_api.rb +1 -1
- data/lib/MailchimpMarketing/api/reporting_api.rb +1 -1
- data/lib/MailchimpMarketing/api/reports_api.rb +2 -2
- data/lib/MailchimpMarketing/api/root_api.rb +1 -1
- data/lib/MailchimpMarketing/api/search_campaigns_api.rb +1 -1
- data/lib/MailchimpMarketing/api/search_members_api.rb +1 -1
- data/lib/MailchimpMarketing/api/template_folders_api.rb +1 -1
- data/lib/MailchimpMarketing/api/templates_api.rb +1 -1
- data/lib/MailchimpMarketing/api/verified_domains_api.rb +1 -1
- data/lib/MailchimpMarketing/api_client.rb +1 -1
- data/lib/MailchimpMarketing/api_error.rb +1 -1
- data/lib/MailchimpMarketing/configuration.rb +1 -1
- data/lib/MailchimpMarketing/version.rb +2 -2
- metadata +2 -5
- data/lib/MailchimpMarketing/api/dashboard_api.rb +0 -115
- data/lib/MailchimpMarketing/api/external_auths_api.rb +0 -71
- data/lib/MailchimpMarketing/api/postcards_api.rb +0 -42
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2cc613fc785d9bb9041f2810f07e3353c80e5015f71e8171bbe693b2c5eaf714
|
|
4
|
+
data.tar.gz: 4dafb79030bde67d35cff88b6a8fc292823b1726a78c0e69cbb17cf7383ee292
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c8953fc56a5954645982808ac9e0a965493f54b54b9e91d3944dfb325a4de4b4b426bd3635e6fb6aab33afeeffdc65ea0410635923926bedd43b7ba2beaca9b2
|
|
7
|
+
data.tar.gz: 5d59ffaabfef9dca9b85523d6740980f7cd974a113bc555db43e317c0558b58f5fcf085cb86a7bebb36e59a2d1e2bcba0fa15ab555cafd0c2f0de7090e0f17b3
|
data/MailchimpMarketing.gemspec
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
7
7
|
|
|
8
|
-
OpenAPI spec version: 3.0.
|
|
8
|
+
OpenAPI spec version: 3.0.21
|
|
9
9
|
Contact: apihelp@mailchimp.com
|
|
10
10
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
11
|
Swagger Codegen version: 2.4.12
|
data/README.md
CHANGED
|
@@ -20,8 +20,8 @@ gem 'MailchimpMarketing', :git => 'https://github.com/mailchimp/mailchimp-market
|
|
|
20
20
|
|
|
21
21
|
```shell
|
|
22
22
|
gem build MailchimpMarketing.gemspec
|
|
23
|
-
gem install ./MailchimpMarketing-3.0.
|
|
24
|
-
gem 'MailchimpMarketing', '~> 3.0.
|
|
23
|
+
gem install ./MailchimpMarketing-3.0.21.gem
|
|
24
|
+
gem 'MailchimpMarketing', '~> 3.0.21'
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## Quick Start
|
|
@@ -151,12 +151,6 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
|
151
151
|
| **conversations.get_conversation_messages** | /conversations/{conversation_id}/messages |
|
|
152
152
|
| **conversations.get_conversation_message** | /conversations/{conversation_id}/messages/{message_id} |
|
|
153
153
|
| **conversations.create_conversation_message** | /conversations/{conversation_id}/messages |
|
|
154
|
-
| **dashboard.ads** | /dashboard/ads |
|
|
155
|
-
| **dashboard.audiences** | /dashboard/audiences |
|
|
156
|
-
| **dashboard.charts** | /dashboard/charts |
|
|
157
|
-
| **dashboard.ecommerce** | /dashboard/ecommerce |
|
|
158
|
-
| **dashboard.engagement** | /dashboard/engagement |
|
|
159
|
-
| **dashboard.homepage** | /dashboard/homepage |
|
|
160
154
|
| **ecommerce.delete_store** | /ecommerce/stores/{store_id} |
|
|
161
155
|
| **ecommerce.delete_store_cart** | /ecommerce/stores/{store_id}/carts/{cart_id} |
|
|
162
156
|
| **ecommerce.delete_cart_line_item** | /ecommerce/stores/{store_id}/carts/{cart_id}/lines/{line_id} |
|
|
@@ -216,9 +210,6 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
|
216
210
|
| **ecommerce.add_promo_rules** | /ecommerce/stores/{store_id}/promo-rules |
|
|
217
211
|
| **ecommerce.set_store_customer** | /ecommerce/stores/{store_id}/customers/{customer_id} |
|
|
218
212
|
| **ecommerce.add_product_variant** | /ecommerce/stores/{store_id}/products/{product_id}/variants/{variant_id} |
|
|
219
|
-
| **externalAuths.get** | /external-auths/{system_id} |
|
|
220
|
-
| **externalAuths.get_collection** | /external-auths |
|
|
221
|
-
| **externalAuths.create** | /external-auths |
|
|
222
213
|
| **facebookAds.list** | /facebook-ads |
|
|
223
214
|
| **facebookAds.get_ad** | /facebook-ads/{outreach_id} |
|
|
224
215
|
| **fileManager.delete_file** | /file-manager/files/{file_id} |
|
|
@@ -256,7 +247,6 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
|
256
247
|
| **lists.get_list_abuse_report_details** | /lists/{list_id}/abuse-reports/{report_id} |
|
|
257
248
|
| **lists.get_list_recent_activity** | /lists/{list_id}/activity |
|
|
258
249
|
| **lists.get_list_clients** | /lists/{list_id}/clients |
|
|
259
|
-
| **lists.get_list_external_ids** | /lists/{list_id}/external-ids |
|
|
260
250
|
| **lists.get_list_growth_history** | /lists/{list_id}/growth-history |
|
|
261
251
|
| **lists.get_list_growth_history_by_month** | /lists/{list_id}/growth-history/{month} |
|
|
262
252
|
| **lists.get_list_interest_categories** | /lists/{list_id}/interest-categories |
|
|
@@ -291,7 +281,6 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
|
291
281
|
| **lists.update_list_member_tags** | /lists/{list_id}/members/{subscriber_hash}/tags |
|
|
292
282
|
| **lists.create_list** | /lists |
|
|
293
283
|
| **lists.batch_list_members** | /lists/{list_id} |
|
|
294
|
-
| **lists.create_list_external_id** | /lists/{list_id}/external-ids |
|
|
295
284
|
| **lists.create_list_interest_category** | /lists/{list_id}/interest-categories |
|
|
296
285
|
| **lists.create_interest_category_interest** | /lists/{list_id}/interest-categories/{interest_category_id}/interests |
|
|
297
286
|
| **lists.add_list_member** | /lists/{list_id}/members |
|
|
@@ -307,7 +296,6 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
|
307
296
|
| **lists.preview_segment** | /lists/{list_id}/preview-segment |
|
|
308
297
|
| **lists.set_list_member** | /lists/{list_id}/members/{subscriber_hash} |
|
|
309
298
|
| **ping.get** | /ping |
|
|
310
|
-
| **postcards.get_all** | /postcards |
|
|
311
299
|
| **reporting.info** | /reporting |
|
|
312
300
|
| **reporting.get_facebook_ads_report_all** | /reporting/facebook-ads |
|
|
313
301
|
| **reporting.get_facebook_ad_report** | /reporting/facebook-ads/{outreach_id} |
|
data/lib/MailchimpMarketing.rb
CHANGED
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -25,15 +25,12 @@ require 'MailchimpMarketing/api/campaign_folders_api'
|
|
|
25
25
|
require 'MailchimpMarketing/api/campaigns_api'
|
|
26
26
|
require 'MailchimpMarketing/api/connected_sites_api'
|
|
27
27
|
require 'MailchimpMarketing/api/conversations_api'
|
|
28
|
-
require 'MailchimpMarketing/api/dashboard_api'
|
|
29
28
|
require 'MailchimpMarketing/api/ecommerce_api'
|
|
30
|
-
require 'MailchimpMarketing/api/external_auths_api'
|
|
31
29
|
require 'MailchimpMarketing/api/facebook_ads_api'
|
|
32
30
|
require 'MailchimpMarketing/api/file_manager_api'
|
|
33
31
|
require 'MailchimpMarketing/api/landing_pages_api'
|
|
34
32
|
require 'MailchimpMarketing/api/lists_api'
|
|
35
33
|
require 'MailchimpMarketing/api/ping_api'
|
|
36
|
-
require 'MailchimpMarketing/api/postcards_api'
|
|
37
34
|
require 'MailchimpMarketing/api/reporting_api'
|
|
38
35
|
require 'MailchimpMarketing/api/reports_api'
|
|
39
36
|
require 'MailchimpMarketing/api/root_api'
|
|
@@ -57,15 +54,12 @@ module MailchimpMarketing
|
|
|
57
54
|
@Campaigns = CampaignsApi.new(@api_client)
|
|
58
55
|
@ConnectedSites = ConnectedSitesApi.new(@api_client)
|
|
59
56
|
@Conversations = ConversationsApi.new(@api_client)
|
|
60
|
-
@Dashboard = DashboardApi.new(@api_client)
|
|
61
57
|
@Ecommerce = EcommerceApi.new(@api_client)
|
|
62
|
-
@ExternalAuths = ExternalAuthsApi.new(@api_client)
|
|
63
58
|
@FacebookAds = FacebookAdsApi.new(@api_client)
|
|
64
59
|
@FileManager = FileManagerApi.new(@api_client)
|
|
65
60
|
@LandingPages = LandingPagesApi.new(@api_client)
|
|
66
61
|
@Lists = ListsApi.new(@api_client)
|
|
67
62
|
@Ping = PingApi.new(@api_client)
|
|
68
|
-
@Postcards = PostcardsApi.new(@api_client)
|
|
69
63
|
@Reporting = ReportingApi.new(@api_client)
|
|
70
64
|
@Reports = ReportsApi.new(@api_client)
|
|
71
65
|
@Root = RootApi.new(@api_client)
|
|
@@ -107,15 +101,9 @@ module MailchimpMarketing
|
|
|
107
101
|
def conversations
|
|
108
102
|
@Conversations
|
|
109
103
|
end
|
|
110
|
-
def dashboard
|
|
111
|
-
@Dashboard
|
|
112
|
-
end
|
|
113
104
|
def ecommerce
|
|
114
105
|
@Ecommerce
|
|
115
106
|
end
|
|
116
|
-
def externalAuths
|
|
117
|
-
@ExternalAuths
|
|
118
|
-
end
|
|
119
107
|
def facebookAds
|
|
120
108
|
@FacebookAds
|
|
121
109
|
end
|
|
@@ -131,9 +119,6 @@ module MailchimpMarketing
|
|
|
131
119
|
def ping
|
|
132
120
|
@Ping
|
|
133
121
|
end
|
|
134
|
-
def postcards
|
|
135
|
-
@Postcards
|
|
136
|
-
end
|
|
137
122
|
def reporting
|
|
138
123
|
@Reporting
|
|
139
124
|
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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -51,9 +51,12 @@ module MailchimpMarketing
|
|
|
51
51
|
|
|
52
52
|
# List automations
|
|
53
53
|
def list(opts = {})
|
|
54
|
+
fail ArgumentError, 'invalid value for "opts[:"count"]", must be smaller than or equal to 1000.' if !opts[:'count'].nil? && opts[:'count'] > 1000
|
|
54
55
|
fail ArgumentError, 'invalid value for "status", must be one of save, paused, sending' if opts[:'status'] && !['save', 'paused', 'sending'].include?(opts[:'status'])
|
|
55
56
|
|
|
56
57
|
query_params = {}
|
|
58
|
+
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
|
59
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
57
60
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
|
58
61
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
|
59
62
|
query_params[:'before_create_time'] = opts[:'before_create_time'] if !opts[:'before_create_time'].nil?
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -450,13 +450,11 @@ module MailchimpMarketing
|
|
|
450
450
|
# List product
|
|
451
451
|
def get_all_store_products(store_id, opts = {})
|
|
452
452
|
fail ArgumentError, "Missing required param: 'store_id'" if store_id.nil?
|
|
453
|
-
fail ArgumentError, 'invalid value for "sort_field", must be one of title, created_at, price' if opts[:'sort_field'] && !['title', 'created_at', 'price'].include?(opts[:'sort_field'])
|
|
454
453
|
fail ArgumentError, 'invalid value for "opts[:"count"]", must be smaller than or equal to 1000.' if !opts[:'count'].nil? && opts[:'count'] > 1000
|
|
455
454
|
|
|
456
455
|
query_params = {}
|
|
457
456
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
|
458
457
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
|
459
|
-
query_params[:'sort_field'] = opts[:'sort_field'] if !opts[:'sort_field'].nil?
|
|
460
458
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
|
461
459
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
462
460
|
post_body = nil
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -107,6 +107,7 @@ module MailchimpMarketing
|
|
|
107
107
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
|
108
108
|
|
|
109
109
|
query_params = {}
|
|
110
|
+
query_params[:'use_default_list'] = opts[:'use_default_list'] if !opts[:'use_default_list'].nil?
|
|
110
111
|
post_body = @api_client.object_to_http_body(body)
|
|
111
112
|
|
|
112
113
|
local_var_path = '/landing-pages'
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -195,6 +195,7 @@ module MailchimpMarketing
|
|
|
195
195
|
query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
|
|
196
196
|
query_params[:'sort_field'] = opts[:'sort_field'] if !opts[:'sort_field'].nil?
|
|
197
197
|
query_params[:'sort_dir'] = opts[:'sort_dir'] if !opts[:'sort_dir'].nil?
|
|
198
|
+
query_params[:'has_ecommerce_store'] = opts[:'has_ecommerce_store'] if !opts[:'has_ecommerce_store'].nil?
|
|
198
199
|
post_body = nil
|
|
199
200
|
|
|
200
201
|
local_var_path = '/lists'
|
|
@@ -291,23 +292,6 @@ module MailchimpMarketing
|
|
|
291
292
|
return data
|
|
292
293
|
end
|
|
293
294
|
|
|
294
|
-
# List external i ds
|
|
295
|
-
def get_list_external_ids(list_id, opts = {})
|
|
296
|
-
fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
|
|
297
|
-
fail ArgumentError, 'invalid value for "opts[:"count"]", must be smaller than or equal to 1000.' if !opts[:'count'].nil? && opts[:'count'] > 1000
|
|
298
|
-
|
|
299
|
-
query_params = {}
|
|
300
|
-
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
|
301
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
302
|
-
post_body = nil
|
|
303
|
-
|
|
304
|
-
local_var_path = '/lists/{list_id}/external-ids'.sub('{' + 'list_id' + '}', list_id.to_s)
|
|
305
|
-
data = @api_client.call_api(:GET, local_var_path,
|
|
306
|
-
:query_params => query_params,
|
|
307
|
-
:body => post_body)
|
|
308
|
-
return data
|
|
309
|
-
end
|
|
310
|
-
|
|
311
295
|
# List growth history data
|
|
312
296
|
def get_list_growth_history(list_id, opts = {})
|
|
313
297
|
fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
|
|
@@ -926,20 +910,6 @@ module MailchimpMarketing
|
|
|
926
910
|
return data
|
|
927
911
|
end
|
|
928
912
|
|
|
929
|
-
# Add external id
|
|
930
|
-
def create_list_external_id(list_id, opts = {})
|
|
931
|
-
fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
|
|
932
|
-
|
|
933
|
-
query_params = {}
|
|
934
|
-
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
935
|
-
|
|
936
|
-
local_var_path = '/lists/{list_id}/external-ids'.sub('{' + 'list_id' + '}', list_id.to_s)
|
|
937
|
-
data = @api_client.call_api(:POST, local_var_path,
|
|
938
|
-
:query_params => query_params,
|
|
939
|
-
:body => post_body)
|
|
940
|
-
return data
|
|
941
|
-
end
|
|
942
|
-
|
|
943
913
|
# Add interest category
|
|
944
914
|
def create_list_interest_category(list_id, body, opts = {})
|
|
945
915
|
fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -218,7 +218,7 @@ module MailchimpMarketing
|
|
|
218
218
|
return data
|
|
219
219
|
end
|
|
220
220
|
|
|
221
|
-
# List
|
|
221
|
+
# List EepURL activity
|
|
222
222
|
def get_eepurl_activity_for_campaign(campaign_id, opts = {})
|
|
223
223
|
fail ArgumentError, "Missing required param: 'campaign_id'" if campaign_id.nil?
|
|
224
224
|
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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
|
|
@@ -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.
|
|
6
|
+
OpenAPI spec version: 3.0.21
|
|
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,5 +11,5 @@ Swagger Codegen version: 2.4.12
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module MailchimpMarketing
|
|
14
|
-
VERSION = '3.0.
|
|
14
|
+
VERSION = '3.0.21'
|
|
15
15
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: MailchimpMarketing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.21
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Swagger-Codegen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-09-
|
|
11
|
+
date: 2020-09-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: excon
|
|
@@ -205,15 +205,12 @@ files:
|
|
|
205
205
|
- lib/MailchimpMarketing/api/campaigns_api.rb
|
|
206
206
|
- lib/MailchimpMarketing/api/connected_sites_api.rb
|
|
207
207
|
- lib/MailchimpMarketing/api/conversations_api.rb
|
|
208
|
-
- lib/MailchimpMarketing/api/dashboard_api.rb
|
|
209
208
|
- lib/MailchimpMarketing/api/ecommerce_api.rb
|
|
210
|
-
- lib/MailchimpMarketing/api/external_auths_api.rb
|
|
211
209
|
- lib/MailchimpMarketing/api/facebook_ads_api.rb
|
|
212
210
|
- lib/MailchimpMarketing/api/file_manager_api.rb
|
|
213
211
|
- lib/MailchimpMarketing/api/landing_pages_api.rb
|
|
214
212
|
- lib/MailchimpMarketing/api/lists_api.rb
|
|
215
213
|
- lib/MailchimpMarketing/api/ping_api.rb
|
|
216
|
-
- lib/MailchimpMarketing/api/postcards_api.rb
|
|
217
214
|
- lib/MailchimpMarketing/api/reporting_api.rb
|
|
218
215
|
- lib/MailchimpMarketing/api/reports_api.rb
|
|
219
216
|
- lib/MailchimpMarketing/api/root_api.rb
|
|
@@ -1,115 +0,0 @@
|
|
|
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.19
|
|
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
|
-
|
|
15
|
-
module MailchimpMarketing
|
|
16
|
-
class DashboardApi
|
|
17
|
-
attr_accessor :api_client
|
|
18
|
-
|
|
19
|
-
def initialize(api_client)
|
|
20
|
-
@api_client = api_client
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
# List dashboard ads
|
|
24
|
-
def ads(opts = {})
|
|
25
|
-
|
|
26
|
-
query_params = {}
|
|
27
|
-
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
|
28
|
-
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
|
29
|
-
query_params[:'platform'] = opts[:'platform'] if !opts[:'platform'].nil?
|
|
30
|
-
query_params[:'num'] = opts[:'num'] if !opts[:'num'].nil?
|
|
31
|
-
post_body = nil
|
|
32
|
-
|
|
33
|
-
local_var_path = '/dashboard/ads'
|
|
34
|
-
data = @api_client.call_api(:GET, local_var_path,
|
|
35
|
-
:query_params => query_params,
|
|
36
|
-
:body => post_body)
|
|
37
|
-
return data
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
# List dashboard audiences
|
|
41
|
-
def audiences(opts = {})
|
|
42
|
-
|
|
43
|
-
query_params = {}
|
|
44
|
-
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
|
45
|
-
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
|
46
|
-
post_body = nil
|
|
47
|
-
|
|
48
|
-
local_var_path = '/dashboard/audiences'
|
|
49
|
-
data = @api_client.call_api(:GET, local_var_path,
|
|
50
|
-
:query_params => query_params,
|
|
51
|
-
:body => post_body)
|
|
52
|
-
return data
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
# List dashboard charts
|
|
56
|
-
def charts(opts = {})
|
|
57
|
-
|
|
58
|
-
query_params = {}
|
|
59
|
-
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
|
60
|
-
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
|
61
|
-
post_body = nil
|
|
62
|
-
|
|
63
|
-
local_var_path = '/dashboard/charts'
|
|
64
|
-
data = @api_client.call_api(:GET, local_var_path,
|
|
65
|
-
:query_params => query_params,
|
|
66
|
-
:body => post_body)
|
|
67
|
-
return data
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
# List dashboard ecommerce info
|
|
71
|
-
def ecommerce(opts = {})
|
|
72
|
-
|
|
73
|
-
query_params = {}
|
|
74
|
-
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
|
75
|
-
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
|
76
|
-
post_body = nil
|
|
77
|
-
|
|
78
|
-
local_var_path = '/dashboard/ecommerce'
|
|
79
|
-
data = @api_client.call_api(:GET, local_var_path,
|
|
80
|
-
:query_params => query_params,
|
|
81
|
-
:body => post_body)
|
|
82
|
-
return data
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
# List dashboard engagement info
|
|
86
|
-
def engagement(opts = {})
|
|
87
|
-
|
|
88
|
-
query_params = {}
|
|
89
|
-
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
|
90
|
-
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
|
91
|
-
post_body = nil
|
|
92
|
-
|
|
93
|
-
local_var_path = '/dashboard/engagement'
|
|
94
|
-
data = @api_client.call_api(:GET, local_var_path,
|
|
95
|
-
:query_params => query_params,
|
|
96
|
-
:body => post_body)
|
|
97
|
-
return data
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
# List dashboard homepage metrics
|
|
101
|
-
def homepage(opts = {})
|
|
102
|
-
|
|
103
|
-
query_params = {}
|
|
104
|
-
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
|
105
|
-
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
|
106
|
-
post_body = nil
|
|
107
|
-
|
|
108
|
-
local_var_path = '/dashboard/homepage'
|
|
109
|
-
data = @api_client.call_api(:GET, local_var_path,
|
|
110
|
-
:query_params => query_params,
|
|
111
|
-
:body => post_body)
|
|
112
|
-
return data
|
|
113
|
-
end
|
|
114
|
-
end
|
|
115
|
-
end
|
|
@@ -1,71 +0,0 @@
|
|
|
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.19
|
|
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
|
-
|
|
15
|
-
module MailchimpMarketing
|
|
16
|
-
class ExternalAuthsApi
|
|
17
|
-
attr_accessor :api_client
|
|
18
|
-
|
|
19
|
-
def initialize(api_client)
|
|
20
|
-
@api_client = api_client
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
# Get external authentication
|
|
24
|
-
def get(system_id, opts = {})
|
|
25
|
-
fail ArgumentError, "Missing required param: 'system_id'" if system_id.nil?
|
|
26
|
-
|
|
27
|
-
query_params = {}
|
|
28
|
-
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
|
29
|
-
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
|
30
|
-
post_body = nil
|
|
31
|
-
|
|
32
|
-
local_var_path = '/external-auths/{system_id}'.sub('{' + 'system_id' + '}', system_id.to_s)
|
|
33
|
-
data = @api_client.call_api(:GET, local_var_path,
|
|
34
|
-
:query_params => query_params,
|
|
35
|
-
:body => post_body)
|
|
36
|
-
return data
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
# List external authentications
|
|
40
|
-
def get_collection(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[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
|
45
|
-
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
|
46
|
-
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
|
47
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
48
|
-
post_body = nil
|
|
49
|
-
|
|
50
|
-
local_var_path = '/external-auths'
|
|
51
|
-
data = @api_client.call_api(:GET, local_var_path,
|
|
52
|
-
:query_params => query_params,
|
|
53
|
-
:body => post_body)
|
|
54
|
-
return data
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# Add external authentication
|
|
58
|
-
def create(body, opts = {})
|
|
59
|
-
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
|
60
|
-
|
|
61
|
-
query_params = {}
|
|
62
|
-
post_body = @api_client.object_to_http_body(body)
|
|
63
|
-
|
|
64
|
-
local_var_path = '/external-auths'
|
|
65
|
-
data = @api_client.call_api(:POST, local_var_path,
|
|
66
|
-
:query_params => query_params,
|
|
67
|
-
:body => post_body)
|
|
68
|
-
return data
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
end
|
|
@@ -1,42 +0,0 @@
|
|
|
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.19
|
|
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
|
-
|
|
15
|
-
module MailchimpMarketing
|
|
16
|
-
class PostcardsApi
|
|
17
|
-
attr_accessor :api_client
|
|
18
|
-
|
|
19
|
-
def initialize(api_client)
|
|
20
|
-
@api_client = api_client
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
# List postcards
|
|
24
|
-
def get_all(opts = {})
|
|
25
|
-
fail ArgumentError, 'invalid value for "sort_dir", must be one of ASC, DESC' if opts[:'sort_dir'] && !['ASC', 'DESC'].include?(opts[:'sort_dir'])
|
|
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[:'sort_dir'] = opts[:'sort_dir'] if !opts[:'sort_dir'].nil?
|
|
30
|
-
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
|
31
|
-
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
|
32
|
-
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
|
33
|
-
post_body = nil
|
|
34
|
-
|
|
35
|
-
local_var_path = '/postcards'
|
|
36
|
-
data = @api_client.call_api(:GET, local_var_path,
|
|
37
|
-
:query_params => query_params,
|
|
38
|
-
:body => post_body)
|
|
39
|
-
return data
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|