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.
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://us11.api.mailchimp.com/3.0/lists?count=500&exclude_fields=lists._links,_links&offset=0
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 4e17ffe30d01da94c1615c4b587b3732-us11
17
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
18
18
  Host:
19
- - us11.api.mailchimp.com
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
  - 709c72ea-d093-4ea6-8135-fb29d2da7cab
33
33
  Link:
34
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
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:
@@ -57,11 +57,11 @@ http_interactions:
57
57
  test list","contact":{"company":"administrator@xenapto.com","address1":"300
58
58
  Burdett Road","address2":"London","city":"London","state":"","zip":"E14 7DQ","country":"GB","phone":""},"permission_reminder":"You
59
59
  are test data for our API","use_archive_bar":true,"campaign_defaults":{"from_name":"Administrator","from_email":"administrator@xenapto.com","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2016-08-04T14:34:58+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/cauBmn","subscribe_url_long":"http://insitearts.us11.list-manage.com/subscribe?u=1dbca289fd41b54838bcbb501&id=a4598b5a35","beamer_address":"us11-6692a2b3c3-3353aeaf0d@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":19,"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":7,"avg_sub_rate":0,"avg_unsub_rate":0,"target_sub_rate":0,"open_rate":0,"click_rate":0,"last_sub_date":"2015-11-03T14:19:51+00:00","last_unsub_date":""}}],"total_items":4}'
60
- http_version:
60
+ http_version:
61
61
  recorded_at: Thu, 04 Aug 2016 14:43:52 GMT
62
62
  - request:
63
63
  method: get
64
- uri: https://us11.api.mailchimp.com/3.0/lists?count=500&exclude_fields=lists._links,_links&offset=0
64
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists?count=500&exclude_fields=lists._links,_links&offset=0
65
65
  body:
66
66
  encoding: US-ASCII
67
67
  string: ''
@@ -73,9 +73,9 @@ http_interactions:
73
73
  User-Agent:
74
74
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
75
75
  Authorization:
76
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
76
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
77
77
  Host:
78
- - us11.api.mailchimp.com
78
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
79
79
  response:
80
80
  status:
81
81
  code: 200
@@ -90,7 +90,7 @@ http_interactions:
90
90
  X-Request-Id:
91
91
  - 0b84ca4b-d69c-45a4-ab89-ae996994b07b
92
92
  Link:
93
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
93
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
94
94
  Vary:
95
95
  - Accept-Encoding
96
96
  Date:
@@ -116,11 +116,11 @@ http_interactions:
116
116
  test list","contact":{"company":"administrator@xenapto.com","address1":"300
117
117
  Burdett Road","address2":"London","city":"London","state":"","zip":"E14 7DQ","country":"GB","phone":""},"permission_reminder":"You
118
118
  are test data for our API","use_archive_bar":true,"campaign_defaults":{"from_name":"Administrator","from_email":"administrator@xenapto.com","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2016-08-04T14:34:58+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/cauBmn","subscribe_url_long":"http://insitearts.us11.list-manage1.com/subscribe?u=1dbca289fd41b54838bcbb501&id=a4598b5a35","beamer_address":"us11-6692a2b3c3-3353aeaf0d@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":19,"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":7,"avg_sub_rate":0,"avg_unsub_rate":0,"target_sub_rate":0,"open_rate":0,"click_rate":0,"last_sub_date":"2015-11-03T14:19:51+00:00","last_unsub_date":""}}],"total_items":4}'
119
- http_version:
119
+ http_version:
120
120
  recorded_at: Thu, 04 Aug 2016 14:43:53 GMT
121
121
  - request:
122
122
  method: get
123
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
123
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
124
124
  body:
125
125
  encoding: US-ASCII
126
126
  string: ''
@@ -132,9 +132,9 @@ http_interactions:
132
132
  User-Agent:
133
133
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
134
134
  Authorization:
135
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
135
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
136
136
  Host:
137
- - us11.api.mailchimp.com
137
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
138
138
  response:
139
139
  status:
140
140
  code: 200
@@ -149,7 +149,7 @@ http_interactions:
149
149
  X-Request-Id:
150
150
  - b965a8f4-8bdb-43ba-921e-93fcad9a6e9a
151
151
  Link:
152
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
152
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
153
153
  rel="describedBy"
154
154
  Vary:
155
155
  - Accept-Encoding
@@ -162,11 +162,11 @@ http_interactions:
162
162
  body:
163
163
  encoding: ASCII-8BIT
164
164
  string: '{"members":[{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Ann","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:15+00:00","member_rating":2,"last_changed":"2015-07-07T12:05:57+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"a81216d35b4cbfa18632867228be02da","email_address":"bob@sayers.cc","unique_email_id":"3f73c23e26","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Bob","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:39+00:00","member_rating":2,"last_changed":"2015-06-27T14:50:39+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"}],"list_id":"e73f5910ca","total_items":2}'
165
- http_version:
165
+ http_version:
166
166
  recorded_at: Thu, 04 Aug 2016 14:43:53 GMT
167
167
  - request:
168
168
  method: get
169
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
169
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
170
170
  body:
171
171
  encoding: US-ASCII
172
172
  string: ''
@@ -178,9 +178,9 @@ http_interactions:
178
178
  User-Agent:
179
179
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
180
180
  Authorization:
181
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
181
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
182
182
  Host:
183
- - us11.api.mailchimp.com
183
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
184
184
  response:
185
185
  status:
186
186
  code: 200
@@ -195,7 +195,7 @@ http_interactions:
195
195
  X-Request-Id:
196
196
  - 99c3a824-e7e5-4246-a53f-3972bf26a3bb
197
197
  Link:
198
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
198
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
199
199
  rel="describedBy"
200
200
  Vary:
201
201
  - Accept-Encoding
@@ -208,11 +208,11 @@ http_interactions:
208
208
  body:
209
209
  encoding: ASCII-8BIT
210
210
  string: '{"members":[{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Ann","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:15+00:00","member_rating":2,"last_changed":"2015-07-07T12:05:57+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"a81216d35b4cbfa18632867228be02da","email_address":"bob@sayers.cc","unique_email_id":"3f73c23e26","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Bob","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:39+00:00","member_rating":2,"last_changed":"2015-06-27T14:50:39+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"}],"list_id":"e73f5910ca","total_items":2}'
211
- http_version:
211
+ http_version:
212
212
  recorded_at: Thu, 04 Aug 2016 14:43:53 GMT
213
213
  - request:
214
214
  method: post
215
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members
215
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members
216
216
  body:
217
217
  encoding: UTF-8
218
218
  string: '{"merge_fields":{"FNAME":"Cat","LNAME":"Sayers"},"email_address":"cat@sayers.cc","status":"subscribed"}'
@@ -224,11 +224,11 @@ http_interactions:
224
224
  User-Agent:
225
225
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
226
226
  Authorization:
227
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
227
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
228
228
  Content-Length:
229
229
  - '103'
230
230
  Host:
231
- - us11.api.mailchimp.com
231
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
232
232
  response:
233
233
  status:
234
234
  code: 200
@@ -243,7 +243,7 @@ http_interactions:
243
243
  X-Request-Id:
244
244
  - 9833c053-64a1-40c8-bb57-e6d507b3f5d4
245
245
  Link:
246
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json>; rel="describedBy",
246
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json>; rel="describedBy",
247
247
  <https://us11.admin.mailchimp.com/lists/members/view?id=66329425>; rel="dashboard"
248
248
  Vary:
249
249
  - Accept-Encoding
@@ -255,12 +255,12 @@ http_interactions:
255
255
  - _AVESTA_ENVIRONMENT=prod; path=/
256
256
  body:
257
257
  encoding: ASCII-8BIT
258
- string: '{"id":"b84d50ba2a40fdbca8e2771b9a5b94fb","email_address":"cat@sayers.cc","unique_email_id":"223c7a01d2","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Cat","LNAME":"Sayers"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"85.92.193.106","timestamp_opt":"2016-08-04T14:43:53+00:00","member_rating":2,"last_changed":"2016-08-04T14:43:53+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca","_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members/b84d50ba2a40fdbca8e2771b9a5b94fb","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"parent","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Members.json"},{"rel":"update","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members/b84d50ba2a40fdbca8e2771b9a5b94fb","method":"PATCH","schema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"upsert","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members/b84d50ba2a40fdbca8e2771b9a5b94fb","method":"PUT","schema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"delete","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members/b84d50ba2a40fdbca8e2771b9a5b94fb","method":"DELETE"},{"rel":"activity","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members/b84d50ba2a40fdbca8e2771b9a5b94fb/activity","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Activity/Collection.json"},{"rel":"goals","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members/b84d50ba2a40fdbca8e2771b9a5b94fb/goals","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Goals/Collection.json"},{"rel":"notes","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members/b84d50ba2a40fdbca8e2771b9a5b94fb/notes","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Notes/Collection.json"}]}'
259
- http_version:
258
+ string: '{"id":"b84d50ba2a40fdbca8e2771b9a5b94fb","email_address":"cat@sayers.cc","unique_email_id":"223c7a01d2","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Cat","LNAME":"Sayers"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"85.92.193.106","timestamp_opt":"2016-08-04T14:43:53+00:00","member_rating":2,"last_changed":"2016-08-04T14:43:53+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca","_links":[{"rel":"self","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/b84d50ba2a40fdbca8e2771b9a5b94fb","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"parent","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Members.json"},{"rel":"update","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/b84d50ba2a40fdbca8e2771b9a5b94fb","method":"PATCH","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"upsert","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/b84d50ba2a40fdbca8e2771b9a5b94fb","method":"PUT","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"delete","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/b84d50ba2a40fdbca8e2771b9a5b94fb","method":"DELETE"},{"rel":"activity","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/b84d50ba2a40fdbca8e2771b9a5b94fb/activity","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Activity/Collection.json"},{"rel":"goals","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/b84d50ba2a40fdbca8e2771b9a5b94fb/goals","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Goals/Collection.json"},{"rel":"notes","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/b84d50ba2a40fdbca8e2771b9a5b94fb/notes","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Notes/Collection.json"}]}'
259
+ http_version:
260
260
  recorded_at: Thu, 04 Aug 2016 14:43:53 GMT
261
261
  - request:
262
262
  method: get
263
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
263
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
264
264
  body:
265
265
  encoding: US-ASCII
266
266
  string: ''
@@ -272,9 +272,9 @@ http_interactions:
272
272
  User-Agent:
273
273
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
274
274
  Authorization:
275
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
275
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
276
276
  Host:
277
- - us11.api.mailchimp.com
277
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
278
278
  response:
279
279
  status:
280
280
  code: 200
@@ -289,7 +289,7 @@ http_interactions:
289
289
  X-Request-Id:
290
290
  - 830d635a-63ac-4c36-81f4-03c6184e0cac
291
291
  Link:
292
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
292
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
293
293
  rel="describedBy"
294
294
  Vary:
295
295
  - Accept-Encoding
@@ -302,11 +302,11 @@ http_interactions:
302
302
  body:
303
303
  encoding: ASCII-8BIT
304
304
  string: '{"members":[{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Ann","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:15+00:00","member_rating":2,"last_changed":"2015-07-07T12:05:57+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"a81216d35b4cbfa18632867228be02da","email_address":"bob@sayers.cc","unique_email_id":"3f73c23e26","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Bob","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:39+00:00","member_rating":2,"last_changed":"2015-06-27T14:50:39+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"b84d50ba2a40fdbca8e2771b9a5b94fb","email_address":"cat@sayers.cc","unique_email_id":"223c7a01d2","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Cat","LNAME":"Sayers"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"85.92.193.106","timestamp_opt":"2016-08-04T14:43:53+00:00","member_rating":2,"last_changed":"2016-08-04T14:43:53+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"}],"list_id":"e73f5910ca","total_items":3}'
305
- http_version:
305
+ http_version:
306
306
  recorded_at: Thu, 04 Aug 2016 14:43:54 GMT
307
307
  - request:
308
308
  method: post
309
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members
309
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members
310
310
  body:
311
311
  encoding: UTF-8
312
312
  string: '{"merge_fields":{"FNAME":"Cat","LNAME":"Sayers"},"email_address":"cat@sayers.cc","status":"subscribed"}'
@@ -318,11 +318,11 @@ http_interactions:
318
318
  User-Agent:
319
319
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
320
320
  Authorization:
321
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
321
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
322
322
  Content-Length:
323
323
  - '103'
324
324
  Host:
325
- - us11.api.mailchimp.com
325
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
326
326
  response:
327
327
  status:
328
328
  code: 400
@@ -337,7 +337,7 @@ http_interactions:
337
337
  X-Request-Id:
338
338
  - 9e412445-899b-4341-85c0-0907ee2a7c0f
339
339
  Link:
340
- - <https://us11.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
340
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
341
341
  Vary:
342
342
  - Accept-Encoding
343
343
  Date:
@@ -351,11 +351,11 @@ http_interactions:
351
351
  string: '{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Member
352
352
  Exists","status":400,"detail":" is already a list member. Use PUT to insert
353
353
  or update list members.","instance":""}'
354
- http_version:
354
+ http_version:
355
355
  recorded_at: Thu, 04 Aug 2016 14:43:54 GMT
356
356
  - request:
357
357
  method: get
358
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
358
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
359
359
  body:
360
360
  encoding: US-ASCII
361
361
  string: ''
@@ -367,9 +367,9 @@ http_interactions:
367
367
  User-Agent:
368
368
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
369
369
  Authorization:
370
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
370
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
371
371
  Host:
372
- - us11.api.mailchimp.com
372
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
373
373
  response:
374
374
  status:
375
375
  code: 200
@@ -384,7 +384,7 @@ http_interactions:
384
384
  X-Request-Id:
385
385
  - 6d3c2431-c2e7-4ecb-91ca-0ddda78cfbdf
386
386
  Link:
387
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
387
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
388
388
  rel="describedBy"
389
389
  Vary:
390
390
  - Accept-Encoding
@@ -397,11 +397,11 @@ http_interactions:
397
397
  body:
398
398
  encoding: ASCII-8BIT
399
399
  string: '{"members":[{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Ann","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:15+00:00","member_rating":2,"last_changed":"2015-07-07T12:05:57+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"a81216d35b4cbfa18632867228be02da","email_address":"bob@sayers.cc","unique_email_id":"3f73c23e26","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Bob","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:39+00:00","member_rating":2,"last_changed":"2015-06-27T14:50:39+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"b84d50ba2a40fdbca8e2771b9a5b94fb","email_address":"cat@sayers.cc","unique_email_id":"223c7a01d2","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Cat","LNAME":"Sayers"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"85.92.193.106","timestamp_opt":"2016-08-04T14:43:53+00:00","member_rating":2,"last_changed":"2016-08-04T14:43:53+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"}],"list_id":"e73f5910ca","total_items":3}'
400
- http_version:
400
+ http_version:
401
401
  recorded_at: Thu, 04 Aug 2016 14:43:54 GMT
402
402
  - request:
403
403
  method: get
404
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
404
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
405
405
  body:
406
406
  encoding: US-ASCII
407
407
  string: ''
@@ -413,9 +413,9 @@ http_interactions:
413
413
  User-Agent:
414
414
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
415
415
  Authorization:
416
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
416
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
417
417
  Host:
418
- - us11.api.mailchimp.com
418
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
419
419
  response:
420
420
  status:
421
421
  code: 200
@@ -430,7 +430,7 @@ http_interactions:
430
430
  X-Request-Id:
431
431
  - 23f55636-0e8f-4c19-b5ae-79cd6603c66e
432
432
  Link:
433
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
433
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
434
434
  rel="describedBy"
435
435
  Vary:
436
436
  - Accept-Encoding
@@ -443,11 +443,11 @@ http_interactions:
443
443
  body:
444
444
  encoding: ASCII-8BIT
445
445
  string: '{"members":[{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Ann","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:15+00:00","member_rating":2,"last_changed":"2015-07-07T12:05:57+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"a81216d35b4cbfa18632867228be02da","email_address":"bob@sayers.cc","unique_email_id":"3f73c23e26","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Bob","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:39+00:00","member_rating":2,"last_changed":"2015-06-27T14:50:39+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"b84d50ba2a40fdbca8e2771b9a5b94fb","email_address":"cat@sayers.cc","unique_email_id":"223c7a01d2","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Cat","LNAME":"Sayers"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"85.92.193.106","timestamp_opt":"2016-08-04T14:43:53+00:00","member_rating":2,"last_changed":"2016-08-04T14:43:53+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"}],"list_id":"e73f5910ca","total_items":3}'
446
- http_version:
446
+ http_version:
447
447
  recorded_at: Thu, 04 Aug 2016 14:43:54 GMT
448
448
  - request:
449
449
  method: get
450
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
450
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
451
451
  body:
452
452
  encoding: US-ASCII
453
453
  string: ''
@@ -459,9 +459,9 @@ http_interactions:
459
459
  User-Agent:
460
460
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
461
461
  Authorization:
462
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
462
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
463
463
  Host:
464
- - us11.api.mailchimp.com
464
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
465
465
  response:
466
466
  status:
467
467
  code: 200
@@ -476,7 +476,7 @@ http_interactions:
476
476
  X-Request-Id:
477
477
  - a86d56b8-8b43-4c05-9434-d8c97dfd3684
478
478
  Link:
479
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
479
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
480
480
  rel="describedBy"
481
481
  Vary:
482
482
  - Accept-Encoding
@@ -489,11 +489,11 @@ http_interactions:
489
489
  body:
490
490
  encoding: ASCII-8BIT
491
491
  string: '{"members":[{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Ann","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:15+00:00","member_rating":2,"last_changed":"2015-07-07T12:05:57+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"a81216d35b4cbfa18632867228be02da","email_address":"bob@sayers.cc","unique_email_id":"3f73c23e26","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Bob","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:39+00:00","member_rating":2,"last_changed":"2015-06-27T14:50:39+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"b84d50ba2a40fdbca8e2771b9a5b94fb","email_address":"cat@sayers.cc","unique_email_id":"223c7a01d2","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Cat","LNAME":"Sayers"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"85.92.193.106","timestamp_opt":"2016-08-04T14:43:53+00:00","member_rating":2,"last_changed":"2016-08-04T14:43:53+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"}],"list_id":"e73f5910ca","total_items":3}'
492
- http_version:
492
+ http_version:
493
493
  recorded_at: Thu, 04 Aug 2016 14:43:55 GMT
494
494
  - request:
495
495
  method: get
496
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
496
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
497
497
  body:
498
498
  encoding: US-ASCII
499
499
  string: ''
@@ -505,9 +505,9 @@ http_interactions:
505
505
  User-Agent:
506
506
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
507
507
  Authorization:
508
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
508
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
509
509
  Host:
510
- - us11.api.mailchimp.com
510
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
511
511
  response:
512
512
  status:
513
513
  code: 200
@@ -522,7 +522,7 @@ http_interactions:
522
522
  X-Request-Id:
523
523
  - 876e2102-2568-4b9c-b87c-e8b4a06c2ce2
524
524
  Link:
525
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
525
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
526
526
  rel="describedBy"
527
527
  Vary:
528
528
  - Accept-Encoding
@@ -535,11 +535,11 @@ http_interactions:
535
535
  body:
536
536
  encoding: ASCII-8BIT
537
537
  string: '{"members":[{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Ann","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:15+00:00","member_rating":2,"last_changed":"2015-07-07T12:05:57+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"a81216d35b4cbfa18632867228be02da","email_address":"bob@sayers.cc","unique_email_id":"3f73c23e26","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Bob","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:39+00:00","member_rating":2,"last_changed":"2015-06-27T14:50:39+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"b84d50ba2a40fdbca8e2771b9a5b94fb","email_address":"cat@sayers.cc","unique_email_id":"223c7a01d2","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Cat","LNAME":"Sayers"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"85.92.193.106","timestamp_opt":"2016-08-04T14:43:53+00:00","member_rating":2,"last_changed":"2016-08-04T14:43:53+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"}],"list_id":"e73f5910ca","total_items":3}'
538
- http_version:
538
+ http_version:
539
539
  recorded_at: Thu, 04 Aug 2016 14:43:55 GMT
540
540
  - request:
541
541
  method: get
542
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
542
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
543
543
  body:
544
544
  encoding: US-ASCII
545
545
  string: ''
@@ -551,9 +551,9 @@ http_interactions:
551
551
  User-Agent:
552
552
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
553
553
  Authorization:
554
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
554
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
555
555
  Host:
556
- - us11.api.mailchimp.com
556
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
557
557
  response:
558
558
  status:
559
559
  code: 200
@@ -568,7 +568,7 @@ http_interactions:
568
568
  X-Request-Id:
569
569
  - 00677a37-0460-4485-98c8-93dd24f98665
570
570
  Link:
571
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
571
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
572
572
  rel="describedBy"
573
573
  Vary:
574
574
  - Accept-Encoding
@@ -581,11 +581,11 @@ http_interactions:
581
581
  body:
582
582
  encoding: ASCII-8BIT
583
583
  string: '{"members":[{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Ann","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:15+00:00","member_rating":2,"last_changed":"2015-07-07T12:05:57+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"a81216d35b4cbfa18632867228be02da","email_address":"bob@sayers.cc","unique_email_id":"3f73c23e26","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Bob","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:39+00:00","member_rating":2,"last_changed":"2015-06-27T14:50:39+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"b84d50ba2a40fdbca8e2771b9a5b94fb","email_address":"cat@sayers.cc","unique_email_id":"223c7a01d2","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Cat","LNAME":"Sayers"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"85.92.193.106","timestamp_opt":"2016-08-04T14:43:53+00:00","member_rating":2,"last_changed":"2016-08-04T14:43:53+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"}],"list_id":"e73f5910ca","total_items":3}'
584
- http_version:
584
+ http_version:
585
585
  recorded_at: Thu, 04 Aug 2016 14:43:55 GMT
586
586
  - request:
587
587
  method: delete
588
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members/b84d50ba2a40fdbca8e2771b9a5b94fb
588
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/b84d50ba2a40fdbca8e2771b9a5b94fb
589
589
  body:
590
590
  encoding: US-ASCII
591
591
  string: ''
@@ -597,9 +597,9 @@ http_interactions:
597
597
  User-Agent:
598
598
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
599
599
  Authorization:
600
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
600
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
601
601
  Host:
602
- - us11.api.mailchimp.com
602
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
603
603
  response:
604
604
  status:
605
605
  code: 204
@@ -622,11 +622,11 @@ http_interactions:
622
622
  body:
623
623
  encoding: UTF-8
624
624
  string: ''
625
- http_version:
625
+ http_version:
626
626
  recorded_at: Thu, 04 Aug 2016 14:43:55 GMT
627
627
  - request:
628
628
  method: get
629
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
629
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
630
630
  body:
631
631
  encoding: US-ASCII
632
632
  string: ''
@@ -638,9 +638,9 @@ http_interactions:
638
638
  User-Agent:
639
639
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
640
640
  Authorization:
641
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
641
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
642
642
  Host:
643
- - us11.api.mailchimp.com
643
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
644
644
  response:
645
645
  status:
646
646
  code: 200
@@ -655,7 +655,7 @@ http_interactions:
655
655
  X-Request-Id:
656
656
  - 383127e2-76ff-4f6b-aaa8-1fdc359b0fd8
657
657
  Link:
658
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
658
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
659
659
  rel="describedBy"
660
660
  Vary:
661
661
  - Accept-Encoding
@@ -668,11 +668,11 @@ http_interactions:
668
668
  body:
669
669
  encoding: ASCII-8BIT
670
670
  string: '{"members":[{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Ann","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:15+00:00","member_rating":2,"last_changed":"2015-07-07T12:05:57+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"a81216d35b4cbfa18632867228be02da","email_address":"bob@sayers.cc","unique_email_id":"3f73c23e26","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Bob","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:39+00:00","member_rating":2,"last_changed":"2015-06-27T14:50:39+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"}],"list_id":"e73f5910ca","total_items":2}'
671
- http_version:
671
+ http_version:
672
672
  recorded_at: Thu, 04 Aug 2016 14:43:56 GMT
673
673
  - request:
674
674
  method: get
675
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
675
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
676
676
  body:
677
677
  encoding: US-ASCII
678
678
  string: ''
@@ -684,9 +684,9 @@ http_interactions:
684
684
  User-Agent:
685
685
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
686
686
  Authorization:
687
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
687
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
688
688
  Host:
689
- - us11.api.mailchimp.com
689
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
690
690
  response:
691
691
  status:
692
692
  code: 200
@@ -701,7 +701,7 @@ http_interactions:
701
701
  X-Request-Id:
702
702
  - aa66419b-a893-4424-a5d0-71f972ca21a0
703
703
  Link:
704
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
704
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
705
705
  rel="describedBy"
706
706
  Vary:
707
707
  - Accept-Encoding
@@ -714,11 +714,11 @@ http_interactions:
714
714
  body:
715
715
  encoding: ASCII-8BIT
716
716
  string: '{"members":[{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Ann","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:15+00:00","member_rating":2,"last_changed":"2015-07-07T12:05:57+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"a81216d35b4cbfa18632867228be02da","email_address":"bob@sayers.cc","unique_email_id":"3f73c23e26","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Bob","LNAME":"Example"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27T14:50:39+00:00","member_rating":2,"last_changed":"2015-06-27T14:50:39+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"}],"list_id":"e73f5910ca","total_items":2}'
717
- http_version:
717
+ http_version:
718
718
  recorded_at: Thu, 04 Aug 2016 14:43:56 GMT
719
719
  - request:
720
720
  method: post
721
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members
721
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members
722
722
  body:
723
723
  encoding: UTF-8
724
724
  string: '{"merge_fields":{"FNAME":"Dan","LNAME":"Sayers"},"email_address":"dan@sayers.cc","status":"subscribed"}'
@@ -730,11 +730,11 @@ http_interactions:
730
730
  User-Agent:
731
731
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
732
732
  Authorization:
733
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
733
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
734
734
  Content-Length:
735
735
  - '103'
736
736
  Host:
737
- - us11.api.mailchimp.com
737
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
738
738
  response:
739
739
  status:
740
740
  code: 200
@@ -749,7 +749,7 @@ http_interactions:
749
749
  X-Request-Id:
750
750
  - 38f638cb-16d8-44d8-ac2a-c96381417004
751
751
  Link:
752
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json>; rel="describedBy",
752
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json>; rel="describedBy",
753
753
  <https://us11.admin.mailchimp.com/lists/members/view?id=180041613>; rel="dashboard"
754
754
  Vary:
755
755
  - Accept-Encoding
@@ -761,12 +761,12 @@ http_interactions:
761
761
  - _AVESTA_ENVIRONMENT=prod; path=/
762
762
  body:
763
763
  encoding: ASCII-8BIT
764
- string: '{"id":"f13a19513506757bac3b57e4c01a68fe","email_address":"dan@sayers.cc","unique_email_id":"4e8808dbf8","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Dan","LNAME":"Sayers"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"85.92.193.106","timestamp_opt":"2016-08-04T14:43:56+00:00","member_rating":2,"last_changed":"2016-08-04T14:43:56+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca","_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members/f13a19513506757bac3b57e4c01a68fe","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"parent","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Members.json"},{"rel":"update","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members/f13a19513506757bac3b57e4c01a68fe","method":"PATCH","schema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"upsert","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members/f13a19513506757bac3b57e4c01a68fe","method":"PUT","schema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"delete","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members/f13a19513506757bac3b57e4c01a68fe","method":"DELETE"},{"rel":"activity","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members/f13a19513506757bac3b57e4c01a68fe/activity","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Activity/Collection.json"},{"rel":"goals","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members/f13a19513506757bac3b57e4c01a68fe/goals","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Goals/Collection.json"},{"rel":"notes","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members/f13a19513506757bac3b57e4c01a68fe/notes","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Notes/Collection.json"}]}'
765
- http_version:
764
+ string: '{"id":"f13a19513506757bac3b57e4c01a68fe","email_address":"dan@sayers.cc","unique_email_id":"4e8808dbf8","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Dan","LNAME":"Sayers"},"interests":{"4e52548ea0":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"85.92.193.106","timestamp_opt":"2016-08-04T14:43:56+00:00","member_rating":2,"last_changed":"2016-08-04T14:43:56+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca","_links":[{"rel":"self","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/f13a19513506757bac3b57e4c01a68fe","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"parent","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Members.json"},{"rel":"update","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/f13a19513506757bac3b57e4c01a68fe","method":"PATCH","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"upsert","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/f13a19513506757bac3b57e4c01a68fe","method":"PUT","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"delete","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/f13a19513506757bac3b57e4c01a68fe","method":"DELETE"},{"rel":"activity","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/f13a19513506757bac3b57e4c01a68fe/activity","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Activity/Collection.json"},{"rel":"goals","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/f13a19513506757bac3b57e4c01a68fe/goals","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Goals/Collection.json"},{"rel":"notes","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/f13a19513506757bac3b57e4c01a68fe/notes","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Members/Notes/Collection.json"}]}'
765
+ http_version:
766
766
  recorded_at: Thu, 04 Aug 2016 14:43:56 GMT
767
767
  - request:
768
768
  method: delete
769
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members/f13a19513506757bac3b57e4c01a68fe
769
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/f13a19513506757bac3b57e4c01a68fe
770
770
  body:
771
771
  encoding: US-ASCII
772
772
  string: ''
@@ -778,9 +778,9 @@ http_interactions:
778
778
  User-Agent:
779
779
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
780
780
  Authorization:
781
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
781
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
782
782
  Host:
783
- - us11.api.mailchimp.com
783
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
784
784
  response:
785
785
  status:
786
786
  code: 204
@@ -803,6 +803,6 @@ http_interactions:
803
803
  body:
804
804
  encoding: UTF-8
805
805
  string: ''
806
- http_version:
806
+ http_version:
807
807
  recorded_at: Thu, 04 Aug 2016 14:43:56 GMT
808
808
  recorded_with: VCR 3.0.3