MailchimpMarketing 3.0.27 → 3.0.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/MailchimpMarketing.gemspec +1 -1
  3. data/README.md +2 -2
  4. data/lib/MailchimpMarketing.rb +1 -1
  5. data/lib/MailchimpMarketing/api/activity_feed_api.rb +1 -1
  6. data/lib/MailchimpMarketing/api/authorized_apps_api.rb +1 -1
  7. data/lib/MailchimpMarketing/api/automations_api.rb +1 -1
  8. data/lib/MailchimpMarketing/api/batch_webhooks_api.rb +1 -1
  9. data/lib/MailchimpMarketing/api/batches_api.rb +1 -1
  10. data/lib/MailchimpMarketing/api/campaign_folders_api.rb +1 -1
  11. data/lib/MailchimpMarketing/api/campaigns_api.rb +1 -1
  12. data/lib/MailchimpMarketing/api/connected_sites_api.rb +1 -1
  13. data/lib/MailchimpMarketing/api/conversations_api.rb +1 -1
  14. data/lib/MailchimpMarketing/api/ecommerce_api.rb +1 -1
  15. data/lib/MailchimpMarketing/api/facebook_ads_api.rb +1 -1
  16. data/lib/MailchimpMarketing/api/file_manager_api.rb +1 -1
  17. data/lib/MailchimpMarketing/api/landing_pages_api.rb +1 -1
  18. data/lib/MailchimpMarketing/api/lists_api.rb +1 -1
  19. data/lib/MailchimpMarketing/api/ping_api.rb +1 -1
  20. data/lib/MailchimpMarketing/api/reporting_api.rb +1 -1
  21. data/lib/MailchimpMarketing/api/reports_api.rb +1 -1
  22. data/lib/MailchimpMarketing/api/root_api.rb +1 -1
  23. data/lib/MailchimpMarketing/api/search_campaigns_api.rb +1 -1
  24. data/lib/MailchimpMarketing/api/search_members_api.rb +1 -1
  25. data/lib/MailchimpMarketing/api/template_folders_api.rb +1 -1
  26. data/lib/MailchimpMarketing/api/templates_api.rb +1 -1
  27. data/lib/MailchimpMarketing/api/verified_domains_api.rb +1 -1
  28. data/lib/MailchimpMarketing/api_client.rb +10 -2
  29. data/lib/MailchimpMarketing/api_error.rb +1 -1
  30. data/lib/MailchimpMarketing/configuration.rb +1 -1
  31. data/lib/MailchimpMarketing/version.rb +2 -2
  32. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d9623cc3fb4f002662f5c6c64a5920b8eb68a5b2ed3866ab662f5c8dc8aab57
4
- data.tar.gz: 8b04c2ddf38c0991f80ae4b064d67128b1aa19caa2783313432ed90251e4e185
3
+ metadata.gz: adf75a666dfc687afbe3e8a0d8cde20c8cbca5cd8b0ed39dc379b2e76dcef7bf
4
+ data.tar.gz: 40bf596d14629fe7e4c1fff7cd04e0a4d799fc3457b04cccd5111321d5e4591d
5
5
  SHA512:
6
- metadata.gz: a88be8d2300ae37d7687a91fd4cb5f2586e4a923b1581796a5ab9ea7f80eef7915ab0a2551ba6a676f779aaec500eaec7401b74731a8a2c1d73b63e251addbe2
7
- data.tar.gz: 35f6fa0919cfb958a609067a2cd4cfe25e1a613b0340436fc7d9bc7461eda76b7a6af4416143b0b825aecbd5ae1b1ea5d74029bac62500b2079c9f95bad1805e
6
+ metadata.gz: cd0aa82759b4c88fe8b5d57c96215a24e9e74522dcc99c0c3d729c019d0778c65b85f646551396f1f2ef19d800be7b776b3e5d1121137a269b4ffbae583aeb0b
7
+ data.tar.gz: 59640c58f8fb40f1bda71654feb66d4c6f4df3ce131f496a491417ae55a56d3110800343efcd7a27892ae993790937d0fd02ccd17aa75d274c598d815cb4b607
@@ -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.27
8
+ OpenAPI spec version: 3.0.32
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.27.gem
30
- gem 'MailchimpMarketing', '~> 3.0.27'
29
+ gem install ./MailchimpMarketing-3.0.32.gem
30
+ gem 'MailchimpMarketing', '~> 3.0.32'
31
31
  ```
32
32
 
33
33
  ## 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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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,13 +3,14 @@
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.27
6
+ OpenAPI spec version: 3.0.32
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
10
10
 
11
11
  =end
12
12
 
13
+ require 'base64'
13
14
  require 'json'
14
15
  require 'excon'
15
16
 
@@ -55,7 +56,7 @@ module MailchimpMarketing
55
56
 
56
57
  def call_api(http_method, path, opts = {})
57
58
  headers = {'Content-Type' => "application/json"}
58
- headers[:Authorization] = "Basic #{@api_key}" if @is_basic_auth
59
+ headers[:Authorization] = "Basic #{encoded_basic_token(@api_key)}" if @is_basic_auth
59
60
  headers[:Authorization] = "Bearer #@access_token" if @is_oauth
60
61
 
61
62
  host = @server.length > 0 ? @host.sub('server', @server) : @host
@@ -118,5 +119,12 @@ module MailchimpMarketing
118
119
  fail "unknown collection format: #{collection_format.inspect}"
119
120
  end
120
121
  end
122
+
123
+ private
124
+
125
+ # Build base64 encoded token for basic auth.
126
+ def encoded_basic_token(api_key)
127
+ Base64.urlsafe_encode64("user:#{api_key}")
128
+ end
121
129
  end
122
130
  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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27
6
+ OpenAPI spec version: 3.0.32
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.27'
14
+ VERSION = '3.0.32'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: MailchimpMarketing
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.27
4
+ version: 3.0.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swagger-Codegen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-23 00:00:00.000000000 Z
11
+ date: 2021-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon