MailchimpMarketing 3.0.18 → 3.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MailchimpMarketing.gemspec +1 -1
- data/README.md +9 -20
- data/lib/MailchimpMarketing.rb +1 -16
- data/lib/MailchimpMarketing/api/activity_feed_api.rb +1 -14
- data/lib/MailchimpMarketing/api/authorized_apps_api.rb +1 -1
- data/lib/MailchimpMarketing/api/automations_api.rb +6 -18
- 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 -16
- data/lib/MailchimpMarketing/api/facebook_ads_api.rb +1 -1
- data/lib/MailchimpMarketing/api/file_manager_api.rb +1 -14
- 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 -14
- 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 +6 -4
- 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: 66dcab433425efd533ecd1e8d0f3ccae70cc32c223ecfe0285c5b059b4de07da
|
4
|
+
data.tar.gz: c5bc4ff6ee9bd11a369900b40822e3b210c24c9a6610aac73e0560adba36efcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc1a6d7555b45ff907dac1ada0762d20146b10baf3206dff86b0c62f8919b783a203963a8b7b0ee4fcfa0ed7c4686aeb1be18d45f3f71f94bb3c2b7ba4d0ca3b
|
7
|
+
data.tar.gz: 14088ee647f2df1598966ccb797056971950b9387a7f52ec59cc9306dbd2c688322b906282a41b1381c6f0a4b13bf12ac07f80d96c3b584064ffc9dcf35bcb2e
|
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.24
|
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
@@ -1,3 +1,9 @@
|
|
1
|
+
<p align="center">
|
2
|
+
<a href="https://mailchimp.com/developer/">
|
3
|
+
<img src="https://raw.githubusercontent.com/mailchimp/mailchimp-client-lib-codegen/master/resources/images/mcdev-banner.png" alt="Mailchimp Developer" width="100%" height="auto">
|
4
|
+
</a>
|
5
|
+
</p>
|
6
|
+
|
1
7
|
# Mailchimp Marketing — Ruby
|
2
8
|
|
3
9
|
The official Ruby client library for the Mailchimp Marketing API (v1)
|
@@ -20,8 +26,8 @@ gem 'MailchimpMarketing', :git => 'https://github.com/mailchimp/mailchimp-market
|
|
20
26
|
|
21
27
|
```shell
|
22
28
|
gem build MailchimpMarketing.gemspec
|
23
|
-
gem install ./MailchimpMarketing-3.0.
|
24
|
-
gem 'MailchimpMarketing', '~> 3.0.
|
29
|
+
gem install ./MailchimpMarketing-3.0.24.gem
|
30
|
+
gem 'MailchimpMarketing', '~> 3.0.24'
|
25
31
|
```
|
26
32
|
|
27
33
|
## Quick Start
|
@@ -81,7 +87,6 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
81
87
|
|
82
88
|
| Method | Endpoint |
|
83
89
|
| ---------- | -------- |
|
84
|
-
| **activityFeed.get** | /activity-feed |
|
85
90
|
| **activityFeed.get_chimp_chatter** | /activity-feed/chimp-chatter |
|
86
91
|
| **authorizedApps.list** | /authorized-apps |
|
87
92
|
| **authorizedApps.get** | /authorized-apps/{app_id} |
|
@@ -97,7 +102,6 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
97
102
|
| **automations.list_workflow_email_subscribers_removed** | /automations/{workflow_id}/removed-subscribers |
|
98
103
|
| **automations.get_removed_workflow_email_subscriber** | /automations/{workflow_id}/removed-subscribers/{subscriber_hash} |
|
99
104
|
| **automations.update_workflow_email** | /automations/{workflow_id}/emails/{workflow_email_id} |
|
100
|
-
| **automations.update** | /automations/{workflow_id} |
|
101
105
|
| **automations.create** | /automations |
|
102
106
|
| **automations.pause_all_emails** | /automations/{workflow_id}/actions/pause-all-emails |
|
103
107
|
| **automations.start_all_emails** | /automations/{workflow_id}/actions/start-all-emails |
|
@@ -151,12 +155,6 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
151
155
|
| **conversations.get_conversation_messages** | /conversations/{conversation_id}/messages |
|
152
156
|
| **conversations.get_conversation_message** | /conversations/{conversation_id}/messages/{message_id} |
|
153
157
|
| **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
158
|
| **ecommerce.delete_store** | /ecommerce/stores/{store_id} |
|
161
159
|
| **ecommerce.delete_store_cart** | /ecommerce/stores/{store_id}/carts/{cart_id} |
|
162
160
|
| **ecommerce.delete_cart_line_item** | /ecommerce/stores/{store_id}/carts/{cart_id}/lines/{line_id} |
|
@@ -168,7 +166,6 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
168
166
|
| **ecommerce.delete_product_variant** | /ecommerce/stores/{store_id}/products/{product_id}/variants/{variant_id} |
|
169
167
|
| **ecommerce.delete_promo_code** | /ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}/promo-codes/{promo_code_id} |
|
170
168
|
| **ecommerce.delete_promo_rule** | /ecommerce/stores/{store_id}/promo-rules/{promo_rule_id} |
|
171
|
-
| **ecommerce.info** | /ecommerce |
|
172
169
|
| **ecommerce.orders** | /ecommerce/orders |
|
173
170
|
| **ecommerce.stores** | /ecommerce/stores |
|
174
171
|
| **ecommerce.get_store** | /ecommerce/stores/{store_id} |
|
@@ -216,14 +213,10 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
216
213
|
| **ecommerce.add_promo_rules** | /ecommerce/stores/{store_id}/promo-rules |
|
217
214
|
| **ecommerce.set_store_customer** | /ecommerce/stores/{store_id}/customers/{customer_id} |
|
218
215
|
| **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
216
|
| **facebookAds.list** | /facebook-ads |
|
223
217
|
| **facebookAds.get_ad** | /facebook-ads/{outreach_id} |
|
224
218
|
| **fileManager.delete_file** | /file-manager/files/{file_id} |
|
225
219
|
| **fileManager.delete_folder** | /file-manager/folders/{folder_id} |
|
226
|
-
| **fileManager.get** | /file-manager |
|
227
220
|
| **fileManager.files** | /file-manager/files |
|
228
221
|
| **fileManager.get_file** | /file-manager/files/{file_id} |
|
229
222
|
| **fileManager.list_folders** | /file-manager/folders |
|
@@ -256,7 +249,6 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
256
249
|
| **lists.get_list_abuse_report_details** | /lists/{list_id}/abuse-reports/{report_id} |
|
257
250
|
| **lists.get_list_recent_activity** | /lists/{list_id}/activity |
|
258
251
|
| **lists.get_list_clients** | /lists/{list_id}/clients |
|
259
|
-
| **lists.get_list_external_ids** | /lists/{list_id}/external-ids |
|
260
252
|
| **lists.get_list_growth_history** | /lists/{list_id}/growth-history |
|
261
253
|
| **lists.get_list_growth_history_by_month** | /lists/{list_id}/growth-history/{month} |
|
262
254
|
| **lists.get_list_interest_categories** | /lists/{list_id}/interest-categories |
|
@@ -291,7 +283,6 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
291
283
|
| **lists.update_list_member_tags** | /lists/{list_id}/members/{subscriber_hash}/tags |
|
292
284
|
| **lists.create_list** | /lists |
|
293
285
|
| **lists.batch_list_members** | /lists/{list_id} |
|
294
|
-
| **lists.create_list_external_id** | /lists/{list_id}/external-ids |
|
295
286
|
| **lists.create_list_interest_category** | /lists/{list_id}/interest-categories |
|
296
287
|
| **lists.create_interest_category_interest** | /lists/{list_id}/interest-categories/{interest_category_id}/interests |
|
297
288
|
| **lists.add_list_member** | /lists/{list_id}/members |
|
@@ -307,8 +298,6 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
307
298
|
| **lists.preview_segment** | /lists/{list_id}/preview-segment |
|
308
299
|
| **lists.set_list_member** | /lists/{list_id}/members/{subscriber_hash} |
|
309
300
|
| **ping.get** | /ping |
|
310
|
-
| **postcards.get_all** | /postcards |
|
311
|
-
| **reporting.info** | /reporting |
|
312
301
|
| **reporting.get_facebook_ads_report_all** | /reporting/facebook-ads |
|
313
302
|
| **reporting.get_facebook_ad_report** | /reporting/facebook-ads/{outreach_id} |
|
314
303
|
| **reporting.get_facebook_ad_product_activity_report** | /reporting/facebook-ads/{outreach_id}/ecommerce-product-activity |
|
@@ -357,7 +346,7 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
357
346
|
| **verifiedDomains.submit_domain_verification** | /verified-domains/{domain_name}/actions/verify |
|
358
347
|
|
359
348
|
|
360
|
-
## Additional
|
349
|
+
## Additional Libraries
|
361
350
|
|
362
351
|
Mailchimp Marketing libraries are available in the following languages:
|
363
352
|
|
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.24
|
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.24
|
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
|
@@ -20,19 +20,6 @@ module MailchimpMarketing
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
|
23
|
-
# List activity feed resources
|
24
|
-
def get(opts = {})
|
25
|
-
|
26
|
-
query_params = {}
|
27
|
-
post_body = nil
|
28
|
-
|
29
|
-
local_var_path = '/activity-feed'
|
30
|
-
data = @api_client.call_api(:GET, local_var_path,
|
31
|
-
:query_params => query_params,
|
32
|
-
:body => post_body)
|
33
|
-
return data
|
34
|
-
end
|
35
|
-
|
36
23
|
# Get latest chimp chatter
|
37
24
|
def get_chimp_chatter(opts = {})
|
38
25
|
fail ArgumentError, 'invalid value for "opts[:"count"]", must be smaller than or equal to 1000.' if !opts[:'count'].nil? && opts[:'count'] > 1000
|
@@ -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.24
|
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.24
|
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,15 +51,18 @@ 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?
|
60
63
|
query_params[:'since_create_time'] = opts[:'since_create_time'] if !opts[:'since_create_time'].nil?
|
61
|
-
query_params[:'
|
62
|
-
query_params[:'
|
64
|
+
query_params[:'before_start_time'] = opts[:'before_start_time'] if !opts[:'before_start_time'].nil?
|
65
|
+
query_params[:'since_start_time'] = opts[:'since_start_time'] if !opts[:'since_start_time'].nil?
|
63
66
|
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
64
67
|
post_body = nil
|
65
68
|
|
@@ -191,21 +194,6 @@ module MailchimpMarketing
|
|
191
194
|
return data
|
192
195
|
end
|
193
196
|
|
194
|
-
# Update automation
|
195
|
-
def update(workflow_id, body, opts = {})
|
196
|
-
fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
|
197
|
-
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
198
|
-
|
199
|
-
query_params = {}
|
200
|
-
post_body = @api_client.object_to_http_body(body)
|
201
|
-
|
202
|
-
local_var_path = '/automations/{workflow_id}'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
|
203
|
-
data = @api_client.call_api(:PATCH, local_var_path,
|
204
|
-
:query_params => query_params,
|
205
|
-
:body => post_body)
|
206
|
-
return data
|
207
|
-
end
|
208
|
-
|
209
197
|
# Add automation
|
210
198
|
def create(body, opts = {})
|
211
199
|
fail ArgumentError, "Missing required param: 'body'" if 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.24
|
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.24
|
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.24
|
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.24
|
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.24
|
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.24
|
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.24
|
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
|
@@ -189,19 +189,6 @@ module MailchimpMarketing
|
|
189
189
|
return data
|
190
190
|
end
|
191
191
|
|
192
|
-
# List e commerce api resources
|
193
|
-
def info(opts = {})
|
194
|
-
|
195
|
-
query_params = {}
|
196
|
-
post_body = nil
|
197
|
-
|
198
|
-
local_var_path = '/ecommerce'
|
199
|
-
data = @api_client.call_api(:GET, local_var_path,
|
200
|
-
:query_params => query_params,
|
201
|
-
:body => post_body)
|
202
|
-
return data
|
203
|
-
end
|
204
|
-
|
205
192
|
# List account orders
|
206
193
|
def orders(opts = {})
|
207
194
|
fail ArgumentError, 'invalid value for "opts[:"count"]", must be smaller than or equal to 1000.' if !opts[:'count'].nil? && opts[:'count'] > 1000
|
@@ -450,13 +437,11 @@ module MailchimpMarketing
|
|
450
437
|
# List product
|
451
438
|
def get_all_store_products(store_id, opts = {})
|
452
439
|
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
440
|
fail ArgumentError, 'invalid value for "opts[:"count"]", must be smaller than or equal to 1000.' if !opts[:'count'].nil? && opts[:'count'] > 1000
|
455
441
|
|
456
442
|
query_params = {}
|
457
443
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
458
444
|
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
445
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
461
446
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
462
447
|
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.24
|
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.24
|
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
|
@@ -48,19 +48,6 @@ module MailchimpMarketing
|
|
48
48
|
return data
|
49
49
|
end
|
50
50
|
|
51
|
-
# List file manager resources
|
52
|
-
def get(opts = {})
|
53
|
-
|
54
|
-
query_params = {}
|
55
|
-
post_body = nil
|
56
|
-
|
57
|
-
local_var_path = '/file-manager'
|
58
|
-
data = @api_client.call_api(:GET, local_var_path,
|
59
|
-
:query_params => query_params,
|
60
|
-
:body => post_body)
|
61
|
-
return data
|
62
|
-
end
|
63
|
-
|
64
51
|
# List stored files
|
65
52
|
def files(opts = {})
|
66
53
|
fail ArgumentError, 'invalid value for "opts[:"count"]", must be smaller than or equal to 1000.' if !opts[:'count'].nil? && opts[:'count'] > 1000
|
@@ -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.24
|
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.24
|
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.24
|
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.24
|
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
|
@@ -20,19 +20,6 @@ module MailchimpMarketing
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
|
23
|
-
# List reporting resources
|
24
|
-
def info(opts = {})
|
25
|
-
|
26
|
-
query_params = {}
|
27
|
-
post_body = nil
|
28
|
-
|
29
|
-
local_var_path = '/reporting'
|
30
|
-
data = @api_client.call_api(:GET, local_var_path,
|
31
|
-
:query_params => query_params,
|
32
|
-
:body => post_body)
|
33
|
-
return data
|
34
|
-
end
|
35
|
-
|
36
23
|
# List facebook ads reports
|
37
24
|
def get_facebook_ads_report_all(opts = {})
|
38
25
|
fail ArgumentError, 'invalid value for "opts[:"count"]", must be smaller than or equal to 1000.' if !opts[:'count'].nil? && opts[:'count'] > 1000
|
@@ -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.24
|
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.24
|
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.24
|
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.24
|
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.24
|
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.24
|
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
|
@@ -37,7 +37,8 @@ module MailchimpMarketing
|
|
37
37
|
# List templates
|
38
38
|
def list(opts = {})
|
39
39
|
fail ArgumentError, 'invalid value for "opts[:"count"]", must be smaller than or equal to 1000.' if !opts[:'count'].nil? && opts[:'count'] > 1000
|
40
|
-
fail ArgumentError, 'invalid value for "sort_field", must be one of date_created, name' if opts[:'sort_field'] && !['date_created', 'name'].include?(opts[:'sort_field'])
|
40
|
+
fail ArgumentError, 'invalid value for "sort_field", must be one of date_created, date_edited, name' if opts[:'sort_field'] && !['date_created', 'date_edited', 'name'].include?(opts[:'sort_field'])
|
41
|
+
fail ArgumentError, 'invalid value for "sort_dir", must be one of ASC, DESC' if opts[:'sort_dir'] && !['ASC', 'DESC'].include?(opts[:'sort_dir'])
|
41
42
|
|
42
43
|
query_params = {}
|
43
44
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
@@ -45,12 +46,13 @@ module MailchimpMarketing
|
|
45
46
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
46
47
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
47
48
|
query_params[:'created_by'] = opts[:'created_by'] if !opts[:'created_by'].nil?
|
48
|
-
query_params[:'
|
49
|
-
query_params[:'
|
49
|
+
query_params[:'since_date_created'] = opts[:'since_date_created'] if !opts[:'since_date_created'].nil?
|
50
|
+
query_params[:'before_date_created'] = opts[:'before_date_created'] if !opts[:'before_date_created'].nil?
|
50
51
|
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
51
52
|
query_params[:'category'] = opts[:'category'] if !opts[:'category'].nil?
|
52
53
|
query_params[:'folder_id'] = opts[:'folder_id'] if !opts[:'folder_id'].nil?
|
53
54
|
query_params[:'sort_field'] = opts[:'sort_field'] if !opts[:'sort_field'].nil?
|
55
|
+
query_params[:'sort_dir'] = opts[:'sort_dir'] if !opts[:'sort_dir'].nil?
|
54
56
|
post_body = nil
|
55
57
|
|
56
58
|
local_var_path = '/templates'
|
@@ -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.24
|
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.24
|
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.24
|
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.24
|
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.24
|
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.24'
|
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.24
|
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-
|
11
|
+
date: 2020-11-23 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.18
|
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.18
|
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.18
|
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
|