MailchimpMarketing 3.0.75 → 3.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/MailchimpMarketing.gemspec +1 -1
  4. data/README.md +13 -2
  5. data/lib/MailchimpMarketing/api/account_export_api.rb +1 -1
  6. data/lib/MailchimpMarketing/api/account_exports_api.rb +1 -1
  7. data/lib/MailchimpMarketing/api/activity_feed_api.rb +1 -1
  8. data/lib/MailchimpMarketing/api/authorized_apps_api.rb +1 -1
  9. data/lib/MailchimpMarketing/api/automations_api.rb +1 -1
  10. data/lib/MailchimpMarketing/api/batch_webhooks_api.rb +1 -1
  11. data/lib/MailchimpMarketing/api/batches_api.rb +1 -1
  12. data/lib/MailchimpMarketing/api/campaign_folders_api.rb +1 -1
  13. data/lib/MailchimpMarketing/api/campaigns_api.rb +1 -1
  14. data/lib/MailchimpMarketing/api/connected_sites_api.rb +1 -1
  15. data/lib/MailchimpMarketing/api/conversations_api.rb +1 -1
  16. data/lib/MailchimpMarketing/api/customer_journeys_api.rb +1 -1
  17. data/lib/MailchimpMarketing/api/ecommerce_api.rb +1 -1
  18. data/lib/MailchimpMarketing/api/facebook_ads_api.rb +1 -1
  19. data/lib/MailchimpMarketing/api/file_manager_api.rb +1 -1
  20. data/lib/MailchimpMarketing/api/landing_pages_api.rb +1 -1
  21. data/lib/MailchimpMarketing/api/lists_api.rb +30 -1
  22. data/lib/MailchimpMarketing/api/ping_api.rb +1 -1
  23. data/lib/MailchimpMarketing/api/reporting_api.rb +122 -1
  24. data/lib/MailchimpMarketing/api/reports_api.rb +1 -1
  25. data/lib/MailchimpMarketing/api/root_api.rb +1 -1
  26. data/lib/MailchimpMarketing/api/search_campaigns_api.rb +1 -1
  27. data/lib/MailchimpMarketing/api/search_members_api.rb +1 -1
  28. data/lib/MailchimpMarketing/api/surveys_api.rb +53 -0
  29. data/lib/MailchimpMarketing/api/template_folders_api.rb +1 -1
  30. data/lib/MailchimpMarketing/api/templates_api.rb +1 -1
  31. data/lib/MailchimpMarketing/api/verified_domains_api.rb +1 -1
  32. data/lib/MailchimpMarketing/api_client.rb +1 -1
  33. data/lib/MailchimpMarketing/api_error.rb +1 -1
  34. data/lib/MailchimpMarketing/configuration.rb +1 -1
  35. data/lib/MailchimpMarketing/version.rb +2 -2
  36. data/lib/MailchimpMarketing.rb +6 -1
  37. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ffd332198af81f3361fe5a194319220a138d995a7e139fc69443f08ffc59790
4
- data.tar.gz: a809ca80ea2135b9a28a42b41e088edac55f1f45c3e2551acd6296556382f8b5
3
+ metadata.gz: 90fbd3c15dc9ae03ccfb124ed7e42cced8b7e1290386bb15dc5712c5d58799ca
4
+ data.tar.gz: 2b1ccab99320cc5a2fe654289c77319d1f8755f09d6015c1d7c2b6b34a3608a1
5
5
  SHA512:
6
- metadata.gz: c15eed9704b0216fe4e0f3bc9aafb1cd810345519174b2c7e61ecc79330e8e5a384d3c1bfc1fb895128759a266cee8dbd3daef9d92469b436c244de8df4603a1
7
- data.tar.gz: 47f0ad9a9ab54a6c5a4c14eb63bc3c629f207db2098c96db4f000d6482a124fc6119cab7116dbd499f4cdf30709d0aa4f079c0b23a8881b598415b4e6e769ac6
6
+ metadata.gz: 10724fbbfcb64415ae515fcd9a6aff5d556c6e53f72e38e6497087c09d6c1ada8ea9255ed91581d9d9794f3fb92844bef384279988fc3c132bbda5210e877643
7
+ data.tar.gz: ec5e39a9f067d6eabb2d2643896fe3e37eb1fd317b74d77092f0148c7ce66d2ce9fdc9a131f57f754b9972ac16f95979dffd93632ed1c4b3b310057553b34e3d
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Transactional
4
4
 
5
+ ### 1.0.48
6
+ * Allowing users to schedule messages (using messages/send, messages/send-template, messages/send-raw and messages/reschedule APIs) within a year from the date of scheduling.
7
+
5
8
  ### 1.0.46
6
9
  * Added a little more granularity to the `set_timeout` method to the Client class in the Ruby SDK; now supports `read`, `write` and `connect` parameters, which will default to the `timeout` param if unspecified, or 300 seconds if `timeout` is unspecified.
7
10
 
@@ -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.75
8
+ OpenAPI spec version: 3.0.80
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.75.gem
30
- gem 'MailchimpMarketing', '~> 3.0.75'
29
+ gem install ./MailchimpMarketing-3.0.80.gem
30
+ gem 'MailchimpMarketing', '~> 3.0.80'
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75
6
+ OpenAPI spec version: 3.0.80
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.75'
14
+ VERSION = '3.0.80'
15
15
  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.75
6
+ OpenAPI spec version: 3.0.80
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.75
4
+ version: 3.0.80
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mailchimp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-14 00:00:00.000000000 Z
11
+ date: 2022-11-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