mailchimp_api_v3 0.2.17 → 0.2.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +7 -0
- data/.travis.yml +9 -2
- data/Gemfile +5 -1
- data/Guardfile +1 -0
- data/README.md +1 -1
- data/Rakefile +9 -0
- data/lib/mailchimp_api_v3.rb +9 -0
- data/lib/mailchimp_api_v3/account.rb +1 -0
- data/lib/mailchimp_api_v3/client.rb +2 -7
- data/lib/mailchimp_api_v3/client/remote.rb +1 -0
- data/lib/mailchimp_api_v3/collection.rb +1 -0
- data/lib/mailchimp_api_v3/collection/paging.rb +1 -0
- data/lib/mailchimp_api_v3/exception.rb +1 -0
- data/lib/mailchimp_api_v3/instance.rb +1 -0
- data/lib/mailchimp_api_v3/interest.rb +1 -0
- data/lib/mailchimp_api_v3/interest_category.rb +1 -0
- data/lib/mailchimp_api_v3/list.rb +1 -0
- data/lib/mailchimp_api_v3/member.rb +1 -0
- data/lib/mailchimp_api_v3/version.rb +2 -1
- data/mailchimp_api_v3.gemspec +3 -2
- metadata +14 -73
- data/spec/fixtures/cassettes/account.yml +0 -96
- data/spec/fixtures/cassettes/client.yml +0 -301
- data/spec/fixtures/cassettes/exception.yml +0 -189
- data/spec/fixtures/cassettes/interest.yml +0 -431
- data/spec/fixtures/cassettes/interest_categories.yml +0 -660
- data/spec/fixtures/cassettes/interest_category.yml +0 -436
- data/spec/fixtures/cassettes/interests.yml +0 -799
- data/spec/fixtures/cassettes/list.yml +0 -246
- data/spec/fixtures/cassettes/lists.yml +0 -158
- data/spec/fixtures/cassettes/mailchimp.yml +0 -96
- data/spec/fixtures/cassettes/member.yml +0 -298
- data/spec/fixtures/cassettes/members.yml +0 -808
- data/spec/fixtures/cassettes/members_create_or_update.yml +0 -817
- data/spec/fixtures/cassettes/members_paging.yml +0 -264
- data/spec/fixtures/cassettes/members_with_interest_categories.yml +0 -902
- data/spec/mailchimp_api_v3/account_spec.rb +0 -15
- data/spec/mailchimp_api_v3/client_spec.rb +0 -77
- data/spec/mailchimp_api_v3/exception_spec.rb +0 -55
- data/spec/mailchimp_api_v3/interest_categories_spec.rb +0 -41
- data/spec/mailchimp_api_v3/interest_category_spec.rb +0 -25
- data/spec/mailchimp_api_v3/interest_spec.rb +0 -23
- data/spec/mailchimp_api_v3/interests_spec.rb +0 -43
- data/spec/mailchimp_api_v3/list_spec.rb +0 -65
- data/spec/mailchimp_api_v3/lists_spec.rb +0 -21
- data/spec/mailchimp_api_v3/member_spec.rb +0 -58
- data/spec/mailchimp_api_v3/members_spec.rb +0 -132
- data/spec/mailchimp_spec.rb +0 -14
- data/spec/spec_helper.rb +0 -24
- data/spec/support/api_key.rb +0 -12
- data/spec/support/vcr_setup.rb +0 -17
@@ -1,301 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists?count=500&exclude_fields=lists._links,_links&offset=0
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- "*/*; q=0.5, application/xml"
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
|
-
User-Agent:
|
15
|
-
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
16
|
-
Authorization:
|
17
|
-
- apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
|
18
|
-
Host:
|
19
|
-
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
Server:
|
26
|
-
- nginx
|
27
|
-
Content-Type:
|
28
|
-
- application/json; charset=utf-8
|
29
|
-
Content-Length:
|
30
|
-
- '3520'
|
31
|
-
X-Request-Id:
|
32
|
-
- eb718870-c1d4-48ab-b9a4-a5d1d7319c1b
|
33
|
-
Link:
|
34
|
-
- <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
|
35
|
-
Vary:
|
36
|
-
- Accept-Encoding
|
37
|
-
Date:
|
38
|
-
- Thu, 04 Aug 2016 14:26:13 GMT
|
39
|
-
Connection:
|
40
|
-
- keep-alive
|
41
|
-
Set-Cookie:
|
42
|
-
- _AVESTA_ENVIRONMENT=prod; path=/
|
43
|
-
body:
|
44
|
-
encoding: ASCII-8BIT
|
45
|
-
string: '{"lists":[{"id":"e73f5910ca","name":"My first list","contact":{"company":"InSite
|
46
|
-
Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"","zip":"E14
|
47
|
-
7DQ","country":"GB","phone":"07917153555"},"permission_reminder":"Opt-in only","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
|
48
|
-
Sayers","from_email":"sam@sayers.cc","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2015-06-27T14:49:18+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/brGTO9","subscribe_url_long":"http://insitearts.us11.list-manage.com/subscribe?u=1dbca289fd41b54838bcbb501&id=e73f5910ca","beamer_address":"us11-6692a2b3c3-bcd2a8b144@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":3,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":3,"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-11T12:41:38+00:00","last_unsub_date":""}},{"id":"71937ea346","name":"My
|
49
|
-
second list","contact":{"company":"InSite Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"Select
|
50
|
-
One","zip":"E14 7DQ","country":"GB","phone":"02075372125"},"permission_reminder":"Test
|
51
|
-
list for Xenapto testing","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
|
52
|
-
Sayers","from_email":"sam@insitearts.com","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2015-07-09T10:17:28+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/bsNMtP","subscribe_url_long":"http://insitearts.us11.list-manage.com/subscribe?u=1dbca289fd41b54838bcbb501&id=71937ea346","beamer_address":"us11-6692a2b3c3-e843e438a6@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":1,"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-09T13:32:01+00:00","last_unsub_date":""}},{"id":"3f19e5d463","name":"My
|
53
|
-
third list","contact":{"company":"InSite Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"Select
|
54
|
-
One","zip":"E14 7DQ","country":"GB","phone":"02075372125"},"permission_reminder":"For
|
55
|
-
xenapto testing","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
|
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:
|
58
|
-
recorded_at: Thu, 04 Aug 2016 14:26:13 GMT
|
59
|
-
- request:
|
60
|
-
method: get
|
61
|
-
uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists?count=500&exclude_fields=lists._links,_links&offset=0
|
62
|
-
body:
|
63
|
-
encoding: US-ASCII
|
64
|
-
string: ''
|
65
|
-
headers:
|
66
|
-
Accept:
|
67
|
-
- "*/*; q=0.5, application/xml"
|
68
|
-
Accept-Encoding:
|
69
|
-
- gzip, deflate
|
70
|
-
User-Agent:
|
71
|
-
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
72
|
-
Authorization:
|
73
|
-
- apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
|
74
|
-
Host:
|
75
|
-
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
76
|
-
response:
|
77
|
-
status:
|
78
|
-
code: 200
|
79
|
-
message: OK
|
80
|
-
headers:
|
81
|
-
Server:
|
82
|
-
- nginx
|
83
|
-
Content-Type:
|
84
|
-
- application/json; charset=utf-8
|
85
|
-
Content-Length:
|
86
|
-
- '3519'
|
87
|
-
X-Request-Id:
|
88
|
-
- d76aa546-d92c-477c-a6f7-e216e78a3377
|
89
|
-
Link:
|
90
|
-
- <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
|
91
|
-
Vary:
|
92
|
-
- Accept-Encoding
|
93
|
-
Date:
|
94
|
-
- Thu, 04 Aug 2016 14:26:14 GMT
|
95
|
-
Connection:
|
96
|
-
- keep-alive
|
97
|
-
Set-Cookie:
|
98
|
-
- _AVESTA_ENVIRONMENT=prod; path=/
|
99
|
-
body:
|
100
|
-
encoding: ASCII-8BIT
|
101
|
-
string: '{"lists":[{"id":"e73f5910ca","name":"My first list","contact":{"company":"InSite
|
102
|
-
Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"","zip":"E14
|
103
|
-
7DQ","country":"GB","phone":"07917153555"},"permission_reminder":"Opt-in only","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
|
104
|
-
Sayers","from_email":"sam@sayers.cc","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2015-06-27T14:49:18+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/brGTO9","subscribe_url_long":"http://insitearts.us11.list-manage.com/subscribe?u=1dbca289fd41b54838bcbb501&id=e73f5910ca","beamer_address":"us11-6692a2b3c3-bcd2a8b144@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":3,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":3,"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-11T12:41:38+00:00","last_unsub_date":""}},{"id":"71937ea346","name":"My
|
105
|
-
second list","contact":{"company":"InSite Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"Select
|
106
|
-
One","zip":"E14 7DQ","country":"GB","phone":"02075372125"},"permission_reminder":"Test
|
107
|
-
list for Xenapto testing","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
|
108
|
-
Sayers","from_email":"sam@insitearts.com","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2015-07-09T10:17:28+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/bsNMtP","subscribe_url_long":"http://insitearts.us11.list-manage.com/subscribe?u=1dbca289fd41b54838bcbb501&id=71937ea346","beamer_address":"us11-6692a2b3c3-e843e438a6@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":1,"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-09T13:32:01+00:00","last_unsub_date":""}},{"id":"3f19e5d463","name":"My
|
109
|
-
third list","contact":{"company":"InSite Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"Select
|
110
|
-
One","zip":"E14 7DQ","country":"GB","phone":"02075372125"},"permission_reminder":"For
|
111
|
-
xenapto testing","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
|
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:
|
114
|
-
recorded_at: Thu, 04 Aug 2016 14:26:14 GMT
|
115
|
-
- request:
|
116
|
-
method: get
|
117
|
-
uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0
|
118
|
-
body:
|
119
|
-
encoding: US-ASCII
|
120
|
-
string: ''
|
121
|
-
headers:
|
122
|
-
Accept:
|
123
|
-
- "*/*; q=0.5, application/xml"
|
124
|
-
Accept-Encoding:
|
125
|
-
- gzip, deflate
|
126
|
-
User-Agent:
|
127
|
-
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
128
|
-
Authorization:
|
129
|
-
- apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
|
130
|
-
Host:
|
131
|
-
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
132
|
-
response:
|
133
|
-
status:
|
134
|
-
code: 301
|
135
|
-
message: Moved Permanently
|
136
|
-
headers:
|
137
|
-
Server:
|
138
|
-
- nginx
|
139
|
-
Content-Type:
|
140
|
-
- text/html; charset=iso-8859-1
|
141
|
-
Content-Length:
|
142
|
-
- '242'
|
143
|
-
Location:
|
144
|
-
- http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
145
|
-
Date:
|
146
|
-
- Thu, 04 Aug 2016 14:56:43 GMT
|
147
|
-
Connection:
|
148
|
-
- keep-alive
|
149
|
-
body:
|
150
|
-
encoding: UTF-8
|
151
|
-
string: |
|
152
|
-
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
153
|
-
<html><head>
|
154
|
-
<title>301 Moved Permanently</title>
|
155
|
-
</head><body>
|
156
|
-
<h1>Moved Permanently</h1>
|
157
|
-
<p>The document has moved <a href="http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/">here</a>.</p>
|
158
|
-
</body></html>
|
159
|
-
http_version:
|
160
|
-
recorded_at: Thu, 04 Aug 2016 14:56:43 GMT
|
161
|
-
- request:
|
162
|
-
method: get
|
163
|
-
uri: http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
164
|
-
body:
|
165
|
-
encoding: US-ASCII
|
166
|
-
string: ''
|
167
|
-
headers:
|
168
|
-
Accept:
|
169
|
-
- "*/*; q=0.5, application/xml"
|
170
|
-
Accept-Encoding:
|
171
|
-
- gzip, deflate
|
172
|
-
User-Agent:
|
173
|
-
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
174
|
-
Authorization:
|
175
|
-
- apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
|
176
|
-
Host:
|
177
|
-
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
178
|
-
response:
|
179
|
-
status:
|
180
|
-
code: 200
|
181
|
-
message: OK
|
182
|
-
headers:
|
183
|
-
Server:
|
184
|
-
- nginx
|
185
|
-
Content-Type:
|
186
|
-
- application/json; charset=utf-8
|
187
|
-
Content-Length:
|
188
|
-
- '3270'
|
189
|
-
X-Request-Id:
|
190
|
-
- 5958e064-4137-4b6f-ab62-1bd339ecad53
|
191
|
-
Link:
|
192
|
-
- <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Root.json>; rel="describedBy"
|
193
|
-
Vary:
|
194
|
-
- Accept-Encoding
|
195
|
-
Date:
|
196
|
-
- Thu, 04 Aug 2016 14:56:43 GMT
|
197
|
-
Connection:
|
198
|
-
- keep-alive
|
199
|
-
Set-Cookie:
|
200
|
-
- _AVESTA_ENVIRONMENT=prod; path=/
|
201
|
-
body:
|
202
|
-
encoding: ASCII-8BIT
|
203
|
-
string: '{"account_id":"1dbca289fd41b54838bcbb501","account_name":"InSite Arts","email":"sam@sayers.cc","username":"samsayers","role":"owner","contact":{"company":"InSite
|
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://<%= 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
|
-
recorded_at: Thu, 04 Aug 2016 14:56:43 GMT
|
208
|
-
- request:
|
209
|
-
method: get
|
210
|
-
uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0
|
211
|
-
body:
|
212
|
-
encoding: US-ASCII
|
213
|
-
string: ''
|
214
|
-
headers:
|
215
|
-
Accept:
|
216
|
-
- "*/*; q=0.5, application/xml"
|
217
|
-
Accept-Encoding:
|
218
|
-
- gzip, deflate
|
219
|
-
User-Agent:
|
220
|
-
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
221
|
-
Authorization:
|
222
|
-
- apikey xxxxxxxxxx-us11
|
223
|
-
Host:
|
224
|
-
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
225
|
-
response:
|
226
|
-
status:
|
227
|
-
code: 301
|
228
|
-
message: Moved Permanently
|
229
|
-
headers:
|
230
|
-
Server:
|
231
|
-
- nginx
|
232
|
-
Content-Type:
|
233
|
-
- text/html; charset=iso-8859-1
|
234
|
-
Content-Length:
|
235
|
-
- '242'
|
236
|
-
Location:
|
237
|
-
- http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
238
|
-
Date:
|
239
|
-
- Thu, 04 Aug 2016 14:56:43 GMT
|
240
|
-
Connection:
|
241
|
-
- keep-alive
|
242
|
-
body:
|
243
|
-
encoding: UTF-8
|
244
|
-
string: |
|
245
|
-
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
246
|
-
<html><head>
|
247
|
-
<title>301 Moved Permanently</title>
|
248
|
-
</head><body>
|
249
|
-
<h1>Moved Permanently</h1>
|
250
|
-
<p>The document has moved <a href="http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/">here</a>.</p>
|
251
|
-
</body></html>
|
252
|
-
http_version:
|
253
|
-
recorded_at: Thu, 04 Aug 2016 14:56:43 GMT
|
254
|
-
- request:
|
255
|
-
method: get
|
256
|
-
uri: http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
257
|
-
body:
|
258
|
-
encoding: US-ASCII
|
259
|
-
string: ''
|
260
|
-
headers:
|
261
|
-
Accept:
|
262
|
-
- "*/*; q=0.5, application/xml"
|
263
|
-
Accept-Encoding:
|
264
|
-
- gzip, deflate
|
265
|
-
User-Agent:
|
266
|
-
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
267
|
-
Authorization:
|
268
|
-
- apikey xxxxxxxxxx-us11
|
269
|
-
Host:
|
270
|
-
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
271
|
-
response:
|
272
|
-
status:
|
273
|
-
code: 401
|
274
|
-
message: Unauthorized
|
275
|
-
headers:
|
276
|
-
Server:
|
277
|
-
- nginx
|
278
|
-
Content-Type:
|
279
|
-
- application/problem+json; charset=utf-8
|
280
|
-
Content-Length:
|
281
|
-
- '233'
|
282
|
-
X-Request-Id:
|
283
|
-
- e28b19e0-488d-46d8-83a8-06343729a8cd
|
284
|
-
Link:
|
285
|
-
- <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
|
286
|
-
Vary:
|
287
|
-
- Accept-Encoding
|
288
|
-
Date:
|
289
|
-
- Thu, 04 Aug 2016 14:56:43 GMT
|
290
|
-
Connection:
|
291
|
-
- keep-alive
|
292
|
-
Set-Cookie:
|
293
|
-
- _AVESTA_ENVIRONMENT=prod; path=/
|
294
|
-
body:
|
295
|
-
encoding: ASCII-8BIT
|
296
|
-
string: '{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"API
|
297
|
-
Key Invalid","status":401,"detail":"Your API key may be invalid, or you''ve
|
298
|
-
attempted to access the wrong datacenter.","instance":""}'
|
299
|
-
http_version:
|
300
|
-
recorded_at: Thu, 04 Aug 2016 14:56:43 GMT
|
301
|
-
recorded_with: VCR 3.0.3
|
@@ -1,189 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- "*/*; q=0.5, application/xml"
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
|
-
User-Agent:
|
15
|
-
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
16
|
-
Authorization:
|
17
|
-
- apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
|
18
|
-
Host:
|
19
|
-
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 301
|
23
|
-
message: Moved Permanently
|
24
|
-
headers:
|
25
|
-
Server:
|
26
|
-
- nginx
|
27
|
-
Content-Type:
|
28
|
-
- text/html; charset=iso-8859-1
|
29
|
-
Content-Length:
|
30
|
-
- '242'
|
31
|
-
Location:
|
32
|
-
- http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
33
|
-
Date:
|
34
|
-
- Thu, 04 Aug 2016 15:02:03 GMT
|
35
|
-
Connection:
|
36
|
-
- keep-alive
|
37
|
-
body:
|
38
|
-
encoding: UTF-8
|
39
|
-
string: |
|
40
|
-
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
41
|
-
<html><head>
|
42
|
-
<title>301 Moved Permanently</title>
|
43
|
-
</head><body>
|
44
|
-
<h1>Moved Permanently</h1>
|
45
|
-
<p>The document has moved <a href="http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/">here</a>.</p>
|
46
|
-
</body></html>
|
47
|
-
http_version:
|
48
|
-
recorded_at: Thu, 04 Aug 2016 15:02:03 GMT
|
49
|
-
- request:
|
50
|
-
method: get
|
51
|
-
uri: http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
52
|
-
body:
|
53
|
-
encoding: US-ASCII
|
54
|
-
string: ''
|
55
|
-
headers:
|
56
|
-
Accept:
|
57
|
-
- "*/*; q=0.5, application/xml"
|
58
|
-
Accept-Encoding:
|
59
|
-
- gzip, deflate
|
60
|
-
User-Agent:
|
61
|
-
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
62
|
-
Authorization:
|
63
|
-
- apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
|
64
|
-
Host:
|
65
|
-
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
66
|
-
response:
|
67
|
-
status:
|
68
|
-
code: 200
|
69
|
-
message: OK
|
70
|
-
headers:
|
71
|
-
Server:
|
72
|
-
- nginx
|
73
|
-
Content-Type:
|
74
|
-
- application/json; charset=utf-8
|
75
|
-
Content-Length:
|
76
|
-
- '3270'
|
77
|
-
X-Request-Id:
|
78
|
-
- 0cd39450-33dc-4a99-9061-215d322b325c
|
79
|
-
Link:
|
80
|
-
- <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Root.json>; rel="describedBy"
|
81
|
-
Vary:
|
82
|
-
- Accept-Encoding
|
83
|
-
Date:
|
84
|
-
- Thu, 04 Aug 2016 15:02:04 GMT
|
85
|
-
Connection:
|
86
|
-
- keep-alive
|
87
|
-
Set-Cookie:
|
88
|
-
- _AVESTA_ENVIRONMENT=prod; path=/
|
89
|
-
body:
|
90
|
-
encoding: ASCII-8BIT
|
91
|
-
string: '{"account_id":"1dbca289fd41b54838bcbb501","account_name":"InSite Arts","email":"sam@sayers.cc","username":"samsayers","role":"owner","contact":{"company":"InSite
|
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://<%= 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
|
-
recorded_at: Thu, 04 Aug 2016 15:02:04 GMT
|
96
|
-
- request:
|
97
|
-
method: get
|
98
|
-
uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0
|
99
|
-
body:
|
100
|
-
encoding: US-ASCII
|
101
|
-
string: ''
|
102
|
-
headers:
|
103
|
-
Accept:
|
104
|
-
- "*/*; q=0.5, application/xml"
|
105
|
-
Accept-Encoding:
|
106
|
-
- gzip, deflate
|
107
|
-
User-Agent:
|
108
|
-
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
109
|
-
Authorization:
|
110
|
-
- apikey xxxxxxxxxx-us11
|
111
|
-
Host:
|
112
|
-
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
113
|
-
response:
|
114
|
-
status:
|
115
|
-
code: 301
|
116
|
-
message: Moved Permanently
|
117
|
-
headers:
|
118
|
-
Server:
|
119
|
-
- nginx
|
120
|
-
Content-Type:
|
121
|
-
- text/html; charset=iso-8859-1
|
122
|
-
Content-Length:
|
123
|
-
- '242'
|
124
|
-
Location:
|
125
|
-
- http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
126
|
-
Date:
|
127
|
-
- Thu, 04 Aug 2016 15:02:04 GMT
|
128
|
-
Connection:
|
129
|
-
- keep-alive
|
130
|
-
body:
|
131
|
-
encoding: UTF-8
|
132
|
-
string: |
|
133
|
-
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
134
|
-
<html><head>
|
135
|
-
<title>301 Moved Permanently</title>
|
136
|
-
</head><body>
|
137
|
-
<h1>Moved Permanently</h1>
|
138
|
-
<p>The document has moved <a href="http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/">here</a>.</p>
|
139
|
-
</body></html>
|
140
|
-
http_version:
|
141
|
-
recorded_at: Thu, 04 Aug 2016 15:02:04 GMT
|
142
|
-
- request:
|
143
|
-
method: get
|
144
|
-
uri: http://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/
|
145
|
-
body:
|
146
|
-
encoding: US-ASCII
|
147
|
-
string: ''
|
148
|
-
headers:
|
149
|
-
Accept:
|
150
|
-
- "*/*; q=0.5, application/xml"
|
151
|
-
Accept-Encoding:
|
152
|
-
- gzip, deflate
|
153
|
-
User-Agent:
|
154
|
-
- Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
|
155
|
-
Authorization:
|
156
|
-
- apikey xxxxxxxxxx-us11
|
157
|
-
Host:
|
158
|
-
- <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
|
159
|
-
response:
|
160
|
-
status:
|
161
|
-
code: 401
|
162
|
-
message: Unauthorized
|
163
|
-
headers:
|
164
|
-
Server:
|
165
|
-
- nginx
|
166
|
-
Content-Type:
|
167
|
-
- application/problem+json; charset=utf-8
|
168
|
-
Content-Length:
|
169
|
-
- '233'
|
170
|
-
X-Request-Id:
|
171
|
-
- bfecb06e-c4be-425c-951b-e86f216379d7
|
172
|
-
Link:
|
173
|
-
- <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
|
174
|
-
Vary:
|
175
|
-
- Accept-Encoding
|
176
|
-
Date:
|
177
|
-
- Thu, 04 Aug 2016 15:02:04 GMT
|
178
|
-
Connection:
|
179
|
-
- keep-alive
|
180
|
-
Set-Cookie:
|
181
|
-
- _AVESTA_ENVIRONMENT=prod; path=/
|
182
|
-
body:
|
183
|
-
encoding: ASCII-8BIT
|
184
|
-
string: '{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"API
|
185
|
-
Key Invalid","status":401,"detail":"Your API key may be invalid, or you''ve
|
186
|
-
attempted to access the wrong datacenter.","instance":""}'
|
187
|
-
http_version:
|
188
|
-
recorded_at: Thu, 04 Aug 2016 15:02:04 GMT
|
189
|
-
recorded_with: VCR 3.0.3
|