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
  - 25523bef-618e-4f96-8d1f-21288f68e2b1
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 15:10:19 GMT
62
62
  - request:
63
63
  method: get
64
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
64
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._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
  - e128e4d4-b84a-4c4e-baa2-35b334fef2ae
92
92
  Link:
93
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
93
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
94
94
  rel="describedBy"
95
95
  Vary:
96
96
  - Accept-Encoding
@@ -103,11 +103,11 @@ http_interactions:
103
103
  body:
104
104
  encoding: ASCII-8BIT
105
105
  string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"},{"list_id":"e73f5910ca","id":"7b24b8a11a","title":"Days","display_order":1,"type":"checkboxes"}],"total_items":2}'
106
- http_version:
106
+ http_version:
107
107
  recorded_at: Thu, 04 Aug 2016 15:10:19 GMT
108
108
  - request:
109
109
  method: post
110
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
110
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
111
111
  body:
112
112
  encoding: UTF-8
113
113
  string: '{"title":"Days","type":"checkboxes"}'
@@ -119,11 +119,11 @@ http_interactions:
119
119
  User-Agent:
120
120
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
121
121
  Authorization:
122
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
122
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
123
123
  Content-Length:
124
124
  - '36'
125
125
  Host:
126
- - us11.api.mailchimp.com
126
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
127
127
  response:
128
128
  status:
129
129
  code: 200
@@ -138,7 +138,7 @@ http_interactions:
138
138
  X-Request-Id:
139
139
  - 474c1fc0-f553-4510-a603-34b393860d24
140
140
  Link:
141
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
141
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
142
142
  rel="describedBy"
143
143
  Vary:
144
144
  - Accept-Encoding
@@ -150,12 +150,12 @@ http_interactions:
150
150
  - _AVESTA_ENVIRONMENT=prod; path=/
151
151
  body:
152
152
  encoding: ASCII-8BIT
153
- string: '{"list_id":"e73f5910ca","id":"e5b49d3b2a","title":"Days","display_order":1,"type":"checkboxes","_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"parent","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/InterestCategories.json"},{"rel":"update","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a","method":"PATCH","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json","schema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"delete","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a","method":"DELETE"},{"rel":"interests","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"}]}'
154
- http_version:
153
+ string: '{"list_id":"e73f5910ca","id":"e5b49d3b2a","title":"Days","display_order":1,"type":"checkboxes","_links":[{"rel":"self","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"parent","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/InterestCategories.json"},{"rel":"update","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a","method":"PATCH","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"delete","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a","method":"DELETE"},{"rel":"interests","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"}]}'
154
+ http_version:
155
155
  recorded_at: Thu, 04 Aug 2016 15:11:02 GMT
156
156
  - request:
157
157
  method: get
158
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests?count=500&exclude_fields=interests._links,_links&offset=0
158
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests?count=500&exclude_fields=interests._links,_links&offset=0
159
159
  body:
160
160
  encoding: US-ASCII
161
161
  string: ''
@@ -167,9 +167,9 @@ http_interactions:
167
167
  User-Agent:
168
168
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
169
169
  Authorization:
170
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
170
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
171
171
  Host:
172
- - us11.api.mailchimp.com
172
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
173
173
  response:
174
174
  status:
175
175
  code: 200
@@ -184,7 +184,7 @@ http_interactions:
184
184
  X-Request-Id:
185
185
  - dff00057-227e-490f-aa9f-dfc2d2aec712
186
186
  Link:
187
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
187
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
188
188
  rel="describedBy"
189
189
  Vary:
190
190
  - Accept-Encoding
@@ -197,11 +197,11 @@ http_interactions:
197
197
  body:
198
198
  encoding: ASCII-8BIT
199
199
  string: '{"interests":[],"list_id":"e73f5910ca","category_id":"e5b49d3b2a","total_items":0}'
200
- http_version:
200
+ http_version:
201
201
  recorded_at: Thu, 04 Aug 2016 15:11:03 GMT
202
202
  - request:
203
203
  method: get
204
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests?count=500&exclude_fields=interests._links,_links&offset=0
204
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests?count=500&exclude_fields=interests._links,_links&offset=0
205
205
  body:
206
206
  encoding: US-ASCII
207
207
  string: ''
@@ -213,9 +213,9 @@ http_interactions:
213
213
  User-Agent:
214
214
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
215
215
  Authorization:
216
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
216
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
217
217
  Host:
218
- - us11.api.mailchimp.com
218
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
219
219
  response:
220
220
  status:
221
221
  code: 200
@@ -230,7 +230,7 @@ http_interactions:
230
230
  X-Request-Id:
231
231
  - c6048e1a-f9bb-485f-9e5c-e33ea808ecfb
232
232
  Link:
233
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
233
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
234
234
  rel="describedBy"
235
235
  Vary:
236
236
  - Accept-Encoding
@@ -243,11 +243,11 @@ http_interactions:
243
243
  body:
244
244
  encoding: ASCII-8BIT
245
245
  string: '{"interests":[],"list_id":"e73f5910ca","category_id":"e5b49d3b2a","total_items":0}'
246
- http_version:
246
+ http_version:
247
247
  recorded_at: Thu, 04 Aug 2016 15:11:03 GMT
248
248
  - request:
249
249
  method: post
250
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests
250
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests
251
251
  body:
252
252
  encoding: UTF-8
253
253
  string: '{"name":"Monday"}'
@@ -259,11 +259,11 @@ http_interactions:
259
259
  User-Agent:
260
260
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
261
261
  Authorization:
262
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
262
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
263
263
  Content-Length:
264
264
  - '17'
265
265
  Host:
266
- - us11.api.mailchimp.com
266
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
267
267
  response:
268
268
  status:
269
269
  code: 200
@@ -278,7 +278,7 @@ http_interactions:
278
278
  X-Request-Id:
279
279
  - 8013f35c-65f1-418d-9636-5d79bab177cc
280
280
  Link:
281
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
281
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
282
282
  rel="describedBy"
283
283
  Vary:
284
284
  - Accept-Encoding
@@ -290,12 +290,12 @@ http_interactions:
290
290
  - _AVESTA_ENVIRONMENT=prod; path=/
291
291
  body:
292
292
  encoding: ASCII-8BIT
293
- string: '{"category_id":"e5b49d3b2a","list_id":"e73f5910ca","id":"242ed4aa50","name":"Monday","subscriber_count":"0","display_order":1,"_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests/242ed4aa50","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests/242ed4aa50","method":"PATCH","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests/242ed4aa50","method":"DELETE"}]}'
294
- http_version:
293
+ string: '{"category_id":"e5b49d3b2a","list_id":"e73f5910ca","id":"242ed4aa50","name":"Monday","subscriber_count":"0","display_order":1,"_links":[{"rel":"self","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests/242ed4aa50","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests/242ed4aa50","method":"PATCH","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests/242ed4aa50","method":"DELETE"}]}'
294
+ http_version:
295
295
  recorded_at: Thu, 04 Aug 2016 15:11:03 GMT
296
296
  - request:
297
297
  method: get
298
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests?count=500&exclude_fields=interests._links,_links&offset=0
298
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests?count=500&exclude_fields=interests._links,_links&offset=0
299
299
  body:
300
300
  encoding: US-ASCII
301
301
  string: ''
@@ -307,9 +307,9 @@ http_interactions:
307
307
  User-Agent:
308
308
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
309
309
  Authorization:
310
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
310
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
311
311
  Host:
312
- - us11.api.mailchimp.com
312
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
313
313
  response:
314
314
  status:
315
315
  code: 200
@@ -324,7 +324,7 @@ http_interactions:
324
324
  X-Request-Id:
325
325
  - 8fe2d4ea-c2cc-4455-8a11-298c3ba6639f
326
326
  Link:
327
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
327
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
328
328
  rel="describedBy"
329
329
  Vary:
330
330
  - Accept-Encoding
@@ -337,11 +337,11 @@ http_interactions:
337
337
  body:
338
338
  encoding: ASCII-8BIT
339
339
  string: '{"interests":[{"category_id":"e5b49d3b2a","list_id":"e73f5910ca","id":"242ed4aa50","name":"Monday","subscriber_count":"0","display_order":1}],"list_id":"e73f5910ca","category_id":"e5b49d3b2a","total_items":1}'
340
- http_version:
340
+ http_version:
341
341
  recorded_at: Thu, 04 Aug 2016 15:11:03 GMT
342
342
  - request:
343
343
  method: post
344
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests
344
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests
345
345
  body:
346
346
  encoding: UTF-8
347
347
  string: '{"name":"Tuesday"}'
@@ -353,11 +353,11 @@ http_interactions:
353
353
  User-Agent:
354
354
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
355
355
  Authorization:
356
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
356
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
357
357
  Content-Length:
358
358
  - '18'
359
359
  Host:
360
- - us11.api.mailchimp.com
360
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
361
361
  response:
362
362
  status:
363
363
  code: 200
@@ -372,7 +372,7 @@ http_interactions:
372
372
  X-Request-Id:
373
373
  - 2d1e81f4-54e2-4c67-839d-1ef29d81db51
374
374
  Link:
375
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
375
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
376
376
  rel="describedBy"
377
377
  Vary:
378
378
  - Accept-Encoding
@@ -384,12 +384,12 @@ http_interactions:
384
384
  - _AVESTA_ENVIRONMENT=prod; path=/
385
385
  body:
386
386
  encoding: ASCII-8BIT
387
- string: '{"category_id":"e5b49d3b2a","list_id":"e73f5910ca","id":"fc79f56941","name":"Tuesday","subscriber_count":"0","display_order":2,"_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests/fc79f56941","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests/fc79f56941","method":"PATCH","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests/fc79f56941","method":"DELETE"}]}'
388
- http_version:
387
+ string: '{"category_id":"e5b49d3b2a","list_id":"e73f5910ca","id":"fc79f56941","name":"Tuesday","subscriber_count":"0","display_order":2,"_links":[{"rel":"self","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests/fc79f56941","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests/fc79f56941","method":"PATCH","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests/fc79f56941","method":"DELETE"}]}'
388
+ http_version:
389
389
  recorded_at: Thu, 04 Aug 2016 15:11:04 GMT
390
390
  - request:
391
391
  method: get
392
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests?count=500&exclude_fields=interests._links,_links&offset=0
392
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests?count=500&exclude_fields=interests._links,_links&offset=0
393
393
  body:
394
394
  encoding: US-ASCII
395
395
  string: ''
@@ -401,9 +401,9 @@ http_interactions:
401
401
  User-Agent:
402
402
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
403
403
  Authorization:
404
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
404
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
405
405
  Host:
406
- - us11.api.mailchimp.com
406
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
407
407
  response:
408
408
  status:
409
409
  code: 200
@@ -418,7 +418,7 @@ http_interactions:
418
418
  X-Request-Id:
419
419
  - b82a697c-a5b1-44fd-b002-4c2dcb90a19c
420
420
  Link:
421
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
421
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
422
422
  rel="describedBy"
423
423
  Vary:
424
424
  - Accept-Encoding
@@ -431,6 +431,6 @@ http_interactions:
431
431
  body:
432
432
  encoding: ASCII-8BIT
433
433
  string: '{"interests":[{"category_id":"e5b49d3b2a","list_id":"e73f5910ca","id":"242ed4aa50","name":"Monday","subscriber_count":"0","display_order":1},{"category_id":"e5b49d3b2a","list_id":"e73f5910ca","id":"fc79f56941","name":"Tuesday","subscriber_count":"0","display_order":2}],"list_id":"e73f5910ca","category_id":"e5b49d3b2a","total_items":2}'
434
- http_version:
434
+ http_version:
435
435
  recorded_at: Thu, 04 Aug 2016 15:11:04 GMT
436
436
  recorded_with: VCR 3.0.3
@@ -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
  - 7e719a98-a038-41e0-83ec-71804ee0db1f
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:
@@ -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-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}'
57
- http_version:
57
+ http_version:
58
58
  recorded_at: Thu, 04 Aug 2016 14:31:10 GMT
59
59
  - request:
60
60
  method: get
61
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
61
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._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 4e17ffe30d01da94c1615c4b587b3732-us11
73
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
74
74
  Host:
75
- - us11.api.mailchimp.com
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
  - 81dfcadf-c979-4ecb-b741-cbbc8d02da80
89
89
  Link:
90
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
90
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
91
91
  rel="describedBy"
92
92
  Vary:
93
93
  - Accept-Encoding
@@ -100,11 +100,11 @@ http_interactions:
100
100
  body:
101
101
  encoding: ASCII-8BIT
102
102
  string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"}],"total_items":1}'
103
- http_version:
103
+ http_version:
104
104
  recorded_at: Thu, 04 Aug 2016 14:31:10 GMT
105
105
  - request:
106
106
  method: post
107
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
107
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
108
108
  body:
109
109
  encoding: UTF-8
110
110
  string: '{"title":"Days","type":"checkboxes"}'
@@ -116,11 +116,11 @@ http_interactions:
116
116
  User-Agent:
117
117
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
118
118
  Authorization:
119
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
119
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
120
120
  Content-Length:
121
121
  - '36'
122
122
  Host:
123
- - us11.api.mailchimp.com
123
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
124
124
  response:
125
125
  status:
126
126
  code: 200
@@ -135,7 +135,7 @@ http_interactions:
135
135
  X-Request-Id:
136
136
  - 1e976a83-2bdc-4854-b940-bdb26b1ba40e
137
137
  Link:
138
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
138
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
139
139
  rel="describedBy"
140
140
  Vary:
141
141
  - Accept-Encoding
@@ -147,12 +147,12 @@ http_interactions:
147
147
  - _AVESTA_ENVIRONMENT=prod; path=/
148
148
  body:
149
149
  encoding: ASCII-8BIT
150
- string: '{"list_id":"e73f5910ca","id":"4df12c7b69","title":"Days","display_order":1,"type":"checkboxes","_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"parent","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/InterestCategories.json"},{"rel":"update","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69","method":"PATCH","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json","schema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"delete","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69","method":"DELETE"},{"rel":"interests","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"}]}'
151
- http_version:
150
+ string: '{"list_id":"e73f5910ca","id":"4df12c7b69","title":"Days","display_order":1,"type":"checkboxes","_links":[{"rel":"self","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"parent","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/InterestCategories.json"},{"rel":"update","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69","method":"PATCH","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"delete","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69","method":"DELETE"},{"rel":"interests","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"}]}'
151
+ http_version:
152
152
  recorded_at: Thu, 04 Aug 2016 14:31:11 GMT
153
153
  - request:
154
154
  method: get
155
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
155
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
156
156
  body:
157
157
  encoding: US-ASCII
158
158
  string: ''
@@ -164,9 +164,9 @@ http_interactions:
164
164
  User-Agent:
165
165
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
166
166
  Authorization:
167
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
167
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
168
168
  Host:
169
- - us11.api.mailchimp.com
169
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
170
170
  response:
171
171
  status:
172
172
  code: 200
@@ -181,7 +181,7 @@ http_interactions:
181
181
  X-Request-Id:
182
182
  - cdeecd23-92d3-448e-a5b3-f6b3b9a2394a
183
183
  Link:
184
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
184
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
185
185
  rel="describedBy"
186
186
  Vary:
187
187
  - Accept-Encoding
@@ -194,11 +194,11 @@ http_interactions:
194
194
  body:
195
195
  encoding: ASCII-8BIT
196
196
  string: '{"interests":[],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":0}'
197
- http_version:
197
+ http_version:
198
198
  recorded_at: Thu, 04 Aug 2016 14:31:11 GMT
199
199
  - request:
200
200
  method: get
201
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
201
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
202
202
  body:
203
203
  encoding: US-ASCII
204
204
  string: ''
@@ -210,9 +210,9 @@ http_interactions:
210
210
  User-Agent:
211
211
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
212
212
  Authorization:
213
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
213
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
214
214
  Host:
215
- - us11.api.mailchimp.com
215
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
216
216
  response:
217
217
  status:
218
218
  code: 200
@@ -227,7 +227,7 @@ http_interactions:
227
227
  X-Request-Id:
228
228
  - d6edeeb0-0259-46a3-9618-90f82394f118
229
229
  Link:
230
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
230
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
231
231
  rel="describedBy"
232
232
  Vary:
233
233
  - Accept-Encoding
@@ -240,11 +240,11 @@ http_interactions:
240
240
  body:
241
241
  encoding: ASCII-8BIT
242
242
  string: '{"interests":[],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":0}'
243
- http_version:
243
+ http_version:
244
244
  recorded_at: Thu, 04 Aug 2016 14:31:19 GMT
245
245
  - request:
246
246
  method: post
247
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests
247
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests
248
248
  body:
249
249
  encoding: UTF-8
250
250
  string: '{"name":"Monday"}'
@@ -256,11 +256,11 @@ http_interactions:
256
256
  User-Agent:
257
257
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
258
258
  Authorization:
259
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
259
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
260
260
  Content-Length:
261
261
  - '17'
262
262
  Host:
263
- - us11.api.mailchimp.com
263
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
264
264
  response:
265
265
  status:
266
266
  code: 200
@@ -275,7 +275,7 @@ http_interactions:
275
275
  X-Request-Id:
276
276
  - dff34019-9112-4555-9016-0e5d73e56a57
277
277
  Link:
278
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
278
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
279
279
  rel="describedBy"
280
280
  Vary:
281
281
  - Accept-Encoding
@@ -287,12 +287,12 @@ http_interactions:
287
287
  - _AVESTA_ENVIRONMENT=prod; path=/
288
288
  body:
289
289
  encoding: ASCII-8BIT
290
- string: '{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"a7bd8bba24","name":"Monday","subscriber_count":"0","display_order":1,"_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/a7bd8bba24","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/a7bd8bba24","method":"PATCH","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/a7bd8bba24","method":"DELETE"}]}'
291
- http_version:
290
+ string: '{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"a7bd8bba24","name":"Monday","subscriber_count":"0","display_order":1,"_links":[{"rel":"self","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/a7bd8bba24","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/a7bd8bba24","method":"PATCH","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/a7bd8bba24","method":"DELETE"}]}'
291
+ http_version:
292
292
  recorded_at: Thu, 04 Aug 2016 14:31:20 GMT
293
293
  - request:
294
294
  method: get
295
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
295
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
296
296
  body:
297
297
  encoding: US-ASCII
298
298
  string: ''
@@ -304,9 +304,9 @@ http_interactions:
304
304
  User-Agent:
305
305
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
306
306
  Authorization:
307
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
307
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
308
308
  Host:
309
- - us11.api.mailchimp.com
309
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
310
310
  response:
311
311
  status:
312
312
  code: 200
@@ -321,7 +321,7 @@ http_interactions:
321
321
  X-Request-Id:
322
322
  - 8eb85bbd-50ab-4558-8548-78ab8ceaedf8
323
323
  Link:
324
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
324
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
325
325
  rel="describedBy"
326
326
  Vary:
327
327
  - Accept-Encoding
@@ -334,11 +334,11 @@ http_interactions:
334
334
  body:
335
335
  encoding: ASCII-8BIT
336
336
  string: '{"interests":[{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"a7bd8bba24","name":"Monday","subscriber_count":"0","display_order":1}],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":1}'
337
- http_version:
337
+ http_version:
338
338
  recorded_at: Thu, 04 Aug 2016 14:31:20 GMT
339
339
  - request:
340
340
  method: post
341
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests
341
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests
342
342
  body:
343
343
  encoding: UTF-8
344
344
  string: '{"name":"Monday"}'
@@ -350,11 +350,11 @@ http_interactions:
350
350
  User-Agent:
351
351
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
352
352
  Authorization:
353
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
353
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
354
354
  Content-Length:
355
355
  - '17'
356
356
  Host:
357
- - us11.api.mailchimp.com
357
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
358
358
  response:
359
359
  status:
360
360
  code: 400
@@ -369,7 +369,7 @@ http_interactions:
369
369
  X-Request-Id:
370
370
  - f30fbe11-958f-4646-b29b-5147ca2a4e16
371
371
  Link:
372
- - <https://us11.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
372
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
373
373
  Vary:
374
374
  - Accept-Encoding
375
375
  Date:
@@ -383,11 +383,11 @@ http_interactions:
383
383
  string: '{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Invalid
384
384
  Resource","status":400,"detail":"Cannot add \"Monday\" because it already
385
385
  exists on the list.","instance":""}'
386
- http_version:
386
+ http_version:
387
387
  recorded_at: Thu, 04 Aug 2016 14:31:21 GMT
388
388
  - request:
389
389
  method: get
390
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
390
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
391
391
  body:
392
392
  encoding: US-ASCII
393
393
  string: ''
@@ -399,9 +399,9 @@ http_interactions:
399
399
  User-Agent:
400
400
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
401
401
  Authorization:
402
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
402
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
403
403
  Host:
404
- - us11.api.mailchimp.com
404
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
405
405
  response:
406
406
  status:
407
407
  code: 200
@@ -416,7 +416,7 @@ http_interactions:
416
416
  X-Request-Id:
417
417
  - b2d4449c-28ac-44e1-adab-a72d5fa4a206
418
418
  Link:
419
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
419
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
420
420
  rel="describedBy"
421
421
  Vary:
422
422
  - Accept-Encoding
@@ -429,11 +429,11 @@ http_interactions:
429
429
  body:
430
430
  encoding: ASCII-8BIT
431
431
  string: '{"interests":[{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"a7bd8bba24","name":"Monday","subscriber_count":"0","display_order":1}],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":1}'
432
- http_version:
432
+ http_version:
433
433
  recorded_at: Thu, 04 Aug 2016 14:31:21 GMT
434
434
  - request:
435
435
  method: get
436
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
436
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
437
437
  body:
438
438
  encoding: US-ASCII
439
439
  string: ''
@@ -445,9 +445,9 @@ http_interactions:
445
445
  User-Agent:
446
446
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
447
447
  Authorization:
448
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
448
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
449
449
  Host:
450
- - us11.api.mailchimp.com
450
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
451
451
  response:
452
452
  status:
453
453
  code: 200
@@ -462,7 +462,7 @@ http_interactions:
462
462
  X-Request-Id:
463
463
  - 3fd0e1e4-534b-4296-8e96-c79885833c2e
464
464
  Link:
465
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
465
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
466
466
  rel="describedBy"
467
467
  Vary:
468
468
  - Accept-Encoding
@@ -475,11 +475,11 @@ http_interactions:
475
475
  body:
476
476
  encoding: ASCII-8BIT
477
477
  string: '{"interests":[{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"a7bd8bba24","name":"Monday","subscriber_count":"0","display_order":1}],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":1}'
478
- http_version:
478
+ http_version:
479
479
  recorded_at: Thu, 04 Aug 2016 14:31:21 GMT
480
480
  - request:
481
481
  method: get
482
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
482
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
483
483
  body:
484
484
  encoding: US-ASCII
485
485
  string: ''
@@ -491,9 +491,9 @@ http_interactions:
491
491
  User-Agent:
492
492
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
493
493
  Authorization:
494
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
494
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
495
495
  Host:
496
- - us11.api.mailchimp.com
496
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
497
497
  response:
498
498
  status:
499
499
  code: 200
@@ -508,7 +508,7 @@ http_interactions:
508
508
  X-Request-Id:
509
509
  - 02bafd6d-e7a0-4789-98ed-157f58cd4b78
510
510
  Link:
511
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
511
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
512
512
  rel="describedBy"
513
513
  Vary:
514
514
  - Accept-Encoding
@@ -521,11 +521,11 @@ http_interactions:
521
521
  body:
522
522
  encoding: ASCII-8BIT
523
523
  string: '{"interests":[{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"a7bd8bba24","name":"Monday","subscriber_count":"0","display_order":1}],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":1}'
524
- http_version:
524
+ http_version:
525
525
  recorded_at: Thu, 04 Aug 2016 14:31:21 GMT
526
526
  - request:
527
527
  method: get
528
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
528
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
529
529
  body:
530
530
  encoding: US-ASCII
531
531
  string: ''
@@ -537,9 +537,9 @@ http_interactions:
537
537
  User-Agent:
538
538
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
539
539
  Authorization:
540
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
540
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
541
541
  Host:
542
- - us11.api.mailchimp.com
542
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
543
543
  response:
544
544
  status:
545
545
  code: 200
@@ -554,7 +554,7 @@ http_interactions:
554
554
  X-Request-Id:
555
555
  - 7e808892-fdd4-4a62-9dad-f4479834ea53
556
556
  Link:
557
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
557
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
558
558
  rel="describedBy"
559
559
  Vary:
560
560
  - Accept-Encoding
@@ -567,11 +567,11 @@ http_interactions:
567
567
  body:
568
568
  encoding: ASCII-8BIT
569
569
  string: '{"interests":[{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"a7bd8bba24","name":"Monday","subscriber_count":"0","display_order":1}],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":1}'
570
- http_version:
570
+ http_version:
571
571
  recorded_at: Thu, 04 Aug 2016 14:31:22 GMT
572
572
  - request:
573
573
  method: get
574
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
574
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
575
575
  body:
576
576
  encoding: US-ASCII
577
577
  string: ''
@@ -583,9 +583,9 @@ http_interactions:
583
583
  User-Agent:
584
584
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
585
585
  Authorization:
586
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
586
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
587
587
  Host:
588
- - us11.api.mailchimp.com
588
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
589
589
  response:
590
590
  status:
591
591
  code: 200
@@ -600,7 +600,7 @@ http_interactions:
600
600
  X-Request-Id:
601
601
  - f49a8513-b59b-476e-8a50-ad259ef2b3bf
602
602
  Link:
603
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
603
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
604
604
  rel="describedBy"
605
605
  Vary:
606
606
  - Accept-Encoding
@@ -613,11 +613,11 @@ http_interactions:
613
613
  body:
614
614
  encoding: ASCII-8BIT
615
615
  string: '{"interests":[{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"a7bd8bba24","name":"Monday","subscriber_count":"0","display_order":1}],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":1}'
616
- http_version:
616
+ http_version:
617
617
  recorded_at: Thu, 04 Aug 2016 14:31:22 GMT
618
618
  - request:
619
619
  method: delete
620
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/a7bd8bba24
620
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/a7bd8bba24
621
621
  body:
622
622
  encoding: US-ASCII
623
623
  string: ''
@@ -629,9 +629,9 @@ http_interactions:
629
629
  User-Agent:
630
630
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
631
631
  Authorization:
632
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
632
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
633
633
  Host:
634
- - us11.api.mailchimp.com
634
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
635
635
  response:
636
636
  status:
637
637
  code: 204
@@ -654,11 +654,11 @@ http_interactions:
654
654
  body:
655
655
  encoding: UTF-8
656
656
  string: ''
657
- http_version:
657
+ http_version:
658
658
  recorded_at: Thu, 04 Aug 2016 14:31:22 GMT
659
659
  - request:
660
660
  method: get
661
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
661
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
662
662
  body:
663
663
  encoding: US-ASCII
664
664
  string: ''
@@ -670,9 +670,9 @@ http_interactions:
670
670
  User-Agent:
671
671
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
672
672
  Authorization:
673
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
673
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
674
674
  Host:
675
- - us11.api.mailchimp.com
675
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
676
676
  response:
677
677
  status:
678
678
  code: 200
@@ -687,7 +687,7 @@ http_interactions:
687
687
  X-Request-Id:
688
688
  - af31fdb1-f572-4c3b-b978-86df2541b99c
689
689
  Link:
690
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
690
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
691
691
  rel="describedBy"
692
692
  Vary:
693
693
  - Accept-Encoding
@@ -700,11 +700,11 @@ http_interactions:
700
700
  body:
701
701
  encoding: ASCII-8BIT
702
702
  string: '{"interests":[],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":0}'
703
- http_version:
703
+ http_version:
704
704
  recorded_at: Thu, 04 Aug 2016 14:31:22 GMT
705
705
  - request:
706
706
  method: get
707
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
707
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
708
708
  body:
709
709
  encoding: US-ASCII
710
710
  string: ''
@@ -716,9 +716,9 @@ http_interactions:
716
716
  User-Agent:
717
717
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
718
718
  Authorization:
719
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
719
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
720
720
  Host:
721
- - us11.api.mailchimp.com
721
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
722
722
  response:
723
723
  status:
724
724
  code: 200
@@ -733,7 +733,7 @@ http_interactions:
733
733
  X-Request-Id:
734
734
  - f061a9ab-873b-4097-a301-643ba399ad19
735
735
  Link:
736
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
736
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
737
737
  rel="describedBy"
738
738
  Vary:
739
739
  - Accept-Encoding
@@ -746,11 +746,11 @@ http_interactions:
746
746
  body:
747
747
  encoding: ASCII-8BIT
748
748
  string: '{"interests":[],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":0}'
749
- http_version:
749
+ http_version:
750
750
  recorded_at: Thu, 04 Aug 2016 14:31:23 GMT
751
751
  - request:
752
752
  method: post
753
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests
753
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests
754
754
  body:
755
755
  encoding: UTF-8
756
756
  string: '{"name":"Tuesday"}'
@@ -762,11 +762,11 @@ http_interactions:
762
762
  User-Agent:
763
763
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
764
764
  Authorization:
765
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
765
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
766
766
  Content-Length:
767
767
  - '18'
768
768
  Host:
769
- - us11.api.mailchimp.com
769
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
770
770
  response:
771
771
  status:
772
772
  code: 200
@@ -781,7 +781,7 @@ http_interactions:
781
781
  X-Request-Id:
782
782
  - 9d3ff4f5-991d-4624-bf4d-aafeac6d87e3
783
783
  Link:
784
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
784
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
785
785
  rel="describedBy"
786
786
  Vary:
787
787
  - Accept-Encoding
@@ -793,7 +793,7 @@ http_interactions:
793
793
  - _AVESTA_ENVIRONMENT=prod; path=/
794
794
  body:
795
795
  encoding: ASCII-8BIT
796
- string: '{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"4e52548ea0","name":"Tuesday","subscriber_count":"0","display_order":1,"_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/4e52548ea0","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/4e52548ea0","method":"PATCH","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/4e52548ea0","method":"DELETE"}]}'
797
- http_version:
796
+ string: '{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"4e52548ea0","name":"Tuesday","subscriber_count":"0","display_order":1,"_links":[{"rel":"self","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/4e52548ea0","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests","method":"GET","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/4e52548ea0","method":"PATCH","targetSchema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/4e52548ea0","method":"DELETE"}]}'
797
+ http_version:
798
798
  recorded_at: Thu, 04 Aug 2016 14:31:23 GMT
799
799
  recorded_with: VCR 3.0.3