MailchimpMarketing 3.0.8 → 3.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +53 -0
  3. data/MailchimpMarketing.gemspec +2 -2
  4. data/README.md +2 -2
  5. data/lib/MailchimpMarketing.rb +1 -1
  6. data/lib/MailchimpMarketing/api/activity_feed_api.rb +5 -10
  7. data/lib/MailchimpMarketing/api/authorized_apps_api.rb +7 -14
  8. data/lib/MailchimpMarketing/api/automations_api.rb +39 -78
  9. data/lib/MailchimpMarketing/api/batch_webhooks_api.rb +11 -22
  10. data/lib/MailchimpMarketing/api/batches_api.rb +9 -18
  11. data/lib/MailchimpMarketing/api/campaign_folders_api.rb +11 -22
  12. data/lib/MailchimpMarketing/api/campaigns_api.rb +45 -90
  13. data/lib/MailchimpMarketing/api/connected_sites_api.rb +11 -22
  14. data/lib/MailchimpMarketing/api/conversations_api.rb +11 -22
  15. data/lib/MailchimpMarketing/api/dashboard_api.rb +13 -26
  16. data/lib/MailchimpMarketing/api/ecommerce_api.rb +119 -238
  17. data/lib/MailchimpMarketing/api/external_auths_api.rb +7 -14
  18. data/lib/MailchimpMarketing/api/facebook_ads_api.rb +5 -10
  19. data/lib/MailchimpMarketing/api/file_manager_api.rb +23 -46
  20. data/lib/MailchimpMarketing/api/landing_pages_api.rb +17 -34
  21. data/lib/MailchimpMarketing/api/lists_api.rb +136 -268
  22. data/lib/MailchimpMarketing/api/ping_api.rb +3 -6
  23. data/lib/MailchimpMarketing/api/postcards_api.rb +3 -6
  24. data/lib/MailchimpMarketing/api/reporting_api.rb +13 -26
  25. data/lib/MailchimpMarketing/api/reports_api.rb +45 -90
  26. data/lib/MailchimpMarketing/api/root_api.rb +3 -6
  27. data/lib/MailchimpMarketing/api/search_campaigns_api.rb +3 -6
  28. data/lib/MailchimpMarketing/api/search_members_api.rb +3 -6
  29. data/lib/MailchimpMarketing/api/template_folders_api.rb +11 -22
  30. data/lib/MailchimpMarketing/api/templates_api.rb +13 -26
  31. data/lib/MailchimpMarketing/api/verified_domains_api.rb +11 -22
  32. data/lib/MailchimpMarketing/api_client.rb +17 -117
  33. data/lib/MailchimpMarketing/api_error.rb +1 -1
  34. data/lib/MailchimpMarketing/configuration.rb +1 -1
  35. data/lib/MailchimpMarketing/version.rb +2 -2
  36. metadata +6 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7345416325d95b973d89425c687838e5850879467255143fd42dfaa6a61f075
4
- data.tar.gz: f9ad2549cf2395924d4f2697ab85fc6f91aeafbf543d9669c1379bee2e27aeac
3
+ metadata.gz: 07d3c3dd9bb024bbfc4dbefd991e944ca4537d7221c8e8acedb4e813eb7237c5
4
+ data.tar.gz: f73fd28cbd5d102c35752b756e8677da5b089d196e3417c645fed90bb92498aa
5
5
  SHA512:
6
- metadata.gz: 3869ca68063c42e747ef074e3ecf174ddff9cf41e11c18489abd49ac7fa1f0e6d7ff0573fa715c683bf6cd68faec2dd7218a6620611a86139b1768a3a3dc148b
7
- data.tar.gz: 6ba1658ef9337abb5531ca4d503cc418348f263afbaa98a6763434eb074fe900feb094186c8bd13ab479fd42e4057aa906e81573f3b5a808d9ea5819b22a1ea2
6
+ metadata.gz: '086e875b380bd054ccf873b5614e5666c9f24377cd602ac82ced2b8d77a1120e63411ebdba8e95e05d8b23348f34da10b6057e5e244a9147d1d6225176ff2b23'
7
+ data.tar.gz: 02d5219a41c42b2c6f54dce87dff70ea61e1eeaf114d877dfc66d05ddb63dabde949ed89cfad910ed1146844463f240eb3a2f7af70bbf89f62080a4cd3b04a7d
data/LICENSE ADDED
@@ -0,0 +1,53 @@
1
+ Mailchimp Client Library License Agreement
2
+
3
+ IMPORTANT- PLEASE READ CAREFULLY BEFORE OPENING, INSTALLING, COPYING OR USING THE CLIENT LIBRARY. This Client Library License Agreement (“Agreement”) is a legal document by and between you (hereinafter referred to as “You” “Your” or “Licensee”) and The Rocket Science Group LLC (“Mailchimp”) (each a “Party” and collectively, “Parties”) for the client library, including any upgrades, modified versions, updates, additions, and copies of the foregoing, including the software and related documentation (the “Mailchimp Client Library”).
4
+
5
+ BY OPENING, INSTALLING, COPYING OR USING THE MAILCHIMP CLIENT LIBRARY OR ANY PORTION THEREOF, YOU AGREE TO ALL THE TERMS OF THIS AGREEMENT. IF YOU ARE AGREEING TO THIS AGREEMENT AS AN INDIVIDUAL, “YOU” “YOUR” AND “LICENSEE” REFERS TO YOU INDIVIDUALLY. IF YOU ARE AGREEING TO THIS AGREEMENT AS A REPRESENTATIVE OF A LEGAL ENTITY, YOU REPRESENT THAT YOU HAVE THE AUTHORITY TO BIND THAT ENTITY AND “YOU” “YOUR” AND “LICENSEE” REFERS TO THAT LEGAL ENTITY AND ALL THE USERS ACCESSING THE SOFTWARE BY, THROUGH OR ON BEHALF OF THAT LEGAL ENTITY. IF YOU DO NOT AGREE WITH ALL OF THE TERMS OF THIS AGREEMENT, DO NOT (AND ENSURE THAT YOUR END USERS DO NOT) OPEN, INSTALL, COPY OR USE THE MAILCHIMP CLIENT LIBRARY.
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+ 1. Definitions.
9
+ “License” shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 10 of these Terms and Conditions for Use, Reproduction and Distribution.
10
+ “Legal Entity” shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, “control” means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
11
+ “You” (or “Your”) shall mean an individual or Legal Entity exercising permissions granted by this License.
12
+ “Source” form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
13
+ “Object” form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
14
+ “Work” shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work.
15
+ “Derivative Works” shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
16
+ “Contribution” shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Mailchimp for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, “submitted” means any form of electronic, verbal, or written communication sent to Mailchimp or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, Mailchimp for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as “Not a Contribution.”
17
+ “Contributor” shall mean Mailchimp and any individual or Legal Entity on behalf of whom a Contribution has been received by Mailchimp and subsequently incorporated within the Work.
18
+
19
+ 2. Grant of Copyright License. Subject to the terms and conditions of this Agreement, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
20
+
21
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
22
+
23
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
24
+ a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
25
+ b) You must cause any modified files to carry prominent notices stating that You changed the files; and
26
+ c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
27
+ d) If the Work includes a “NOTICE” text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
28
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
29
+
30
+ 5. Submission of Contributions. Any Contribution submitted for inclusion in the Work by You to Mailchimp shall be made under the terms and conditions of the Individual Contributor License Agreement or the Software Grant and Corporate Contributor License Agreement, as applicable.
31
+
32
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of Mailchimp, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
33
+
34
+ 7. Export controls. The Mailchimp Client Library is subject to united states export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the Mailchimp Client Library. These laws include restrictions on destinations, end-users and end use.
35
+
36
+ 8. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
37
+
38
+ 9. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
39
+
40
+ 10. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
41
+
42
+ Copyright 2020, The Rocket Science Group LLC
43
+
44
+ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
45
+
46
+ You should include a copy of the License, typically in a file called LICENSE, in your work, and consider also including a NOTICE file.
47
+
48
+ To apply the License to specific files in your work, attach the following boilerplate declaration, with the fields enclosed by brackets “[]” replaced with your own identifying information. (Don’t include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same “printed page” as the copyright notice for easier identification within third-party archives.
49
+ Copyright [yyyy] [name of copyright owner]
50
+
51
+ Licensed under the Mailchimp Client Library License Agreement (the “License”); you may not use this file except in compliance with the License. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either or express or implied.
52
+ See the License for the specific language governing permissions and
53
+ limitations under the License.
@@ -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
8
+ OpenAPI spec version: 3.0.13
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
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.license = 'Apache-2.0'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
- s.add_runtime_dependency 'faraday', '~> 1.0', '>= 1.0.1'
30
+ s.add_runtime_dependency 'excon', '~> 0.76.0'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
32
 
33
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
data/README.md CHANGED
@@ -20,8 +20,8 @@ gem 'MailchimpMarketing', :git => 'https://github.com/mailchimp/mailchimp-market
20
20
 
21
21
  ```shell
22
22
  gem build MailchimpMarketing.gemspec
23
- gem install ./MailchimpMarketing-3.0.8.gem
24
- gem 'MailchimpMarketing', '~> 3.0.8'
23
+ gem install ./MailchimpMarketing-3.0.13.gem
24
+ gem 'MailchimpMarketing', '~> 3.0.13'
25
25
  ```
26
26
 
27
27
  ## Quick Start
@@ -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.8
6
+ OpenAPI spec version: 3.0.13
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.8
6
+ OpenAPI spec version: 3.0.13
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,7 +11,6 @@ Swagger Codegen version: 2.4.12
11
11
  =end
12
12
 
13
13
  require 'uri'
14
- require 'json'
15
14
 
16
15
  module MailchimpMarketing
17
16
  class ActivityFeedApi
@@ -25,15 +24,13 @@ module MailchimpMarketing
25
24
  def get(opts = {})
26
25
 
27
26
  query_params = {}
28
- form_params = {}
29
27
  post_body = nil
30
28
 
31
29
  local_var_path = '/activity-feed'
32
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
30
+ data = @api_client.call_api(:GET, local_var_path,
33
31
  :query_params => query_params,
34
- :form_params => form_params,
35
32
  :body => post_body)
36
- return data, status_code, headers
33
+ return data
37
34
  end
38
35
 
39
36
  # Get latest chimp chatter
@@ -43,15 +40,13 @@ module MailchimpMarketing
43
40
  query_params = {}
44
41
  query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
45
42
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
46
- form_params = {}
47
43
  post_body = nil
48
44
 
49
45
  local_var_path = '/activity-feed/chimp-chatter'
50
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
46
+ data = @api_client.call_api(:GET, local_var_path,
51
47
  :query_params => query_params,
52
- :form_params => form_params,
53
48
  :body => post_body)
54
- return data, status_code, headers
49
+ return data
55
50
  end
56
51
  end
57
52
  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.8
6
+ OpenAPI spec version: 3.0.13
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,7 +11,6 @@ Swagger Codegen version: 2.4.12
11
11
  =end
12
12
 
13
13
  require 'uri'
14
- require 'json'
15
14
 
16
15
  module MailchimpMarketing
17
16
  class AuthorizedAppsApi
@@ -30,15 +29,13 @@ module MailchimpMarketing
30
29
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
31
30
  query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
32
31
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
33
- form_params = {}
34
32
  post_body = nil
35
33
 
36
34
  local_var_path = '/authorized-apps'
37
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
35
+ data = @api_client.call_api(:GET, local_var_path,
38
36
  :query_params => query_params,
39
- :form_params => form_params,
40
37
  :body => post_body)
41
- return data, status_code, headers
38
+ return data
42
39
  end
43
40
 
44
41
  # Get authorized app info
@@ -48,15 +45,13 @@ module MailchimpMarketing
48
45
  query_params = {}
49
46
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
50
47
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
51
- form_params = {}
52
48
  post_body = nil
53
49
 
54
50
  local_var_path = '/authorized-apps/{app_id}'.sub('{' + 'app_id' + '}', app_id.to_s)
55
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
51
+ data = @api_client.call_api(:GET, local_var_path,
56
52
  :query_params => query_params,
57
- :form_params => form_params,
58
53
  :body => post_body)
59
- return data, status_code, headers
54
+ return data
60
55
  end
61
56
 
62
57
  # Link application
@@ -64,15 +59,13 @@ module MailchimpMarketing
64
59
  fail ArgumentError, "Missing required param: 'client_details'" if client_details.nil?
65
60
 
66
61
  query_params = {}
67
- form_params = {}
68
62
  post_body = @api_client.object_to_http_body(client_details)
69
63
 
70
64
  local_var_path = '/authorized-apps'
71
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
65
+ data = @api_client.call_api(:POST, local_var_path,
72
66
  :query_params => query_params,
73
- :form_params => form_params,
74
67
  :body => post_body)
75
- return data, status_code, headers
68
+ return data
76
69
  end
77
70
  end
78
71
  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.8
6
+ OpenAPI spec version: 3.0.13
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,7 +11,6 @@ Swagger Codegen version: 2.4.12
11
11
  =end
12
12
 
13
13
  require 'uri'
14
- require 'json'
15
14
 
16
15
  module MailchimpMarketing
17
16
  class AutomationsApi
@@ -26,15 +25,13 @@ module MailchimpMarketing
26
25
  fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
27
26
 
28
27
  query_params = {}
29
- form_params = {}
30
28
  post_body = nil
31
29
 
32
30
  local_var_path = '/automations/{workflow_id}/actions/archive'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
33
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
31
+ data = @api_client.call_api(:POST, local_var_path,
34
32
  :query_params => query_params,
35
- :form_params => form_params,
36
33
  :body => post_body)
37
- return data, status_code, headers
34
+ return data
38
35
  end
39
36
 
40
37
  # Delete workflow email
@@ -43,15 +40,13 @@ module MailchimpMarketing
43
40
  fail ArgumentError, "Missing required param: 'workflow_email_id'" if workflow_email_id.nil?
44
41
 
45
42
  query_params = {}
46
- form_params = {}
47
43
  post_body = nil
48
44
 
49
45
  local_var_path = '/automations/{workflow_id}/emails/{workflow_email_id}'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'workflow_email_id' + '}', workflow_email_id.to_s)
50
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
46
+ data = @api_client.call_api(:DELETE, local_var_path,
51
47
  :query_params => query_params,
52
- :form_params => form_params,
53
48
  :body => post_body)
54
- return data, status_code, headers
49
+ return data
55
50
  end
56
51
 
57
52
  # List automations
@@ -66,15 +61,13 @@ module MailchimpMarketing
66
61
  query_params[:'before_send_time'] = opts[:'before_send_time'] if !opts[:'before_send_time'].nil?
67
62
  query_params[:'since_send_time'] = opts[:'since_send_time'] if !opts[:'since_send_time'].nil?
68
63
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
69
- form_params = {}
70
64
  post_body = nil
71
65
 
72
66
  local_var_path = '/automations'
73
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
67
+ data = @api_client.call_api(:GET, local_var_path,
74
68
  :query_params => query_params,
75
- :form_params => form_params,
76
69
  :body => post_body)
77
- return data, status_code, headers
70
+ return data
78
71
  end
79
72
 
80
73
  # Get automation info
@@ -84,15 +77,13 @@ module MailchimpMarketing
84
77
  query_params = {}
85
78
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
86
79
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
87
- form_params = {}
88
80
  post_body = nil
89
81
 
90
82
  local_var_path = '/automations/{workflow_id}'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
91
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
83
+ data = @api_client.call_api(:GET, local_var_path,
92
84
  :query_params => query_params,
93
- :form_params => form_params,
94
85
  :body => post_body)
95
- return data, status_code, headers
86
+ return data
96
87
  end
97
88
 
98
89
  # List automated emails
@@ -100,15 +91,13 @@ module MailchimpMarketing
100
91
  fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
101
92
 
102
93
  query_params = {}
103
- form_params = {}
104
94
  post_body = nil
105
95
 
106
96
  local_var_path = '/automations/{workflow_id}/emails'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
107
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
97
+ data = @api_client.call_api(:GET, local_var_path,
108
98
  :query_params => query_params,
109
- :form_params => form_params,
110
99
  :body => post_body)
111
- return data, status_code, headers
100
+ return data
112
101
  end
113
102
 
114
103
  # Get workflow email info
@@ -117,15 +106,13 @@ module MailchimpMarketing
117
106
  fail ArgumentError, "Missing required param: 'workflow_email_id'" if workflow_email_id.nil?
118
107
 
119
108
  query_params = {}
120
- form_params = {}
121
109
  post_body = nil
122
110
 
123
111
  local_var_path = '/automations/{workflow_id}/emails/{workflow_email_id}'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'workflow_email_id' + '}', workflow_email_id.to_s)
124
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
112
+ data = @api_client.call_api(:GET, local_var_path,
125
113
  :query_params => query_params,
126
- :form_params => form_params,
127
114
  :body => post_body)
128
- return data, status_code, headers
115
+ return data
129
116
  end
130
117
 
131
118
  # List automated email subscribers
@@ -134,15 +121,13 @@ module MailchimpMarketing
134
121
  fail ArgumentError, "Missing required param: 'workflow_email_id'" if workflow_email_id.nil?
135
122
 
136
123
  query_params = {}
137
- form_params = {}
138
124
  post_body = nil
139
125
 
140
126
  local_var_path = '/automations/{workflow_id}/emails/{workflow_email_id}/queue'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'workflow_email_id' + '}', workflow_email_id.to_s)
141
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
127
+ data = @api_client.call_api(:GET, local_var_path,
142
128
  :query_params => query_params,
143
- :form_params => form_params,
144
129
  :body => post_body)
145
- return data, status_code, headers
130
+ return data
146
131
  end
147
132
 
148
133
  # Get automated email subscriber
@@ -152,15 +137,13 @@ module MailchimpMarketing
152
137
  fail ArgumentError, "Missing required param: 'subscriber_hash'" if subscriber_hash.nil?
153
138
 
154
139
  query_params = {}
155
- form_params = {}
156
140
  post_body = nil
157
141
 
158
142
  local_var_path = '/automations/{workflow_id}/emails/{workflow_email_id}/queue/{subscriber_hash}'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'workflow_email_id' + '}', workflow_email_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
159
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
143
+ data = @api_client.call_api(:GET, local_var_path,
160
144
  :query_params => query_params,
161
- :form_params => form_params,
162
145
  :body => post_body)
163
- return data, status_code, headers
146
+ return data
164
147
  end
165
148
 
166
149
  # List subscribers removed from workflow
@@ -168,15 +151,13 @@ module MailchimpMarketing
168
151
  fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
169
152
 
170
153
  query_params = {}
171
- form_params = {}
172
154
  post_body = nil
173
155
 
174
156
  local_var_path = '/automations/{workflow_id}/removed-subscribers'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
175
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
157
+ data = @api_client.call_api(:GET, local_var_path,
176
158
  :query_params => query_params,
177
- :form_params => form_params,
178
159
  :body => post_body)
179
- return data, status_code, headers
160
+ return data
180
161
  end
181
162
 
182
163
  # Get subscriber removed from workflow
@@ -185,15 +166,13 @@ module MailchimpMarketing
185
166
  fail ArgumentError, "Missing required param: 'subscriber_hash'" if subscriber_hash.nil?
186
167
 
187
168
  query_params = {}
188
- form_params = {}
189
169
  post_body = nil
190
170
 
191
171
  local_var_path = '/automations/{workflow_id}/removed-subscribers/{subscriber_hash}'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
192
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
172
+ data = @api_client.call_api(:GET, local_var_path,
193
173
  :query_params => query_params,
194
- :form_params => form_params,
195
174
  :body => post_body)
196
- return data, status_code, headers
175
+ return data
197
176
  end
198
177
 
199
178
  # Update workflow email
@@ -203,15 +182,13 @@ module MailchimpMarketing
203
182
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
204
183
 
205
184
  query_params = {}
206
- form_params = {}
207
185
  post_body = @api_client.object_to_http_body(body)
208
186
 
209
187
  local_var_path = '/automations/{workflow_id}/emails/{workflow_email_id}'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'workflow_email_id' + '}', workflow_email_id.to_s)
210
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
188
+ data = @api_client.call_api(:PATCH, local_var_path,
211
189
  :query_params => query_params,
212
- :form_params => form_params,
213
190
  :body => post_body)
214
- return data, status_code, headers
191
+ return data
215
192
  end
216
193
 
217
194
  # Update automation
@@ -220,15 +197,13 @@ module MailchimpMarketing
220
197
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
221
198
 
222
199
  query_params = {}
223
- form_params = {}
224
200
  post_body = @api_client.object_to_http_body(body)
225
201
 
226
202
  local_var_path = '/automations/{workflow_id}'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
227
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
203
+ data = @api_client.call_api(:PATCH, local_var_path,
228
204
  :query_params => query_params,
229
- :form_params => form_params,
230
205
  :body => post_body)
231
- return data, status_code, headers
206
+ return data
232
207
  end
233
208
 
234
209
  # Add automation
@@ -236,15 +211,13 @@ module MailchimpMarketing
236
211
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
237
212
 
238
213
  query_params = {}
239
- form_params = {}
240
214
  post_body = @api_client.object_to_http_body(body)
241
215
 
242
216
  local_var_path = '/automations'
243
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
217
+ data = @api_client.call_api(:POST, local_var_path,
244
218
  :query_params => query_params,
245
- :form_params => form_params,
246
219
  :body => post_body)
247
- return data, status_code, headers
220
+ return data
248
221
  end
249
222
 
250
223
  # Pause automation emails
@@ -252,15 +225,13 @@ module MailchimpMarketing
252
225
  fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
253
226
 
254
227
  query_params = {}
255
- form_params = {}
256
228
  post_body = nil
257
229
 
258
230
  local_var_path = '/automations/{workflow_id}/actions/pause-all-emails'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
259
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
231
+ data = @api_client.call_api(:POST, local_var_path,
260
232
  :query_params => query_params,
261
- :form_params => form_params,
262
233
  :body => post_body)
263
- return data, status_code, headers
234
+ return data
264
235
  end
265
236
 
266
237
  # Start automation emails
@@ -268,15 +239,13 @@ module MailchimpMarketing
268
239
  fail ArgumentError, "Missing required param: 'workflow_id'" if workflow_id.nil?
269
240
 
270
241
  query_params = {}
271
- form_params = {}
272
242
  post_body = nil
273
243
 
274
244
  local_var_path = '/automations/{workflow_id}/actions/start-all-emails'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
275
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
245
+ data = @api_client.call_api(:POST, local_var_path,
276
246
  :query_params => query_params,
277
- :form_params => form_params,
278
247
  :body => post_body)
279
- return data, status_code, headers
248
+ return data
280
249
  end
281
250
 
282
251
  # Pause automated email
@@ -285,15 +254,13 @@ module MailchimpMarketing
285
254
  fail ArgumentError, "Missing required param: 'workflow_email_id'" if workflow_email_id.nil?
286
255
 
287
256
  query_params = {}
288
- form_params = {}
289
257
  post_body = nil
290
258
 
291
259
  local_var_path = '/automations/{workflow_id}/emails/{workflow_email_id}/actions/pause'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'workflow_email_id' + '}', workflow_email_id.to_s)
292
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
260
+ data = @api_client.call_api(:POST, local_var_path,
293
261
  :query_params => query_params,
294
- :form_params => form_params,
295
262
  :body => post_body)
296
- return data, status_code, headers
263
+ return data
297
264
  end
298
265
 
299
266
  # Start automated email
@@ -302,15 +269,13 @@ module MailchimpMarketing
302
269
  fail ArgumentError, "Missing required param: 'workflow_email_id'" if workflow_email_id.nil?
303
270
 
304
271
  query_params = {}
305
- form_params = {}
306
272
  post_body = nil
307
273
 
308
274
  local_var_path = '/automations/{workflow_id}/emails/{workflow_email_id}/actions/start'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'workflow_email_id' + '}', workflow_email_id.to_s)
309
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
275
+ data = @api_client.call_api(:POST, local_var_path,
310
276
  :query_params => query_params,
311
- :form_params => form_params,
312
277
  :body => post_body)
313
- return data, status_code, headers
278
+ return data
314
279
  end
315
280
 
316
281
  # Add subscriber to workflow email
@@ -320,15 +285,13 @@ module MailchimpMarketing
320
285
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
321
286
 
322
287
  query_params = {}
323
- form_params = {}
324
288
  post_body = @api_client.object_to_http_body(body)
325
289
 
326
290
  local_var_path = '/automations/{workflow_id}/emails/{workflow_email_id}/queue'.sub('{' + 'workflow_id' + '}', workflow_id.to_s).sub('{' + 'workflow_email_id' + '}', workflow_email_id.to_s)
327
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
291
+ data = @api_client.call_api(:POST, local_var_path,
328
292
  :query_params => query_params,
329
- :form_params => form_params,
330
293
  :body => post_body)
331
- return data, status_code, headers
294
+ return data
332
295
  end
333
296
 
334
297
  # Remove subscriber from workflow
@@ -337,15 +300,13 @@ module MailchimpMarketing
337
300
  fail ArgumentError, "Missing required param: 'body'" if body.nil?
338
301
 
339
302
  query_params = {}
340
- form_params = {}
341
303
  post_body = @api_client.object_to_http_body(body)
342
304
 
343
305
  local_var_path = '/automations/{workflow_id}/removed-subscribers'.sub('{' + 'workflow_id' + '}', workflow_id.to_s)
344
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
306
+ data = @api_client.call_api(:POST, local_var_path,
345
307
  :query_params => query_params,
346
- :form_params => form_params,
347
308
  :body => post_body)
348
- return data, status_code, headers
309
+ return data
349
310
  end
350
311
  end
351
312
  end