MailchimpMarketing 3.0.24 → 3.0.29
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 +2 -3
- data/lib/MailchimpMarketing.rb +1 -1
- data/lib/MailchimpMarketing/api/activity_feed_api.rb +1 -1
- data/lib/MailchimpMarketing/api/authorized_apps_api.rb +1 -15
- 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/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 +17 -12
- data/lib/MailchimpMarketing/api/ping_api.rb +1 -1
- data/lib/MailchimpMarketing/api/reporting_api.rb +1 -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/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 +10 -2
- data/lib/MailchimpMarketing/api_error.rb +1 -1
- data/lib/MailchimpMarketing/configuration.rb +1 -1
- data/lib/MailchimpMarketing/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b32e879f29c5c812c8b929b231aa0e535afb0e7f541de615415a563005f6a6a
|
4
|
+
data.tar.gz: 44fe0ac72bd7defee62bb603b2b9e881dd3a217f4e6d8b239592b0293f2d13ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5901b66af3959296e64355e72b086c5b5e5a9ce4dcb6860226f2c16c98c85f24ac008ac776624a8e9c2c37151a94eb433d3762e1bc4ab3a5c8a4d5b21a0e51a3
|
7
|
+
data.tar.gz: e06daec7078e1f56c449d181364366d436b10fb385498ac5f3c713552f11982fb88174e5db7640d291feb010bbd9587ac84936275d738251f52b646fe2b83a24
|
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.29
|
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.29.gem
|
30
|
+
gem 'MailchimpMarketing', '~> 3.0.29'
|
31
31
|
```
|
32
32
|
|
33
33
|
## Quick Start
|
@@ -90,7 +90,6 @@ All URIs are relative to *https://server.api.mailchimp.com/3.0*
|
|
90
90
|
| **activityFeed.get_chimp_chatter** | /activity-feed/chimp-chatter |
|
91
91
|
| **authorizedApps.list** | /authorized-apps |
|
92
92
|
| **authorizedApps.get** | /authorized-apps/{app_id} |
|
93
|
-
| **authorizedApps.link** | /authorized-apps |
|
94
93
|
| **automations.archive** | /automations/{workflow_id}/actions/archive |
|
95
94
|
| **automations.delete_workflow_email** | /automations/{workflow_id}/emails/{workflow_email_id} |
|
96
95
|
| **automations.list** | /automations |
|
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.29
|
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.29
|
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.29
|
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
|
@@ -53,19 +53,5 @@ module MailchimpMarketing
|
|
53
53
|
:body => post_body)
|
54
54
|
return data
|
55
55
|
end
|
56
|
-
|
57
|
-
# Link application
|
58
|
-
def link(client_details, opts = {})
|
59
|
-
fail ArgumentError, "Missing required param: 'client_details'" if client_details.nil?
|
60
|
-
|
61
|
-
query_params = {}
|
62
|
-
post_body = @api_client.object_to_http_body(client_details)
|
63
|
-
|
64
|
-
local_var_path = '/authorized-apps'
|
65
|
-
data = @api_client.call_api(:POST, local_var_path,
|
66
|
-
:query_params => query_params,
|
67
|
-
:body => post_body)
|
68
|
-
return data
|
69
|
-
end
|
70
56
|
end
|
71
57
|
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.29
|
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.29
|
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.29
|
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.29
|
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.29
|
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.29
|
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.29
|
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.29
|
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.29
|
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.29
|
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.29
|
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.29
|
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
|
@@ -752,13 +752,14 @@ module MailchimpMarketing
|
|
752
752
|
end
|
753
753
|
|
754
754
|
# Update interest in category
|
755
|
-
def update_interest_category_interest(list_id, interest_category_id, interest_id, opts = {})
|
755
|
+
def update_interest_category_interest(list_id, interest_category_id, interest_id, body, opts = {})
|
756
756
|
fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
|
757
757
|
fail ArgumentError, "Missing required param: 'interest_category_id'" if interest_category_id.nil?
|
758
758
|
fail ArgumentError, "Missing required param: 'interest_id'" if interest_id.nil?
|
759
|
+
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
759
760
|
|
760
761
|
query_params = {}
|
761
|
-
post_body = @api_client.object_to_http_body(
|
762
|
+
post_body = @api_client.object_to_http_body(body)
|
762
763
|
|
763
764
|
local_var_path = '/lists/{list_id}/interest-categories/{interest_category_id}/interests/{interest_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'interest_category_id' + '}', interest_category_id.to_s).sub('{' + 'interest_id' + '}', interest_id.to_s)
|
764
765
|
data = @api_client.call_api(:PATCH, local_var_path,
|
@@ -785,13 +786,14 @@ module MailchimpMarketing
|
|
785
786
|
end
|
786
787
|
|
787
788
|
# Update note
|
788
|
-
def update_list_member_note(list_id, subscriber_hash, note_id, opts = {})
|
789
|
+
def update_list_member_note(list_id, subscriber_hash, note_id, body, opts = {})
|
789
790
|
fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
|
790
791
|
fail ArgumentError, "Missing required param: 'subscriber_hash'" if subscriber_hash.nil?
|
791
792
|
fail ArgumentError, "Missing required param: 'note_id'" if note_id.nil?
|
793
|
+
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
792
794
|
|
793
795
|
query_params = {}
|
794
|
-
post_body = @api_client.object_to_http_body(
|
796
|
+
post_body = @api_client.object_to_http_body(body)
|
795
797
|
|
796
798
|
local_var_path = '/lists/{list_id}/members/{subscriber_hash}/notes/{note_id}'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s).sub('{' + 'note_id' + '}', note_id.to_s)
|
797
799
|
data = @api_client.call_api(:PATCH, local_var_path,
|
@@ -865,12 +867,13 @@ module MailchimpMarketing
|
|
865
867
|
end
|
866
868
|
|
867
869
|
# Add or remove member tags
|
868
|
-
def update_list_member_tags(list_id, subscriber_hash, opts = {})
|
870
|
+
def update_list_member_tags(list_id, subscriber_hash, body, opts = {})
|
869
871
|
fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
|
870
872
|
fail ArgumentError, "Missing required param: 'subscriber_hash'" if subscriber_hash.nil?
|
873
|
+
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
871
874
|
|
872
875
|
query_params = {}
|
873
|
-
post_body = @api_client.object_to_http_body(
|
876
|
+
post_body = @api_client.object_to_http_body(body)
|
874
877
|
|
875
878
|
local_var_path = '/lists/{list_id}/members/{subscriber_hash}/tags'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
|
876
879
|
data = @api_client.call_api(:POST, local_var_path,
|
@@ -893,7 +896,7 @@ module MailchimpMarketing
|
|
893
896
|
return data
|
894
897
|
end
|
895
898
|
|
896
|
-
# Batch subscribe or
|
899
|
+
# Batch subscribe or unsubscribe
|
897
900
|
def batch_list_members(list_id, body, opts = {})
|
898
901
|
fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
|
899
902
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
@@ -973,12 +976,13 @@ module MailchimpMarketing
|
|
973
976
|
end
|
974
977
|
|
975
978
|
# Add member note
|
976
|
-
def create_list_member_note(list_id, subscriber_hash, opts = {})
|
979
|
+
def create_list_member_note(list_id, subscriber_hash, body, opts = {})
|
977
980
|
fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
|
978
981
|
fail ArgumentError, "Missing required param: 'subscriber_hash'" if subscriber_hash.nil?
|
982
|
+
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
979
983
|
|
980
984
|
query_params = {}
|
981
|
-
post_body = @api_client.object_to_http_body(
|
985
|
+
post_body = @api_client.object_to_http_body(body)
|
982
986
|
|
983
987
|
local_var_path = '/lists/{list_id}/members/{subscriber_hash}/notes'.sub('{' + 'list_id' + '}', list_id.to_s).sub('{' + 'subscriber_hash' + '}', subscriber_hash.to_s)
|
984
988
|
data = @api_client.call_api(:POST, local_var_path,
|
@@ -1107,11 +1111,12 @@ module MailchimpMarketing
|
|
1107
1111
|
end
|
1108
1112
|
|
1109
1113
|
# Preview segment
|
1110
|
-
def preview_segment(list_id, opts = {})
|
1114
|
+
def preview_segment(list_id, body, opts = {})
|
1111
1115
|
fail ArgumentError, "Missing required param: 'list_id'" if list_id.nil?
|
1116
|
+
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
1112
1117
|
|
1113
1118
|
query_params = {}
|
1114
|
-
post_body = @api_client.object_to_http_body(
|
1119
|
+
post_body = @api_client.object_to_http_body(body)
|
1115
1120
|
|
1116
1121
|
local_var_path = '/lists/{list_id}/preview-segment'.sub('{' + 'list_id' + '}', list_id.to_s)
|
1117
1122
|
data = @api_client.call_api(:POST, local_var_path,
|
@@ -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.29
|
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.29
|
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.29
|
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.29
|
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.29
|
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.29
|
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.29
|
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.29
|
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.29
|
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.
|
6
|
+
OpenAPI spec version: 3.0.29
|
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.
|
6
|
+
OpenAPI spec version: 3.0.29
|
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.29
|
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.29
|
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.29'
|
15
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: MailchimpMarketing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swagger-Codegen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|