mailchimp_api_v3 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +3 -0
- data/README.md +3 -2
- data/lib/mailchimp_api_v3/version.rb +1 -1
- data/spec/fixtures/cassettes/account.yml +12 -12
- data/spec/fixtures/cassettes/client.yml +31 -31
- data/spec/fixtures/cassettes/exception.yml +21 -21
- data/spec/fixtures/cassettes/interest.yml +47 -47
- data/spec/fixtures/cassettes/interest_categories.yml +70 -70
- data/spec/fixtures/cassettes/interest_category.yml +48 -48
- data/spec/fixtures/cassettes/interests.yml +87 -87
- data/spec/fixtures/cassettes/list.yml +26 -26
- data/spec/fixtures/cassettes/lists.yml +5 -5
- data/spec/fixtures/cassettes/mailchimp.yml +12 -12
- data/spec/fixtures/cassettes/member.yml +33 -33
- data/spec/fixtures/cassettes/members.yml +85 -85
- data/spec/fixtures/cassettes/members_create_or_update.yml +90 -90
- data/spec/fixtures/cassettes/members_paging.yml +25 -25
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b1defa3bc88fd22214ea8fc775fcca81f4b91f9
|
4
|
+
data.tar.gz: bb86a874d5bb6ecadd5fbab3459f8977dc4f7804
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5e166d8894d5cf0992fcbac31a48ab2167d63b90e446adefafd799174b557cab218169818c397b5869827b3d3c67dc21f712595b0a69f673a7b8272d0fa6b30
|
7
|
+
data.tar.gz: 129ffa0e7dda961bbe9a4f838f360fecbc418d173d69a480a326656d7dc206c79beba8772d50c6e7aaa3f9b3d3b88803cb22cc1b4be7ed7ec09d92c7d49355f9
|
data/HISTORY.md
ADDED
data/README.md
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
[![Code quality](http://img.shields.io/codeclimate/github/Xenapto/mailchimp_api_v3.svg?style=flat)](https://codeclimate.com/github/Xenapto/mailchimp_api_v3)
|
6
6
|
[![Coverage](https://img.shields.io/coveralls/Xenapto/mailchimp_api_v3/develop.svg?style=flat)](https://coveralls.io/r/Xenapto/mailchimp_api_v3?branch=develop)
|
7
7
|
[![Dependency Status](https://dependencyci.com/github/Xenapto/mailchimp_api_v3/badge)](https://dependencyci.com/github/Xenapto/mailchimp_api_v3)
|
8
|
+
[![Security](https://hakiri.io/github/Xenapto/mailchimp_api_v3/develop.svg)](https://hakiri.io/github/Xenapto/mailchimp_api_v3/develop)
|
8
9
|
[![Join the chat at https://gitter.im/Xenapto/mailchimp_api_v3](https://badges.gitter.im/Xenapto/mailchimp_api_v3.svg)](https://gitter.im/Xenapto/mailchimp_api_v3?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
9
10
|
|
10
11
|
A simple gem to interact with Mailchimp through the Mailchimp API v3
|
@@ -64,8 +65,8 @@ mailchimp = Mailchimp.connect
|
|
64
65
|
members = mailchimp.lists('e73f5910ca').where last_name: 'Example'
|
65
66
|
members.count # => 3
|
66
67
|
member = mailchimp.lists('e73f5910ca').members.first_or_create(
|
67
|
-
email_address: 'ann@example.com',
|
68
|
-
name: 'Ann Example',
|
68
|
+
email_address: 'ann@example.com',
|
69
|
+
name: 'Ann Example',
|
69
70
|
status: 'subscribed'
|
70
71
|
)
|
71
72
|
```
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https
|
5
|
+
uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -14,9 +14,9 @@ http_interactions:
|
|
14
14
|
User-Agent:
|
15
15
|
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
16
16
|
Authorization:
|
17
|
-
- apikey
|
17
|
+
- apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
|
18
18
|
Host:
|
19
|
-
- us11
|
19
|
+
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 301
|
@@ -29,7 +29,7 @@ http_interactions:
|
|
29
29
|
Content-Length:
|
30
30
|
- '242'
|
31
31
|
Location:
|
32
|
-
- http
|
32
|
+
- http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
33
33
|
Date:
|
34
34
|
- Thu, 04 Aug 2016 14:25:59 GMT
|
35
35
|
Connection:
|
@@ -42,13 +42,13 @@ http_interactions:
|
|
42
42
|
<title>301 Moved Permanently</title>
|
43
43
|
</head><body>
|
44
44
|
<h1>Moved Permanently</h1>
|
45
|
-
<p>The document has moved <a href="http
|
45
|
+
<p>The document has moved <a href="http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/">here</a>.</p>
|
46
46
|
</body></html>
|
47
|
-
http_version:
|
47
|
+
http_version:
|
48
48
|
recorded_at: Thu, 04 Aug 2016 14:25:59 GMT
|
49
49
|
- request:
|
50
50
|
method: get
|
51
|
-
uri: http
|
51
|
+
uri: http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
52
52
|
body:
|
53
53
|
encoding: US-ASCII
|
54
54
|
string: ''
|
@@ -60,9 +60,9 @@ http_interactions:
|
|
60
60
|
User-Agent:
|
61
61
|
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
62
62
|
Authorization:
|
63
|
-
- apikey
|
63
|
+
- apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
|
64
64
|
Host:
|
65
|
-
- us11
|
65
|
+
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
66
66
|
response:
|
67
67
|
status:
|
68
68
|
code: 200
|
@@ -77,7 +77,7 @@ http_interactions:
|
|
77
77
|
X-Request-Id:
|
78
78
|
- a4254ba5-c5e9-48fb-84a5-9857c659ccc2
|
79
79
|
Link:
|
80
|
-
- <https
|
80
|
+
- <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Root.json>; rel="describedBy"
|
81
81
|
Vary:
|
82
82
|
- Accept-Encoding
|
83
83
|
Date:
|
@@ -90,7 +90,7 @@ http_interactions:
|
|
90
90
|
encoding: ASCII-8BIT
|
91
91
|
string: '{"account_id":"1dbca289fd41b54838bcbb501","account_name":"InSite Arts","email":"sam@sayers.cc","username":"samsayers","role":"owner","contact":{"company":"InSite
|
92
92
|
Arts","addr1":"300 Burdett Road","addr2":"London","city":"London","state":"","zip":"E14
|
93
|
-
7DQ","country":"GB"},"pro_enabled":false,"last_login":"2016-08-04T14:25:25+00:00","total_subscribers":8,"industry_stats":{"open_rate":0.21842484737161,"bounce_rate":0.015938935487191,"click_rate":0.020519217237966},"_links":[{"rel":"self","href":"https
|
94
|
-
http_version:
|
93
|
+
7DQ","country":"GB"},"pro_enabled":false,"last_login":"2016-08-04T14:25:25+00:00","total_subscribers":8,"industry_stats":{"open_rate":0.21842484737161,"bounce_rate":0.015938935487191,"click_rate":0.020519217237966},"_links":[{"rel":"self","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Root.json"},{"rel":"lists","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Lists.json"},{"rel":"reports","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/reports","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Reports/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Reports.json"},{"rel":"conversations","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/conversations","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Conversations/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Conversations.json"},{"rel":"campaigns","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/campaigns","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Campaigns/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Campaigns.json"},{"rel":"automations","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/automations","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Automations/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Automations.json"},{"rel":"templates","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/templates","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Templates/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Templates.json"},{"rel":"file-manager","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/file-manager","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/FileManager/Namespace.json"},{"rel":"authorized-apps","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/authorized-apps","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/AuthorizedApps/Collection.json"},{"rel":"batches","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/batches","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Batches/Collection.json"},{"rel":"template-folders","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/template-folders","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/TemplateFolders/Collection.json"},{"rel":"campaign-folders","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/campaign-folders","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CampaignFolders/Collection.json"},{"rel":"ecommerce","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/ecommerce","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Ecommerce/Namespace.json"}]}'
|
94
|
+
http_version:
|
95
95
|
recorded_at: Thu, 04 Aug 2016 14:26:00 GMT
|
96
96
|
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https
|
5
|
+
uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists?count=500&exclude_fields=lists._links,_links&offset=0
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -14,9 +14,9 @@ http_interactions:
|
|
14
14
|
User-Agent:
|
15
15
|
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
16
16
|
Authorization:
|
17
|
-
- apikey
|
17
|
+
- apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
|
18
18
|
Host:
|
19
|
-
- us11
|
19
|
+
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 200
|
@@ -31,7 +31,7 @@ http_interactions:
|
|
31
31
|
X-Request-Id:
|
32
32
|
- eb718870-c1d4-48ab-b9a4-a5d1d7319c1b
|
33
33
|
Link:
|
34
|
-
- <https
|
34
|
+
- <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
|
35
35
|
Vary:
|
36
36
|
- Accept-Encoding
|
37
37
|
Date:
|
@@ -54,11 +54,11 @@ http_interactions:
|
|
54
54
|
One","zip":"E14 7DQ","country":"GB","phone":"02075372125"},"permission_reminder":"For
|
55
55
|
xenapto testing","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
|
56
56
|
Sayers","from_email":"sam@insitearts.com","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2015-07-12T16:45:11+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/bs3cI1","subscribe_url_long":"http://insitearts.us11.list-manage2.com/subscribe?u=1dbca289fd41b54838bcbb501&id=3f19e5d463","beamer_address":"us11-6692a2b3c3-8e485f6d99@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":4,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":0,"unsubscribe_count_since_send":0,"cleaned_count_since_send":0,"campaign_count":0,"campaign_last_sent":"","merge_field_count":2,"avg_sub_rate":0,"avg_unsub_rate":0,"target_sub_rate":0,"open_rate":0,"click_rate":0,"last_sub_date":"2015-07-14T11:28:57+00:00","last_unsub_date":""}}],"total_items":3}'
|
57
|
-
http_version:
|
57
|
+
http_version:
|
58
58
|
recorded_at: Thu, 04 Aug 2016 14:26:13 GMT
|
59
59
|
- request:
|
60
60
|
method: get
|
61
|
-
uri: https
|
61
|
+
uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists?count=500&exclude_fields=lists._links,_links&offset=0
|
62
62
|
body:
|
63
63
|
encoding: US-ASCII
|
64
64
|
string: ''
|
@@ -70,9 +70,9 @@ http_interactions:
|
|
70
70
|
User-Agent:
|
71
71
|
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
72
72
|
Authorization:
|
73
|
-
- apikey
|
73
|
+
- apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
|
74
74
|
Host:
|
75
|
-
- us11
|
75
|
+
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
76
76
|
response:
|
77
77
|
status:
|
78
78
|
code: 200
|
@@ -87,7 +87,7 @@ http_interactions:
|
|
87
87
|
X-Request-Id:
|
88
88
|
- d76aa546-d92c-477c-a6f7-e216e78a3377
|
89
89
|
Link:
|
90
|
-
- <https
|
90
|
+
- <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
|
91
91
|
Vary:
|
92
92
|
- Accept-Encoding
|
93
93
|
Date:
|
@@ -110,11 +110,11 @@ http_interactions:
|
|
110
110
|
One","zip":"E14 7DQ","country":"GB","phone":"02075372125"},"permission_reminder":"For
|
111
111
|
xenapto testing","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
|
112
112
|
Sayers","from_email":"sam@insitearts.com","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2015-07-12T16:45:11+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/bs3cI1","subscribe_url_long":"http://insitearts.us11.list-manage.com/subscribe?u=1dbca289fd41b54838bcbb501&id=3f19e5d463","beamer_address":"us11-6692a2b3c3-8e485f6d99@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":4,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":0,"unsubscribe_count_since_send":0,"cleaned_count_since_send":0,"campaign_count":0,"campaign_last_sent":"","merge_field_count":2,"avg_sub_rate":0,"avg_unsub_rate":0,"target_sub_rate":0,"open_rate":0,"click_rate":0,"last_sub_date":"2015-07-14T11:28:57+00:00","last_unsub_date":""}}],"total_items":3}'
|
113
|
-
http_version:
|
113
|
+
http_version:
|
114
114
|
recorded_at: Thu, 04 Aug 2016 14:26:14 GMT
|
115
115
|
- request:
|
116
116
|
method: get
|
117
|
-
uri: https
|
117
|
+
uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0
|
118
118
|
body:
|
119
119
|
encoding: US-ASCII
|
120
120
|
string: ''
|
@@ -126,9 +126,9 @@ http_interactions:
|
|
126
126
|
User-Agent:
|
127
127
|
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
128
128
|
Authorization:
|
129
|
-
- apikey
|
129
|
+
- apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
|
130
130
|
Host:
|
131
|
-
- us11
|
131
|
+
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
132
132
|
response:
|
133
133
|
status:
|
134
134
|
code: 301
|
@@ -141,7 +141,7 @@ http_interactions:
|
|
141
141
|
Content-Length:
|
142
142
|
- '242'
|
143
143
|
Location:
|
144
|
-
- http
|
144
|
+
- http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
145
145
|
Date:
|
146
146
|
- Thu, 04 Aug 2016 14:56:43 GMT
|
147
147
|
Connection:
|
@@ -154,13 +154,13 @@ http_interactions:
|
|
154
154
|
<title>301 Moved Permanently</title>
|
155
155
|
</head><body>
|
156
156
|
<h1>Moved Permanently</h1>
|
157
|
-
<p>The document has moved <a href="http
|
157
|
+
<p>The document has moved <a href="http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/">here</a>.</p>
|
158
158
|
</body></html>
|
159
|
-
http_version:
|
159
|
+
http_version:
|
160
160
|
recorded_at: Thu, 04 Aug 2016 14:56:43 GMT
|
161
161
|
- request:
|
162
162
|
method: get
|
163
|
-
uri: http
|
163
|
+
uri: http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
164
164
|
body:
|
165
165
|
encoding: US-ASCII
|
166
166
|
string: ''
|
@@ -172,9 +172,9 @@ http_interactions:
|
|
172
172
|
User-Agent:
|
173
173
|
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
174
174
|
Authorization:
|
175
|
-
- apikey
|
175
|
+
- apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
|
176
176
|
Host:
|
177
|
-
- us11
|
177
|
+
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
178
178
|
response:
|
179
179
|
status:
|
180
180
|
code: 200
|
@@ -189,7 +189,7 @@ http_interactions:
|
|
189
189
|
X-Request-Id:
|
190
190
|
- 5958e064-4137-4b6f-ab62-1bd339ecad53
|
191
191
|
Link:
|
192
|
-
- <https
|
192
|
+
- <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Root.json>; rel="describedBy"
|
193
193
|
Vary:
|
194
194
|
- Accept-Encoding
|
195
195
|
Date:
|
@@ -202,12 +202,12 @@ http_interactions:
|
|
202
202
|
encoding: ASCII-8BIT
|
203
203
|
string: '{"account_id":"1dbca289fd41b54838bcbb501","account_name":"InSite Arts","email":"sam@sayers.cc","username":"samsayers","role":"owner","contact":{"company":"InSite
|
204
204
|
Arts","addr1":"300 Burdett Road","addr2":"London","city":"London","state":"","zip":"E14
|
205
|
-
7DQ","country":"GB"},"pro_enabled":false,"last_login":"2016-08-04T14:25:25+00:00","total_subscribers":27,"industry_stats":{"open_rate":0.21842484737161,"bounce_rate":0.015938935487191,"click_rate":0.020519217237966},"_links":[{"rel":"self","href":"https
|
206
|
-
http_version:
|
205
|
+
7DQ","country":"GB"},"pro_enabled":false,"last_login":"2016-08-04T14:25:25+00:00","total_subscribers":27,"industry_stats":{"open_rate":0.21842484737161,"bounce_rate":0.015938935487191,"click_rate":0.020519217237966},"_links":[{"rel":"self","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Root.json"},{"rel":"lists","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Lists.json"},{"rel":"reports","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/reports","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Reports/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Reports.json"},{"rel":"conversations","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/conversations","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Conversations/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Conversations.json"},{"rel":"campaigns","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/campaigns","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Campaigns/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Campaigns.json"},{"rel":"automations","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/automations","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Automations/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Automations.json"},{"rel":"templates","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/templates","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Templates/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Templates.json"},{"rel":"file-manager","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/file-manager","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/FileManager/Namespace.json"},{"rel":"authorized-apps","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/authorized-apps","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/AuthorizedApps/Collection.json"},{"rel":"batches","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/batches","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Batches/Collection.json"},{"rel":"template-folders","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/template-folders","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/TemplateFolders/Collection.json"},{"rel":"campaign-folders","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/campaign-folders","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CampaignFolders/Collection.json"},{"rel":"ecommerce","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/ecommerce","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Ecommerce/Namespace.json"}]}'
|
206
|
+
http_version:
|
207
207
|
recorded_at: Thu, 04 Aug 2016 14:56:43 GMT
|
208
208
|
- request:
|
209
209
|
method: get
|
210
|
-
uri: https
|
210
|
+
uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0
|
211
211
|
body:
|
212
212
|
encoding: US-ASCII
|
213
213
|
string: ''
|
@@ -221,7 +221,7 @@ http_interactions:
|
|
221
221
|
Authorization:
|
222
222
|
- apikey xxxxxxxxxx-us11
|
223
223
|
Host:
|
224
|
-
- us11
|
224
|
+
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
225
225
|
response:
|
226
226
|
status:
|
227
227
|
code: 301
|
@@ -234,7 +234,7 @@ http_interactions:
|
|
234
234
|
Content-Length:
|
235
235
|
- '242'
|
236
236
|
Location:
|
237
|
-
- http
|
237
|
+
- http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
238
238
|
Date:
|
239
239
|
- Thu, 04 Aug 2016 14:56:43 GMT
|
240
240
|
Connection:
|
@@ -247,13 +247,13 @@ http_interactions:
|
|
247
247
|
<title>301 Moved Permanently</title>
|
248
248
|
</head><body>
|
249
249
|
<h1>Moved Permanently</h1>
|
250
|
-
<p>The document has moved <a href="http
|
250
|
+
<p>The document has moved <a href="http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/">here</a>.</p>
|
251
251
|
</body></html>
|
252
|
-
http_version:
|
252
|
+
http_version:
|
253
253
|
recorded_at: Thu, 04 Aug 2016 14:56:43 GMT
|
254
254
|
- request:
|
255
255
|
method: get
|
256
|
-
uri: http
|
256
|
+
uri: http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
257
257
|
body:
|
258
258
|
encoding: US-ASCII
|
259
259
|
string: ''
|
@@ -267,7 +267,7 @@ http_interactions:
|
|
267
267
|
Authorization:
|
268
268
|
- apikey xxxxxxxxxx-us11
|
269
269
|
Host:
|
270
|
-
- us11
|
270
|
+
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
271
271
|
response:
|
272
272
|
status:
|
273
273
|
code: 401
|
@@ -282,7 +282,7 @@ http_interactions:
|
|
282
282
|
X-Request-Id:
|
283
283
|
- e28b19e0-488d-46d8-83a8-06343729a8cd
|
284
284
|
Link:
|
285
|
-
- <https
|
285
|
+
- <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
|
286
286
|
Vary:
|
287
287
|
- Accept-Encoding
|
288
288
|
Date:
|
@@ -296,6 +296,6 @@ http_interactions:
|
|
296
296
|
string: '{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"API
|
297
297
|
Key Invalid","status":401,"detail":"Your API key may be invalid, or you''ve
|
298
298
|
attempted to access the wrong datacenter.","instance":""}'
|
299
|
-
http_version:
|
299
|
+
http_version:
|
300
300
|
recorded_at: Thu, 04 Aug 2016 14:56:43 GMT
|
301
301
|
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https
|
5
|
+
uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -14,9 +14,9 @@ http_interactions:
|
|
14
14
|
User-Agent:
|
15
15
|
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
16
16
|
Authorization:
|
17
|
-
- apikey
|
17
|
+
- apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
|
18
18
|
Host:
|
19
|
-
- us11
|
19
|
+
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 301
|
@@ -29,7 +29,7 @@ http_interactions:
|
|
29
29
|
Content-Length:
|
30
30
|
- '242'
|
31
31
|
Location:
|
32
|
-
- http
|
32
|
+
- http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
33
33
|
Date:
|
34
34
|
- Thu, 04 Aug 2016 15:02:03 GMT
|
35
35
|
Connection:
|
@@ -42,13 +42,13 @@ http_interactions:
|
|
42
42
|
<title>301 Moved Permanently</title>
|
43
43
|
</head><body>
|
44
44
|
<h1>Moved Permanently</h1>
|
45
|
-
<p>The document has moved <a href="http
|
45
|
+
<p>The document has moved <a href="http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/">here</a>.</p>
|
46
46
|
</body></html>
|
47
|
-
http_version:
|
47
|
+
http_version:
|
48
48
|
recorded_at: Thu, 04 Aug 2016 15:02:03 GMT
|
49
49
|
- request:
|
50
50
|
method: get
|
51
|
-
uri: http
|
51
|
+
uri: http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
52
52
|
body:
|
53
53
|
encoding: US-ASCII
|
54
54
|
string: ''
|
@@ -60,9 +60,9 @@ http_interactions:
|
|
60
60
|
User-Agent:
|
61
61
|
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
62
62
|
Authorization:
|
63
|
-
- apikey
|
63
|
+
- apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
|
64
64
|
Host:
|
65
|
-
- us11
|
65
|
+
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
66
66
|
response:
|
67
67
|
status:
|
68
68
|
code: 200
|
@@ -77,7 +77,7 @@ http_interactions:
|
|
77
77
|
X-Request-Id:
|
78
78
|
- 0cd39450-33dc-4a99-9061-215d322b325c
|
79
79
|
Link:
|
80
|
-
- <https
|
80
|
+
- <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Root.json>; rel="describedBy"
|
81
81
|
Vary:
|
82
82
|
- Accept-Encoding
|
83
83
|
Date:
|
@@ -90,12 +90,12 @@ http_interactions:
|
|
90
90
|
encoding: ASCII-8BIT
|
91
91
|
string: '{"account_id":"1dbca289fd41b54838bcbb501","account_name":"InSite Arts","email":"sam@sayers.cc","username":"samsayers","role":"owner","contact":{"company":"InSite
|
92
92
|
Arts","addr1":"300 Burdett Road","addr2":"London","city":"London","state":"","zip":"E14
|
93
|
-
7DQ","country":"GB"},"pro_enabled":false,"last_login":"2016-08-04T14:25:25+00:00","total_subscribers":27,"industry_stats":{"open_rate":0.21842484737161,"bounce_rate":0.015938935487191,"click_rate":0.020519217237966},"_links":[{"rel":"self","href":"https
|
94
|
-
http_version:
|
93
|
+
7DQ","country":"GB"},"pro_enabled":false,"last_login":"2016-08-04T14:25:25+00:00","total_subscribers":27,"industry_stats":{"open_rate":0.21842484737161,"bounce_rate":0.015938935487191,"click_rate":0.020519217237966},"_links":[{"rel":"self","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Root.json"},{"rel":"lists","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Lists.json"},{"rel":"reports","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/reports","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Reports/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Reports.json"},{"rel":"conversations","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/conversations","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Conversations/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Conversations.json"},{"rel":"campaigns","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/campaigns","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Campaigns/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Campaigns.json"},{"rel":"automations","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/automations","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Automations/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Automations.json"},{"rel":"templates","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/templates","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Templates/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Templates.json"},{"rel":"file-manager","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/file-manager","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/FileManager/Namespace.json"},{"rel":"authorized-apps","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/authorized-apps","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/AuthorizedApps/Collection.json"},{"rel":"batches","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/batches","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Batches/Collection.json"},{"rel":"template-folders","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/template-folders","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/TemplateFolders/Collection.json"},{"rel":"campaign-folders","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/campaign-folders","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CampaignFolders/Collection.json"},{"rel":"ecommerce","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/ecommerce","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Ecommerce/Namespace.json"}]}'
|
94
|
+
http_version:
|
95
95
|
recorded_at: Thu, 04 Aug 2016 15:02:04 GMT
|
96
96
|
- request:
|
97
97
|
method: get
|
98
|
-
uri: https
|
98
|
+
uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0
|
99
99
|
body:
|
100
100
|
encoding: US-ASCII
|
101
101
|
string: ''
|
@@ -109,7 +109,7 @@ http_interactions:
|
|
109
109
|
Authorization:
|
110
110
|
- apikey xxxxxxxxxx-us11
|
111
111
|
Host:
|
112
|
-
- us11
|
112
|
+
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
113
113
|
response:
|
114
114
|
status:
|
115
115
|
code: 301
|
@@ -122,7 +122,7 @@ http_interactions:
|
|
122
122
|
Content-Length:
|
123
123
|
- '242'
|
124
124
|
Location:
|
125
|
-
- http
|
125
|
+
- http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
126
126
|
Date:
|
127
127
|
- Thu, 04 Aug 2016 15:02:04 GMT
|
128
128
|
Connection:
|
@@ -135,13 +135,13 @@ http_interactions:
|
|
135
135
|
<title>301 Moved Permanently</title>
|
136
136
|
</head><body>
|
137
137
|
<h1>Moved Permanently</h1>
|
138
|
-
<p>The document has moved <a href="http
|
138
|
+
<p>The document has moved <a href="http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/">here</a>.</p>
|
139
139
|
</body></html>
|
140
|
-
http_version:
|
140
|
+
http_version:
|
141
141
|
recorded_at: Thu, 04 Aug 2016 15:02:04 GMT
|
142
142
|
- request:
|
143
143
|
method: get
|
144
|
-
uri: http
|
144
|
+
uri: http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
145
145
|
body:
|
146
146
|
encoding: US-ASCII
|
147
147
|
string: ''
|
@@ -155,7 +155,7 @@ http_interactions:
|
|
155
155
|
Authorization:
|
156
156
|
- apikey xxxxxxxxxx-us11
|
157
157
|
Host:
|
158
|
-
- us11
|
158
|
+
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
159
159
|
response:
|
160
160
|
status:
|
161
161
|
code: 401
|
@@ -170,7 +170,7 @@ http_interactions:
|
|
170
170
|
X-Request-Id:
|
171
171
|
- bfecb06e-c4be-425c-951b-e86f216379d7
|
172
172
|
Link:
|
173
|
-
- <https
|
173
|
+
- <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
|
174
174
|
Vary:
|
175
175
|
- Accept-Encoding
|
176
176
|
Date:
|
@@ -184,6 +184,6 @@ http_interactions:
|
|
184
184
|
string: '{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"API
|
185
185
|
Key Invalid","status":401,"detail":"Your API key may be invalid, or you''ve
|
186
186
|
attempted to access the wrong datacenter.","instance":""}'
|
187
|
-
http_version:
|
187
|
+
http_version:
|
188
188
|
recorded_at: Thu, 04 Aug 2016 15:02:04 GMT
|
189
189
|
recorded_with: VCR 3.0.3
|