MailchimpMarketing 3.0.75 → 3.0.78
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 +13 -2
- data/lib/MailchimpMarketing/api/account_export_api.rb +1 -1
- data/lib/MailchimpMarketing/api/account_exports_api.rb +1 -1
- 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 +1 -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/customer_journeys_api.rb +1 -1
- data/lib/MailchimpMarketing/api/ecommerce_api.rb +1 -1
- 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 +1 -1
- data/lib/MailchimpMarketing/api/lists_api.rb +30 -1
- data/lib/MailchimpMarketing/api/ping_api.rb +1 -1
- data/lib/MailchimpMarketing/api/reporting_api.rb +122 -1
- data/lib/MailchimpMarketing/api/reports_api.rb +1 -1
- 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/surveys_api.rb +53 -0
- 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
- data/lib/MailchimpMarketing.rb +6 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1accc80d14d43fb8b3c5eb3937bd6d1f028550e1ac843895d416704a8580e0cc
|
4
|
+
data.tar.gz: fd902c89f3a49961afa7a65cc6ea7f9ec7227cb907deb362e9815b96a9241870
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc365fcfeff3b9fb83c5f81e46c807e504ab5c286fc49a10ef475c12d9fb075e74fb63e9f020cdc3f374806d9e86c2adb3299553d63d402eb022cb6593afa975
|
7
|
+
data.tar.gz: bef0f6a0f876c24d6530d7ca938cff8a9133350cc194b4ea8ac9635b38b6f78c452a1cf52e4879fc7e85f1d69f443bdb91fddd062279747ae29243a51ba4f2f5
|
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.78
|
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
@@ -26,8 +26,8 @@ gem 'MailchimpMarketing', :git => 'https://github.com/mailchimp/mailchimp-market
|
|
26
26
|
|
27
27
|
```shell
|
28
28
|
gem build MailchimpMarketing.gemspec
|
29
|
-
gem install ./MailchimpMarketing-3.0.
|
30
|
-
gem 'MailchimpMarketing', '~> 3.0.
|
29
|
+
gem install ./MailchimpMarketing-3.0.78.gem
|
30
|
+
gem 'MailchimpMarketing', '~> 3.0.78'
|
31
31
|
```
|
32
32
|
|
33
33
|
## Quick Start
|
@@ -274,6 +274,8 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
274
274
|
| **lists.get_segment** | /lists/{list_id}/segments/{segment_id} |
|
275
275
|
| **lists.get_segment_members_list** | /lists/{list_id}/segments/{segment_id}/members |
|
276
276
|
| **lists.get_list_signup_forms** | /lists/{list_id}/signup-forms |
|
277
|
+
| **lists.get_all_surveys_for_list** | /lists/{list_id}/surveys |
|
278
|
+
| **lists.get_survey** | /lists/{list_id}/surveys/{survey_id} |
|
277
279
|
| **lists.get_list_webhooks** | /lists/{list_id}/webhooks |
|
278
280
|
| **lists.get_list_webhook** | /lists/{list_id}/webhooks/{webhook_id} |
|
279
281
|
| **lists.update_list** | /lists/{list_id} |
|
@@ -308,6 +310,13 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
308
310
|
| **reporting.get_facebook_ad_product_activity_report** | /reporting/facebook-ads/{outreach_id}/ecommerce-product-activity |
|
309
311
|
| **reporting.get_landing_page_reports_all** | /reporting/landing-pages |
|
310
312
|
| **reporting.get_landing_page_report** | /reporting/landing-pages/{outreach_id} |
|
313
|
+
| **reporting.get_survey_reports_all** | /reporting/surveys |
|
314
|
+
| **reporting.get_survey_report** | /reporting/surveys/{outreach_id} |
|
315
|
+
| **reporting.get_survey_question_reports_all** | /reporting/surveys/{outreach_id}/questions |
|
316
|
+
| **reporting.get_survey_question_report** | /reporting/surveys/{outreach_id}/questions/{question_id} |
|
317
|
+
| **reporting.get_survey_question_answers** | /reporting/surveys/{outreach_id}/questions/{question_id}/answers |
|
318
|
+
| **reporting.get_survey_responses_all** | /reporting/surveys/{outreach_id}/responses |
|
319
|
+
| **reporting.get_survey_response** | /reporting/surveys/{outreach_id}/responses/{response_id} |
|
311
320
|
| **reports.get_all_campaign_reports** | /reports |
|
312
321
|
| **reports.get_campaign_report** | /reports/{campaign_id} |
|
313
322
|
| **reports.get_campaign_abuse_reports** | /reports/{campaign_id}/abuse-reports |
|
@@ -333,6 +342,8 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
333
342
|
| **root.get_root** | / |
|
334
343
|
| **searchCampaigns.search** | /search-campaigns |
|
335
344
|
| **searchMembers.search** | /search-members |
|
345
|
+
| **Surveys.publish_survey** | /lists/{list_id}/surveys/{survey_id}/actions/publish |
|
346
|
+
| **Surveys.unpublish_survey** | /lists/{list_id}/surveys/{survey_id}/actions/unpublish |
|
336
347
|
| **templateFolders.remove** | /template-folders/{folder_id} |
|
337
348
|
| **templateFolders.list** | /template-folders |
|
338
349
|
| **templateFolders.get** | /template-folders/{folder_id} |
|
@@ -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.78
|
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.78
|
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.78
|
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.78
|
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.78
|
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.78
|
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.78
|
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.78
|
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.78
|
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.78
|
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.78
|
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.78
|
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.78
|
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.78
|
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.78
|
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.78
|
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.78
|
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
|
@@ -696,6 +696,35 @@ module MailchimpMarketing
|
|
696
696
|
return data
|
697
697
|
end
|
698
698
|
|
699
|
+
# Get information about all surveys for a list
|
700
|
+
def get_all_surveys_for_list(list_id, opts = {})
|
701
|
+
fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
|
702
|
+
|
703
|
+
query_params = {}
|
704
|
+
post_body = nil
|
705
|
+
|
706
|
+
local_var_path = '/lists/{list_id}/surveys'.sub('{' + 'list_id' + '}', list_id.to_s)
|
707
|
+
data = @api_client.call_api(:GET, local_var_path,
|
708
|
+
:query_params => query_params,
|
709
|
+
:body => post_body)
|
710
|
+
return data
|
711
|
+
end
|
712
|
+
|
713
|
+
# Get survey
|
714
|
+
def get_survey(list_id, survey_id, opts = {})
|
715
|
+
fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
|
716
|
+
fail ArgumentError, "Missing required param: 'survey_id'" if survey_id.nil?
|
717
|
+
|
718
|
+
query_params = {}
|
719
|
+
post_body = nil
|
720
|
+
|
721
|
+
local_var_path = '/lists/{list_id}/surveys/{survey_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'survey_id' + '}', survey_id.to_s)
|
722
|
+
data = @api_client.call_api(:GET, local_var_path,
|
723
|
+
:query_params => query_params,
|
724
|
+
:body => post_body)
|
725
|
+
return data
|
726
|
+
end
|
727
|
+
|
699
728
|
# List webhooks
|
700
729
|
def get_list_webhooks(list_id, opts = {})
|
701
730
|
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.78
|
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.78
|
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
|
@@ -112,5 +112,126 @@ module MailchimpMarketing
|
|
112
112
|
:body => post_body)
|
113
113
|
return data
|
114
114
|
end
|
115
|
+
|
116
|
+
# List survey reports
|
117
|
+
def get_survey_reports_all(opts = {})
|
118
|
+
fail ArgumentError, 'invalid value for "opts[:"count"]", must be smaller than or equal to 1000.' if !opts[:'count'].nil? && opts[:'count'] > 1000
|
119
|
+
|
120
|
+
query_params = {}
|
121
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
122
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
123
|
+
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
124
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
125
|
+
post_body = nil
|
126
|
+
|
127
|
+
local_var_path = '/reporting/surveys'
|
128
|
+
data = @api_client.call_api(:GET, local_var_path,
|
129
|
+
:query_params => query_params,
|
130
|
+
:body => post_body)
|
131
|
+
return data
|
132
|
+
end
|
133
|
+
|
134
|
+
# Get survey report
|
135
|
+
def get_survey_report(outreach_id, opts = {})
|
136
|
+
fail ArgumentError, "Missing required param: 'outreach_id'" if outreach_id.nil?
|
137
|
+
|
138
|
+
query_params = {}
|
139
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
140
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
141
|
+
post_body = nil
|
142
|
+
|
143
|
+
local_var_path = '/reporting/surveys/{outreach_id}'.sub('{' + 'outreach_id' + '}', outreach_id.to_s)
|
144
|
+
data = @api_client.call_api(:GET, local_var_path,
|
145
|
+
:query_params => query_params,
|
146
|
+
:body => post_body)
|
147
|
+
return data
|
148
|
+
end
|
149
|
+
|
150
|
+
# List survey question reports
|
151
|
+
def get_survey_question_reports_all(outreach_id, opts = {})
|
152
|
+
fail ArgumentError, "Missing required param: 'outreach_id'" if outreach_id.nil?
|
153
|
+
|
154
|
+
query_params = {}
|
155
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
156
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
157
|
+
post_body = nil
|
158
|
+
|
159
|
+
local_var_path = '/reporting/surveys/{outreach_id}/questions'.sub('{' + 'outreach_id' + '}', outreach_id.to_s)
|
160
|
+
data = @api_client.call_api(:GET, local_var_path,
|
161
|
+
:query_params => query_params,
|
162
|
+
:body => post_body)
|
163
|
+
return data
|
164
|
+
end
|
165
|
+
|
166
|
+
# Get survey question report
|
167
|
+
def get_survey_question_report(outreach_id, question_id, opts = {})
|
168
|
+
fail ArgumentError, "Missing required param: 'outreach_id'" if outreach_id.nil?
|
169
|
+
fail ArgumentError, "Missing required param: 'question_id'" if question_id.nil?
|
170
|
+
|
171
|
+
query_params = {}
|
172
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
173
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
174
|
+
post_body = nil
|
175
|
+
|
176
|
+
local_var_path = '/reporting/surveys/{outreach_id}/questions/{question_id}'.sub('{' + 'outreach_id' + '}', outreach_id.to_s).sub('{' + 'question_id' + '}', question_id.to_s)
|
177
|
+
data = @api_client.call_api(:GET, local_var_path,
|
178
|
+
:query_params => query_params,
|
179
|
+
:body => post_body)
|
180
|
+
return data
|
181
|
+
end
|
182
|
+
|
183
|
+
# List answers for question
|
184
|
+
def get_survey_question_answers(outreach_id, question_id, opts = {})
|
185
|
+
fail ArgumentError, "Missing required param: 'outreach_id'" if outreach_id.nil?
|
186
|
+
fail ArgumentError, "Missing required param: 'question_id'" if question_id.nil?
|
187
|
+
fail ArgumentError, 'invalid value for "respondent_familiarity_is", must be one of new, known, unknown' if opts[:'respondent_familiarity_is'] && !['new', 'known', 'unknown'].include?(opts[:'respondent_familiarity_is'])
|
188
|
+
|
189
|
+
query_params = {}
|
190
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
191
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
192
|
+
query_params[:'respondent_familiarity_is'] = opts[:'respondent_familiarity_is'] if !opts[:'respondent_familiarity_is'].nil?
|
193
|
+
post_body = nil
|
194
|
+
|
195
|
+
local_var_path = '/reporting/surveys/{outreach_id}/questions/{question_id}/answers'.sub('{' + 'outreach_id' + '}', outreach_id.to_s).sub('{' + 'question_id' + '}', question_id.to_s)
|
196
|
+
data = @api_client.call_api(:GET, local_var_path,
|
197
|
+
:query_params => query_params,
|
198
|
+
:body => post_body)
|
199
|
+
return data
|
200
|
+
end
|
201
|
+
|
202
|
+
# List survey responses
|
203
|
+
def get_survey_responses_all(outreach_id, opts = {})
|
204
|
+
fail ArgumentError, "Missing required param: 'outreach_id'" if outreach_id.nil?
|
205
|
+
fail ArgumentError, 'invalid value for "respondent_familiarity_is", must be one of new, known, unknown' if opts[:'respondent_familiarity_is'] && !['new', 'known', 'unknown'].include?(opts[:'respondent_familiarity_is'])
|
206
|
+
|
207
|
+
query_params = {}
|
208
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
209
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
210
|
+
query_params[:'answered_question'] = opts[:'answered_question'] if !opts[:'answered_question'].nil?
|
211
|
+
query_params[:'chose_answer'] = opts[:'chose_answer'] if !opts[:'chose_answer'].nil?
|
212
|
+
query_params[:'respondent_familiarity_is'] = opts[:'respondent_familiarity_is'] if !opts[:'respondent_familiarity_is'].nil?
|
213
|
+
post_body = nil
|
214
|
+
|
215
|
+
local_var_path = '/reporting/surveys/{outreach_id}/responses'.sub('{' + 'outreach_id' + '}', outreach_id.to_s)
|
216
|
+
data = @api_client.call_api(:GET, local_var_path,
|
217
|
+
:query_params => query_params,
|
218
|
+
:body => post_body)
|
219
|
+
return data
|
220
|
+
end
|
221
|
+
|
222
|
+
# Get survey response
|
223
|
+
def get_survey_response(outreach_id, response_id, opts = {})
|
224
|
+
fail ArgumentError, "Missing required param: 'outreach_id'" if outreach_id.nil?
|
225
|
+
fail ArgumentError, "Missing required param: 'response_id'" if response_id.nil?
|
226
|
+
|
227
|
+
query_params = {}
|
228
|
+
post_body = nil
|
229
|
+
|
230
|
+
local_var_path = '/reporting/surveys/{outreach_id}/responses/{response_id}'.sub('{' + 'outreach_id' + '}', outreach_id.to_s).sub('{' + 'response_id' + '}', response_id.to_s)
|
231
|
+
data = @api_client.call_api(:GET, local_var_path,
|
232
|
+
:query_params => query_params,
|
233
|
+
:body => post_body)
|
234
|
+
return data
|
235
|
+
end
|
115
236
|
end
|
116
237
|
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.78
|
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.78
|
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.78
|
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.78
|
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
|
@@ -0,0 +1,53 @@
|
|
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.78
|
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 SurveysApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Publish a Survey
|
24
|
+
def publish_survey(list_id, survey_id, opts = {})
|
25
|
+
fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
|
26
|
+
fail ArgumentError, "Missing required param: 'survey_id'" if survey_id.nil?
|
27
|
+
|
28
|
+
query_params = {}
|
29
|
+
post_body = nil
|
30
|
+
|
31
|
+
local_var_path = '/lists/{list_id}/surveys/{survey_id}/actions/publish'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'survey_id' + '}', survey_id.to_s)
|
32
|
+
data = @api_client.call_api(:POST, local_var_path,
|
33
|
+
:query_params => query_params,
|
34
|
+
:body => post_body)
|
35
|
+
return data
|
36
|
+
end
|
37
|
+
|
38
|
+
# Unpublish a Survey
|
39
|
+
def unpublish_survey(list_id, survey_id, opts = {})
|
40
|
+
fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
|
41
|
+
fail ArgumentError, "Missing required param: 'survey_id'" if survey_id.nil?
|
42
|
+
|
43
|
+
query_params = {}
|
44
|
+
post_body = nil
|
45
|
+
|
46
|
+
local_var_path = '/lists/{list_id}/surveys/{survey_id}/actions/unpublish'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'survey_id' + '}', survey_id.to_s)
|
47
|
+
data = @api_client.call_api(:POST, local_var_path,
|
48
|
+
:query_params => query_params,
|
49
|
+
:body => post_body)
|
50
|
+
return data
|
51
|
+
end
|
52
|
+
end
|
53
|
+
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.78
|
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.78
|
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.78
|
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.78
|
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.78
|
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.78
|
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.78
|
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.78'
|
15
15
|
end
|
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.78
|
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
|
@@ -39,6 +39,7 @@ require 'MailchimpMarketing/api/reports_api'
|
|
39
39
|
require 'MailchimpMarketing/api/root_api'
|
40
40
|
require 'MailchimpMarketing/api/search_campaigns_api'
|
41
41
|
require 'MailchimpMarketing/api/search_members_api'
|
42
|
+
require 'MailchimpMarketing/api/surveys_api'
|
42
43
|
require 'MailchimpMarketing/api/template_folders_api'
|
43
44
|
require 'MailchimpMarketing/api/templates_api'
|
44
45
|
require 'MailchimpMarketing/api/verified_domains_api'
|
@@ -71,6 +72,7 @@ module MailchimpMarketing
|
|
71
72
|
@Root = RootApi.new(@api_client)
|
72
73
|
@SearchCampaigns = SearchCampaignsApi.new(@api_client)
|
73
74
|
@SearchMembers = SearchMembersApi.new(@api_client)
|
75
|
+
@Surveys = SurveysApi.new(@api_client)
|
74
76
|
@TemplateFolders = TemplateFoldersApi.new(@api_client)
|
75
77
|
@Templates = TemplatesApi.new(@api_client)
|
76
78
|
@VerifiedDomains = VerifiedDomainsApi.new(@api_client)
|
@@ -149,6 +151,9 @@ module MailchimpMarketing
|
|
149
151
|
def searchMembers
|
150
152
|
@SearchMembers
|
151
153
|
end
|
154
|
+
def surveys
|
155
|
+
@Surveys
|
156
|
+
end
|
152
157
|
def templateFolders
|
153
158
|
@TemplateFolders
|
154
159
|
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.78
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mailchimp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|
@@ -226,6 +226,7 @@ files:
|
|
226
226
|
- lib/MailchimpMarketing/api/root_api.rb
|
227
227
|
- lib/MailchimpMarketing/api/search_campaigns_api.rb
|
228
228
|
- lib/MailchimpMarketing/api/search_members_api.rb
|
229
|
+
- lib/MailchimpMarketing/api/surveys_api.rb
|
229
230
|
- lib/MailchimpMarketing/api/template_folders_api.rb
|
230
231
|
- lib/MailchimpMarketing/api/templates_api.rb
|
231
232
|
- lib/MailchimpMarketing/api/verified_domains_api.rb
|