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
  - 983b2406-3e6a-49e6-9d82-b055faa81340
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-manage2.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:07:50 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
  - c16344d4-86c9-408e-9660-0ef9c36092ce
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"}],"total_items":1}'
106
- http_version:
106
+ http_version:
107
107
  recorded_at: Thu, 04 Aug 2016 15:07:50 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
  - 7e3228b3-e0c7-4287-8821-2037cd28a1e4
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":"7b24b8a11a","title":"Days","display_order":1,"type":"checkboxes","_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a","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/7b24b8a11a","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/7b24b8a11a","method":"DELETE"},{"rel":"interests","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/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":"7b24b8a11a","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/7b24b8a11a","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/7b24b8a11a","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/7b24b8a11a","method":"DELETE"},{"rel":"interests","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/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:07:50 GMT
156
156
  - request:
157
157
  method: get
158
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/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/7b24b8a11a/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
  - dfd1af9b-0109-402b-bfce-fad0cd5a6a90
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":"7b24b8a11a","total_items":0}'
200
- http_version:
200
+ http_version:
201
201
  recorded_at: Thu, 04 Aug 2016 15:07:50 GMT
202
202
  - request:
203
203
  method: post
204
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests
204
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests
205
205
  body:
206
206
  encoding: UTF-8
207
207
  string: '{"name":"Monday"}'
@@ -213,11 +213,11 @@ 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
  Content-Length:
218
218
  - '17'
219
219
  Host:
220
- - us11.api.mailchimp.com
220
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
221
221
  response:
222
222
  status:
223
223
  code: 200
@@ -232,7 +232,7 @@ http_interactions:
232
232
  X-Request-Id:
233
233
  - 1e3c4a84-0dd2-4041-8d25-f6769e122fc3
234
234
  Link:
235
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
235
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
236
236
  rel="describedBy"
237
237
  Vary:
238
238
  - Accept-Encoding
@@ -244,12 +244,12 @@ http_interactions:
244
244
  - _AVESTA_ENVIRONMENT=prod; path=/
245
245
  body:
246
246
  encoding: ASCII-8BIT
247
- string: '{"category_id":"7b24b8a11a","list_id":"e73f5910ca","id":"56b7d77fbd","name":"Monday","subscriber_count":"0","display_order":1,"_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests/56b7d77fbd","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/7b24b8a11a/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/7b24b8a11a/interests/56b7d77fbd","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/7b24b8a11a/interests/56b7d77fbd","method":"DELETE"}]}'
248
- http_version:
247
+ string: '{"category_id":"7b24b8a11a","list_id":"e73f5910ca","id":"56b7d77fbd","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/7b24b8a11a/interests/56b7d77fbd","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/7b24b8a11a/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/7b24b8a11a/interests/56b7d77fbd","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/7b24b8a11a/interests/56b7d77fbd","method":"DELETE"}]}'
248
+ http_version:
249
249
  recorded_at: Thu, 04 Aug 2016 15:07:51 GMT
250
250
  - request:
251
251
  method: post
252
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests
252
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests
253
253
  body:
254
254
  encoding: UTF-8
255
255
  string: '{"name":"Tuesday"}'
@@ -261,11 +261,11 @@ http_interactions:
261
261
  User-Agent:
262
262
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
263
263
  Authorization:
264
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
264
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
265
265
  Content-Length:
266
266
  - '18'
267
267
  Host:
268
- - us11.api.mailchimp.com
268
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
269
269
  response:
270
270
  status:
271
271
  code: 200
@@ -280,7 +280,7 @@ http_interactions:
280
280
  X-Request-Id:
281
281
  - 51d5458b-78dd-4915-b599-e9b8de0ed2e8
282
282
  Link:
283
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
283
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
284
284
  rel="describedBy"
285
285
  Vary:
286
286
  - Accept-Encoding
@@ -292,12 +292,12 @@ http_interactions:
292
292
  - _AVESTA_ENVIRONMENT=prod; path=/
293
293
  body:
294
294
  encoding: ASCII-8BIT
295
- string: '{"category_id":"7b24b8a11a","list_id":"e73f5910ca","id":"adb041dc2b","name":"Tuesday","subscriber_count":"0","display_order":2,"_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests/adb041dc2b","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/7b24b8a11a/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/7b24b8a11a/interests/adb041dc2b","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/7b24b8a11a/interests/adb041dc2b","method":"DELETE"}]}'
296
- http_version:
295
+ string: '{"category_id":"7b24b8a11a","list_id":"e73f5910ca","id":"adb041dc2b","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/7b24b8a11a/interests/adb041dc2b","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/7b24b8a11a/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/7b24b8a11a/interests/adb041dc2b","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/7b24b8a11a/interests/adb041dc2b","method":"DELETE"}]}'
296
+ http_version:
297
297
  recorded_at: Thu, 04 Aug 2016 15:07:51 GMT
298
298
  - request:
299
299
  method: get
300
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests?count=500&exclude_fields=interests._links,_links&offset=0
300
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests?count=500&exclude_fields=interests._links,_links&offset=0
301
301
  body:
302
302
  encoding: US-ASCII
303
303
  string: ''
@@ -309,9 +309,9 @@ http_interactions:
309
309
  User-Agent:
310
310
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
311
311
  Authorization:
312
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
312
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
313
313
  Host:
314
- - us11.api.mailchimp.com
314
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
315
315
  response:
316
316
  status:
317
317
  code: 200
@@ -326,7 +326,7 @@ http_interactions:
326
326
  X-Request-Id:
327
327
  - 19f723ee-edb7-4cad-a3dc-78d0969d87f5
328
328
  Link:
329
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
329
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
330
330
  rel="describedBy"
331
331
  Vary:
332
332
  - Accept-Encoding
@@ -339,11 +339,11 @@ http_interactions:
339
339
  body:
340
340
  encoding: ASCII-8BIT
341
341
  string: '{"interests":[{"category_id":"7b24b8a11a","list_id":"e73f5910ca","id":"56b7d77fbd","name":"Monday","subscriber_count":"0","display_order":1},{"category_id":"7b24b8a11a","list_id":"e73f5910ca","id":"adb041dc2b","name":"Tuesday","subscriber_count":"0","display_order":2}],"list_id":"e73f5910ca","category_id":"7b24b8a11a","total_items":2}'
342
- http_version:
342
+ http_version:
343
343
  recorded_at: Thu, 04 Aug 2016 15:07:51 GMT
344
344
  - request:
345
345
  method: delete
346
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests/adb041dc2b
346
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests/adb041dc2b
347
347
  body:
348
348
  encoding: US-ASCII
349
349
  string: ''
@@ -355,9 +355,9 @@ http_interactions:
355
355
  User-Agent:
356
356
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
357
357
  Authorization:
358
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
358
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
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: 204
@@ -380,11 +380,11 @@ http_interactions:
380
380
  body:
381
381
  encoding: UTF-8
382
382
  string: ''
383
- http_version:
383
+ http_version:
384
384
  recorded_at: Thu, 04 Aug 2016 15:07:51 GMT
385
385
  - request:
386
386
  method: get
387
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests?count=500&exclude_fields=interests._links,_links&offset=0
387
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests?count=500&exclude_fields=interests._links,_links&offset=0
388
388
  body:
389
389
  encoding: US-ASCII
390
390
  string: ''
@@ -396,9 +396,9 @@ http_interactions:
396
396
  User-Agent:
397
397
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
398
398
  Authorization:
399
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
399
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
400
400
  Host:
401
- - us11.api.mailchimp.com
401
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
402
402
  response:
403
403
  status:
404
404
  code: 200
@@ -413,7 +413,7 @@ http_interactions:
413
413
  X-Request-Id:
414
414
  - 37fec45c-837c-4a8c-af0a-316ef9f4f8f5
415
415
  Link:
416
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
416
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
417
417
  rel="describedBy"
418
418
  Vary:
419
419
  - Accept-Encoding
@@ -426,6 +426,6 @@ http_interactions:
426
426
  body:
427
427
  encoding: ASCII-8BIT
428
428
  string: '{"interests":[{"category_id":"7b24b8a11a","list_id":"e73f5910ca","id":"56b7d77fbd","name":"Monday","subscriber_count":"0","display_order":1}],"list_id":"e73f5910ca","category_id":"7b24b8a11a","total_items":1}'
429
- http_version:
429
+ http_version:
430
430
  recorded_at: Thu, 04 Aug 2016 15:07:52 GMT
431
431
  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
  - 5d4863ec-d8a3-4e46-90f8-76bbb8cca0c8
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:01:38 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
  - 066e3dd5-2906-486f-8aa5-e370466fda3d
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"}],"total_items":1}'
106
- http_version:
106
+ http_version:
107
107
  recorded_at: Thu, 04 Aug 2016 15:01:39 GMT
108
108
  - request:
109
109
  method: get
110
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
110
+ 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
111
111
  body:
112
112
  encoding: US-ASCII
113
113
  string: ''
@@ -119,9 +119,9 @@ 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
  Host:
124
- - us11.api.mailchimp.com
124
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
125
125
  response:
126
126
  status:
127
127
  code: 200
@@ -136,7 +136,7 @@ http_interactions:
136
136
  X-Request-Id:
137
137
  - 2e824e07-63a7-4709-a177-83e5443fc9fc
138
138
  Link:
139
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
139
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
140
140
  rel="describedBy"
141
141
  Vary:
142
142
  - Accept-Encoding
@@ -149,11 +149,11 @@ http_interactions:
149
149
  body:
150
150
  encoding: ASCII-8BIT
151
151
  string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"}],"total_items":1}'
152
- http_version:
152
+ http_version:
153
153
  recorded_at: Thu, 04 Aug 2016 15:01:39 GMT
154
154
  - request:
155
155
  method: post
156
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
156
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
157
157
  body:
158
158
  encoding: UTF-8
159
159
  string: '{"title":"Days","type":"checkboxes"}'
@@ -165,11 +165,11 @@ http_interactions:
165
165
  User-Agent:
166
166
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
167
167
  Authorization:
168
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
168
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
169
169
  Content-Length:
170
170
  - '36'
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
  - 70042071-17f4-4936-a1a0-134a5ed32b6f
186
186
  Link:
187
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
187
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
188
188
  rel="describedBy"
189
189
  Vary:
190
190
  - Accept-Encoding
@@ -196,12 +196,12 @@ http_interactions:
196
196
  - _AVESTA_ENVIRONMENT=prod; path=/
197
197
  body:
198
198
  encoding: ASCII-8BIT
199
- string: '{"list_id":"e73f5910ca","id":"f99652e179","title":"Days","display_order":1,"type":"checkboxes","_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f99652e179","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/f99652e179","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/f99652e179","method":"DELETE"},{"rel":"interests","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f99652e179/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"}]}'
200
- http_version:
199
+ string: '{"list_id":"e73f5910ca","id":"f99652e179","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/f99652e179","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/f99652e179","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/f99652e179","method":"DELETE"},{"rel":"interests","href":"https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f99652e179/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"}]}'
200
+ http_version:
201
201
  recorded_at: Thu, 04 Aug 2016 15:01:39 GMT
202
202
  - request:
203
203
  method: get
204
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
204
+ 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
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
  - 48d99134-b0a8-4943-8426-f44ca1e0f892
232
232
  Link:
233
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
233
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/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: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"},{"list_id":"e73f5910ca","id":"f99652e179","title":"Days","display_order":1,"type":"checkboxes"}],"total_items":2}'
246
- http_version:
246
+ http_version:
247
247
  recorded_at: Thu, 04 Aug 2016 15:01:39 GMT
248
248
  - request:
249
249
  method: post
250
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
250
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
251
251
  body:
252
252
  encoding: UTF-8
253
253
  string: '{"title":"Days","type":"checkboxes"}'
@@ -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
  - '36'
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: 400
@@ -278,7 +278,7 @@ http_interactions:
278
278
  X-Request-Id:
279
279
  - 68fda992-803c-4fbf-8c43-7732398df1d9
280
280
  Link:
281
- - <https://us11.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
281
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
282
282
  Vary:
283
283
  - Accept-Encoding
284
284
  Date:
@@ -292,11 +292,11 @@ http_interactions:
292
292
  string: '{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Invalid
293
293
  Resource","status":400,"detail":"An interest category with the title ''Days''
294
294
  already exists.","instance":""}'
295
- http_version:
295
+ http_version:
296
296
  recorded_at: Thu, 04 Aug 2016 15:01:40 GMT
297
297
  - request:
298
298
  method: get
299
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
299
+ 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
300
300
  body:
301
301
  encoding: US-ASCII
302
302
  string: ''
@@ -308,9 +308,9 @@ http_interactions:
308
308
  User-Agent:
309
309
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
310
310
  Authorization:
311
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
311
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
312
312
  Host:
313
- - us11.api.mailchimp.com
313
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
314
314
  response:
315
315
  status:
316
316
  code: 200
@@ -325,7 +325,7 @@ http_interactions:
325
325
  X-Request-Id:
326
326
  - 8d739419-fbcc-4120-9394-78cf37ed336d
327
327
  Link:
328
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
328
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
329
329
  rel="describedBy"
330
330
  Vary:
331
331
  - Accept-Encoding
@@ -338,11 +338,11 @@ http_interactions:
338
338
  body:
339
339
  encoding: ASCII-8BIT
340
340
  string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"},{"list_id":"e73f5910ca","id":"f99652e179","title":"Days","display_order":1,"type":"checkboxes"}],"total_items":2}'
341
- http_version:
341
+ http_version:
342
342
  recorded_at: Thu, 04 Aug 2016 15:01:40 GMT
343
343
  - request:
344
344
  method: get
345
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
345
+ 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
346
346
  body:
347
347
  encoding: US-ASCII
348
348
  string: ''
@@ -354,9 +354,9 @@ http_interactions:
354
354
  User-Agent:
355
355
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
356
356
  Authorization:
357
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
357
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
358
358
  Host:
359
- - us11.api.mailchimp.com
359
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
360
360
  response:
361
361
  status:
362
362
  code: 200
@@ -371,7 +371,7 @@ http_interactions:
371
371
  X-Request-Id:
372
372
  - 05c9b788-877a-45d9-a071-be214ad94c4e
373
373
  Link:
374
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
374
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
375
375
  rel="describedBy"
376
376
  Vary:
377
377
  - Accept-Encoding
@@ -384,11 +384,11 @@ http_interactions:
384
384
  body:
385
385
  encoding: ASCII-8BIT
386
386
  string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"},{"list_id":"e73f5910ca","id":"f99652e179","title":"Days","display_order":1,"type":"checkboxes"}],"total_items":2}'
387
- http_version:
387
+ http_version:
388
388
  recorded_at: Thu, 04 Aug 2016 15:01:40 GMT
389
389
  - request:
390
390
  method: get
391
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
391
+ 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
392
392
  body:
393
393
  encoding: US-ASCII
394
394
  string: ''
@@ -400,9 +400,9 @@ http_interactions:
400
400
  User-Agent:
401
401
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
402
402
  Authorization:
403
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
403
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
404
404
  Host:
405
- - us11.api.mailchimp.com
405
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
406
406
  response:
407
407
  status:
408
408
  code: 200
@@ -417,7 +417,7 @@ http_interactions:
417
417
  X-Request-Id:
418
418
  - bb05ce3e-206e-44f2-b32e-f4f9d2e855fd
419
419
  Link:
420
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
420
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
421
421
  rel="describedBy"
422
422
  Vary:
423
423
  - Accept-Encoding
@@ -430,11 +430,11 @@ http_interactions:
430
430
  body:
431
431
  encoding: ASCII-8BIT
432
432
  string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"},{"list_id":"e73f5910ca","id":"f99652e179","title":"Days","display_order":1,"type":"checkboxes"}],"total_items":2}'
433
- http_version:
433
+ http_version:
434
434
  recorded_at: Thu, 04 Aug 2016 15:01:40 GMT
435
435
  - request:
436
436
  method: get
437
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
437
+ 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
438
438
  body:
439
439
  encoding: US-ASCII
440
440
  string: ''
@@ -446,9 +446,9 @@ http_interactions:
446
446
  User-Agent:
447
447
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
448
448
  Authorization:
449
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
449
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
450
450
  Host:
451
- - us11.api.mailchimp.com
451
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
452
452
  response:
453
453
  status:
454
454
  code: 200
@@ -463,7 +463,7 @@ http_interactions:
463
463
  X-Request-Id:
464
464
  - 46a61c79-c3aa-4c76-924b-8cd277e9b9bb
465
465
  Link:
466
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
466
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
467
467
  rel="describedBy"
468
468
  Vary:
469
469
  - Accept-Encoding
@@ -476,11 +476,11 @@ http_interactions:
476
476
  body:
477
477
  encoding: ASCII-8BIT
478
478
  string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"},{"list_id":"e73f5910ca","id":"f99652e179","title":"Days","display_order":1,"type":"checkboxes"}],"total_items":2}'
479
- http_version:
479
+ http_version:
480
480
  recorded_at: Thu, 04 Aug 2016 15:01:40 GMT
481
481
  - request:
482
482
  method: get
483
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
483
+ 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
484
484
  body:
485
485
  encoding: US-ASCII
486
486
  string: ''
@@ -492,9 +492,9 @@ http_interactions:
492
492
  User-Agent:
493
493
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
494
494
  Authorization:
495
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
495
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
496
496
  Host:
497
- - us11.api.mailchimp.com
497
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
498
498
  response:
499
499
  status:
500
500
  code: 200
@@ -509,7 +509,7 @@ http_interactions:
509
509
  X-Request-Id:
510
510
  - a2ec8489-f1fe-4f59-873d-e54d31968ef7
511
511
  Link:
512
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
512
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
513
513
  rel="describedBy"
514
514
  Vary:
515
515
  - Accept-Encoding
@@ -522,11 +522,11 @@ http_interactions:
522
522
  body:
523
523
  encoding: ASCII-8BIT
524
524
  string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"},{"list_id":"e73f5910ca","id":"f99652e179","title":"Days","display_order":1,"type":"checkboxes"}],"total_items":2}'
525
- http_version:
525
+ http_version:
526
526
  recorded_at: Thu, 04 Aug 2016 15:01:40 GMT
527
527
  - request:
528
528
  method: delete
529
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f99652e179
529
+ uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f99652e179
530
530
  body:
531
531
  encoding: US-ASCII
532
532
  string: ''
@@ -538,9 +538,9 @@ http_interactions:
538
538
  User-Agent:
539
539
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
540
540
  Authorization:
541
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
541
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
542
542
  Host:
543
- - us11.api.mailchimp.com
543
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
544
544
  response:
545
545
  status:
546
546
  code: 204
@@ -563,11 +563,11 @@ http_interactions:
563
563
  body:
564
564
  encoding: UTF-8
565
565
  string: ''
566
- http_version:
566
+ http_version:
567
567
  recorded_at: Thu, 04 Aug 2016 15:01:41 GMT
568
568
  - request:
569
569
  method: get
570
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
570
+ 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
571
571
  body:
572
572
  encoding: US-ASCII
573
573
  string: ''
@@ -579,9 +579,9 @@ http_interactions:
579
579
  User-Agent:
580
580
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
581
581
  Authorization:
582
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
582
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
583
583
  Host:
584
- - us11.api.mailchimp.com
584
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
585
585
  response:
586
586
  status:
587
587
  code: 200
@@ -596,7 +596,7 @@ http_interactions:
596
596
  X-Request-Id:
597
597
  - 56e8e16d-8283-4093-a04c-ed7ab5dbf994
598
598
  Link:
599
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
599
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
600
600
  rel="describedBy"
601
601
  Vary:
602
602
  - Accept-Encoding
@@ -609,11 +609,11 @@ http_interactions:
609
609
  body:
610
610
  encoding: ASCII-8BIT
611
611
  string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"}],"total_items":1}'
612
- http_version:
612
+ http_version:
613
613
  recorded_at: Thu, 04 Aug 2016 15:01:41 GMT
614
614
  - request:
615
615
  method: get
616
- uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
616
+ 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
617
617
  body:
618
618
  encoding: US-ASCII
619
619
  string: ''
@@ -625,9 +625,9 @@ http_interactions:
625
625
  User-Agent:
626
626
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
627
627
  Authorization:
628
- - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
628
+ - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
629
629
  Host:
630
- - us11.api.mailchimp.com
630
+ - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
631
631
  response:
632
632
  status:
633
633
  code: 200
@@ -642,7 +642,7 @@ http_interactions:
642
642
  X-Request-Id:
643
643
  - cec13c44-620b-4b08-a728-667217318790
644
644
  Link:
645
- - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
645
+ - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
646
646
  rel="describedBy"
647
647
  Vary:
648
648
  - Accept-Encoding
@@ -655,6 +655,6 @@ http_interactions:
655
655
  body:
656
656
  encoding: ASCII-8BIT
657
657
  string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"}],"total_items":1}'
658
- http_version:
658
+ http_version:
659
659
  recorded_at: Thu, 04 Aug 2016 15:01:41 GMT
660
660
  recorded_with: VCR 3.0.3