mailchimp_api_v3 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +4 -0
  3. data/lib/mailchimp_api_v3/client/remote.rb +12 -8
  4. data/lib/mailchimp_api_v3/collection.rb +1 -1
  5. data/lib/mailchimp_api_v3/collection/paging.rb +1 -1
  6. data/lib/mailchimp_api_v3/instance.rb +5 -1
  7. data/lib/mailchimp_api_v3/version.rb +1 -1
  8. data/spec/fixtures/cassettes/account.yml +92 -0
  9. data/spec/fixtures/cassettes/client.yml +223 -0
  10. data/spec/fixtures/cassettes/exception.yml +179 -0
  11. data/spec/fixtures/cassettes/interest.yml +384 -0
  12. data/spec/fixtures/cassettes/interest_categories.yml +637 -0
  13. data/spec/fixtures/cassettes/interest_category.yml +389 -0
  14. data/spec/fixtures/cassettes/interests.yml +723 -0
  15. data/spec/fixtures/cassettes/list.yml +176 -0
  16. data/spec/fixtures/cassettes/lists.yml +47 -0
  17. data/spec/fixtures/cassettes/mailchimp.yml +6 -886
  18. data/spec/fixtures/cassettes/member.yml +267 -0
  19. data/spec/fixtures/cassettes/members.yml +17 -6
  20. data/spec/mailchimp_api_v3/account_spec.rb +1 -1
  21. data/spec/mailchimp_api_v3/client_spec.rb +1 -1
  22. data/spec/mailchimp_api_v3/exception_spec.rb +1 -1
  23. data/spec/mailchimp_api_v3/interest_categories_spec.rb +21 -33
  24. data/spec/mailchimp_api_v3/interest_category_spec.rb +7 -7
  25. data/spec/mailchimp_api_v3/interest_spec.rb +9 -6
  26. data/spec/mailchimp_api_v3/interests_spec.rb +24 -28
  27. data/spec/mailchimp_api_v3/list_spec.rb +1 -1
  28. data/spec/mailchimp_api_v3/lists_spec.rb +1 -1
  29. data/spec/mailchimp_api_v3/member_spec.rb +4 -3
  30. data/spec/mailchimp_api_v3/members_spec.rb +1 -1
  31. data/spec/support/vcr_setup.rb +1 -1
  32. metadata +23 -4
@@ -0,0 +1,389 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists?count=500&exclude_fields=lists._links,_links&offset=0
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Authorization:
15
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
16
+ User-Agent:
17
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Content-Length:
28
+ - '1173'
29
+ X-Request-Id:
30
+ - 021c88c6-4cd3-4ebb-bf28-aab9e9b0d912
31
+ Link:
32
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
33
+ Vary:
34
+ - Accept-Encoding
35
+ Date:
36
+ - Tue, 07 Jul 2015 11:45:29 GMT
37
+ Connection:
38
+ - keep-alive
39
+ body:
40
+ encoding: ASCII-8BIT
41
+ string: '{"lists":[{"id":"e73f5910ca","name":"My first list","contact":{"company":"InSite
42
+ Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"","zip":"E14
43
+ 7DQ","country":"262","phone":"07917153555"},"permission_reminder":"Opt-in
44
+ only","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam Sayers","from_email":"sam@sayers.cc","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2015-06-27T14:49:18+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/brGTO9","subscribe_url_long":"http://insitearts.us11.list-manage.com/subscribe?u=1dbca289fd41b54838bcbb501&id=e73f5910ca","beamer_address":"us11-6692a2b3c3-bcd2a8b144@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":2,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":2,"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-06-27T14:50:39+00:00","last_unsub_date":""}}],"total_items":1}'
45
+ http_version:
46
+ recorded_at: Tue, 07 Jul 2015 11:45:29 GMT
47
+ - request:
48
+ method: get
49
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ Accept:
55
+ - "*/*; q=0.5, application/xml"
56
+ Accept-Encoding:
57
+ - gzip, deflate
58
+ Authorization:
59
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
60
+ User-Agent:
61
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Server:
68
+ - nginx
69
+ Content-Type:
70
+ - application/json; charset=utf-8
71
+ Content-Length:
72
+ - '145'
73
+ X-Request-Id:
74
+ - e610b9ca-0b1c-4963-8ccf-a0dfa238bd65
75
+ Link:
76
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
77
+ rel="describedBy"
78
+ Vary:
79
+ - Accept-Encoding
80
+ Date:
81
+ - Tue, 07 Jul 2015 11:45:29 GMT
82
+ Connection:
83
+ - keep-alive
84
+ body:
85
+ encoding: ASCII-8BIT
86
+ string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"}],"total_items":1}'
87
+ http_version:
88
+ recorded_at: Tue, 07 Jul 2015 11:45:29 GMT
89
+ - request:
90
+ method: post
91
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
92
+ body:
93
+ encoding: UTF-8
94
+ string: '{"title":"Days","type":"checkboxes"}'
95
+ headers:
96
+ Accept:
97
+ - "*/*; q=0.5, application/xml"
98
+ Accept-Encoding:
99
+ - gzip, deflate
100
+ Authorization:
101
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
102
+ User-Agent:
103
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
104
+ Content-Length:
105
+ - '36'
106
+ response:
107
+ status:
108
+ code: 200
109
+ message: OK
110
+ headers:
111
+ Server:
112
+ - nginx
113
+ Content-Type:
114
+ - application/json; charset=utf-8
115
+ Content-Length:
116
+ - '1210'
117
+ X-Request-Id:
118
+ - f9eb5660-4f9d-4469-bf95-e116286ce36d
119
+ Link:
120
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
121
+ rel="describedBy"
122
+ Vary:
123
+ - Accept-Encoding
124
+ Date:
125
+ - Tue, 07 Jul 2015 11:45:29 GMT
126
+ Connection:
127
+ - keep-alive
128
+ body:
129
+ encoding: ASCII-8BIT
130
+ string: '{"list_id":"e73f5910ca","id":"35d063e4a8","title":"Days","display_order":1,"type":"checkboxes","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8","method":"PATCH","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8","method":"DELETE"},{"rel":"interests","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"}]}'
131
+ http_version:
132
+ recorded_at: Tue, 07 Jul 2015 11:45:29 GMT
133
+ - request:
134
+ method: get
135
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests?count=500&exclude_fields=interests._links,_links&offset=0
136
+ body:
137
+ encoding: US-ASCII
138
+ string: ''
139
+ headers:
140
+ Accept:
141
+ - "*/*; q=0.5, application/xml"
142
+ Accept-Encoding:
143
+ - gzip, deflate
144
+ Authorization:
145
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
146
+ User-Agent:
147
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
148
+ response:
149
+ status:
150
+ code: 200
151
+ message: OK
152
+ headers:
153
+ Server:
154
+ - nginx
155
+ Content-Type:
156
+ - application/json; charset=utf-8
157
+ Content-Length:
158
+ - '82'
159
+ X-Request-Id:
160
+ - 02ea29dc-b178-43cd-9cdf-e4c77d6c882e
161
+ Link:
162
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
163
+ rel="describedBy"
164
+ Vary:
165
+ - Accept-Encoding
166
+ Date:
167
+ - Tue, 07 Jul 2015 11:45:30 GMT
168
+ Connection:
169
+ - keep-alive
170
+ body:
171
+ encoding: ASCII-8BIT
172
+ string: '{"interests":[],"list_id":"e73f5910ca","category_id":"35d063e4a8","total_items":0}'
173
+ http_version:
174
+ recorded_at: Tue, 07 Jul 2015 11:45:30 GMT
175
+ - request:
176
+ method: get
177
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests?count=500&exclude_fields=interests._links,_links&offset=0
178
+ body:
179
+ encoding: US-ASCII
180
+ string: ''
181
+ headers:
182
+ Accept:
183
+ - "*/*; q=0.5, application/xml"
184
+ Accept-Encoding:
185
+ - gzip, deflate
186
+ Authorization:
187
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
188
+ User-Agent:
189
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
190
+ response:
191
+ status:
192
+ code: 200
193
+ message: OK
194
+ headers:
195
+ Server:
196
+ - nginx
197
+ Content-Type:
198
+ - application/json; charset=utf-8
199
+ Content-Length:
200
+ - '82'
201
+ X-Request-Id:
202
+ - b4378fd7-2f5b-4c37-9c5b-e70121c5d87a
203
+ Link:
204
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
205
+ rel="describedBy"
206
+ Vary:
207
+ - Accept-Encoding
208
+ Date:
209
+ - Tue, 07 Jul 2015 11:45:30 GMT
210
+ Connection:
211
+ - keep-alive
212
+ body:
213
+ encoding: ASCII-8BIT
214
+ string: '{"interests":[],"list_id":"e73f5910ca","category_id":"35d063e4a8","total_items":0}'
215
+ http_version:
216
+ recorded_at: Tue, 07 Jul 2015 11:45:30 GMT
217
+ - request:
218
+ method: post
219
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests
220
+ body:
221
+ encoding: UTF-8
222
+ string: '{"name":"Monday"}'
223
+ headers:
224
+ Accept:
225
+ - "*/*; q=0.5, application/xml"
226
+ Accept-Encoding:
227
+ - gzip, deflate
228
+ Authorization:
229
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
230
+ User-Agent:
231
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
232
+ Content-Length:
233
+ - '17'
234
+ response:
235
+ status:
236
+ code: 200
237
+ message: OK
238
+ headers:
239
+ Server:
240
+ - nginx
241
+ Content-Type:
242
+ - application/json; charset=utf-8
243
+ Content-Length:
244
+ - '1038'
245
+ X-Request-Id:
246
+ - c9ff51b3-85ed-4662-8689-1b114a0202e8
247
+ Link:
248
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
249
+ rel="describedBy"
250
+ Vary:
251
+ - Accept-Encoding
252
+ Date:
253
+ - Tue, 07 Jul 2015 11:45:30 GMT
254
+ Connection:
255
+ - keep-alive
256
+ body:
257
+ encoding: ASCII-8BIT
258
+ string: '{"category_id":"35d063e4a8","list_id":"e73f5910ca","id":"05aaf669a7","name":"Monday","display_order":1,"_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests/05aaf669a7","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests/05aaf669a7","method":"PATCH","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests/05aaf669a7","method":"DELETE"}]}'
259
+ http_version:
260
+ recorded_at: Tue, 07 Jul 2015 11:45:30 GMT
261
+ - request:
262
+ method: get
263
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests?count=500&exclude_fields=interests._links,_links&offset=0
264
+ body:
265
+ encoding: US-ASCII
266
+ string: ''
267
+ headers:
268
+ Accept:
269
+ - "*/*; q=0.5, application/xml"
270
+ Accept-Encoding:
271
+ - gzip, deflate
272
+ Authorization:
273
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
274
+ User-Agent:
275
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
276
+ response:
277
+ status:
278
+ code: 200
279
+ message: OK
280
+ headers:
281
+ Server:
282
+ - nginx
283
+ Content-Type:
284
+ - application/json; charset=utf-8
285
+ Content-Length:
286
+ - '185'
287
+ X-Request-Id:
288
+ - 77531c90-afa1-4b43-b52a-b78af37a0cf0
289
+ Link:
290
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
291
+ rel="describedBy"
292
+ Vary:
293
+ - Accept-Encoding
294
+ Date:
295
+ - Tue, 07 Jul 2015 11:45:30 GMT
296
+ Connection:
297
+ - keep-alive
298
+ body:
299
+ encoding: ASCII-8BIT
300
+ string: '{"interests":[{"category_id":"35d063e4a8","list_id":"e73f5910ca","id":"05aaf669a7","name":"Monday","display_order":1}],"list_id":"e73f5910ca","category_id":"35d063e4a8","total_items":1}'
301
+ http_version:
302
+ recorded_at: Tue, 07 Jul 2015 11:45:30 GMT
303
+ - request:
304
+ method: post
305
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests
306
+ body:
307
+ encoding: UTF-8
308
+ string: '{"name":"Tuesday"}'
309
+ headers:
310
+ Accept:
311
+ - "*/*; q=0.5, application/xml"
312
+ Accept-Encoding:
313
+ - gzip, deflate
314
+ Authorization:
315
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
316
+ User-Agent:
317
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
318
+ Content-Length:
319
+ - '18'
320
+ response:
321
+ status:
322
+ code: 200
323
+ message: OK
324
+ headers:
325
+ Server:
326
+ - nginx
327
+ Content-Type:
328
+ - application/json; charset=utf-8
329
+ Content-Length:
330
+ - '1039'
331
+ X-Request-Id:
332
+ - 87c48f47-6809-4990-9077-b98150c4d789
333
+ Link:
334
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
335
+ rel="describedBy"
336
+ Vary:
337
+ - Accept-Encoding
338
+ Date:
339
+ - Tue, 07 Jul 2015 11:45:31 GMT
340
+ Connection:
341
+ - keep-alive
342
+ body:
343
+ encoding: ASCII-8BIT
344
+ string: '{"category_id":"35d063e4a8","list_id":"e73f5910ca","id":"471894ead2","name":"Tuesday","display_order":2,"_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests/471894ead2","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests/471894ead2","method":"PATCH","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests/471894ead2","method":"DELETE"}]}'
345
+ http_version:
346
+ recorded_at: Tue, 07 Jul 2015 11:45:31 GMT
347
+ - request:
348
+ method: get
349
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests?count=500&exclude_fields=interests._links,_links&offset=0
350
+ body:
351
+ encoding: US-ASCII
352
+ string: ''
353
+ headers:
354
+ Accept:
355
+ - "*/*; q=0.5, application/xml"
356
+ Accept-Encoding:
357
+ - gzip, deflate
358
+ Authorization:
359
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
360
+ User-Agent:
361
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
362
+ response:
363
+ status:
364
+ code: 200
365
+ message: OK
366
+ headers:
367
+ Server:
368
+ - nginx
369
+ Content-Type:
370
+ - application/json; charset=utf-8
371
+ Content-Length:
372
+ - '290'
373
+ X-Request-Id:
374
+ - 834e9768-ae67-41af-a5b4-2540b0c8ac06
375
+ Link:
376
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
377
+ rel="describedBy"
378
+ Vary:
379
+ - Accept-Encoding
380
+ Date:
381
+ - Tue, 07 Jul 2015 11:45:31 GMT
382
+ Connection:
383
+ - keep-alive
384
+ body:
385
+ encoding: ASCII-8BIT
386
+ string: '{"interests":[{"category_id":"35d063e4a8","list_id":"e73f5910ca","id":"05aaf669a7","name":"Monday","display_order":1},{"category_id":"35d063e4a8","list_id":"e73f5910ca","id":"471894ead2","name":"Tuesday","display_order":2}],"list_id":"e73f5910ca","category_id":"35d063e4a8","total_items":2}'
387
+ http_version:
388
+ recorded_at: Tue, 07 Jul 2015 11:45:31 GMT
389
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,723 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists?count=500&exclude_fields=lists._links,_links&offset=0
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Authorization:
15
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
16
+ User-Agent:
17
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Content-Length:
28
+ - '1173'
29
+ X-Request-Id:
30
+ - 02f8c91d-a209-4474-b75f-1d4cfa4412fd
31
+ Link:
32
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
33
+ Vary:
34
+ - Accept-Encoding
35
+ Date:
36
+ - Tue, 07 Jul 2015 11:53:46 GMT
37
+ Connection:
38
+ - keep-alive
39
+ body:
40
+ encoding: ASCII-8BIT
41
+ string: '{"lists":[{"id":"e73f5910ca","name":"My first list","contact":{"company":"InSite
42
+ Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"","zip":"E14
43
+ 7DQ","country":"262","phone":"07917153555"},"permission_reminder":"Opt-in
44
+ only","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam Sayers","from_email":"sam@sayers.cc","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2015-06-27T14:49:18+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/brGTO9","subscribe_url_long":"http://insitearts.us11.list-manage.com/subscribe?u=1dbca289fd41b54838bcbb501&id=e73f5910ca","beamer_address":"us11-6692a2b3c3-bcd2a8b144@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":2,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":2,"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-06-27T14:50:39+00:00","last_unsub_date":""}}],"total_items":1}'
45
+ http_version:
46
+ recorded_at: Tue, 07 Jul 2015 11:53:46 GMT
47
+ - request:
48
+ method: get
49
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ Accept:
55
+ - "*/*; q=0.5, application/xml"
56
+ Accept-Encoding:
57
+ - gzip, deflate
58
+ Authorization:
59
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
60
+ User-Agent:
61
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Server:
68
+ - nginx
69
+ Content-Type:
70
+ - application/json; charset=utf-8
71
+ Content-Length:
72
+ - '145'
73
+ X-Request-Id:
74
+ - d30eddeb-16da-42a8-bf08-8013bc9952c2
75
+ Link:
76
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
77
+ rel="describedBy"
78
+ Vary:
79
+ - Accept-Encoding
80
+ Date:
81
+ - Tue, 07 Jul 2015 11:53:46 GMT
82
+ Connection:
83
+ - keep-alive
84
+ body:
85
+ encoding: ASCII-8BIT
86
+ string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"}],"total_items":1}'
87
+ http_version:
88
+ recorded_at: Tue, 07 Jul 2015 11:53:46 GMT
89
+ - request:
90
+ method: post
91
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
92
+ body:
93
+ encoding: UTF-8
94
+ string: '{"title":"Days","type":"checkboxes"}'
95
+ headers:
96
+ Accept:
97
+ - "*/*; q=0.5, application/xml"
98
+ Accept-Encoding:
99
+ - gzip, deflate
100
+ Authorization:
101
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
102
+ User-Agent:
103
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
104
+ Content-Length:
105
+ - '36'
106
+ response:
107
+ status:
108
+ code: 200
109
+ message: OK
110
+ headers:
111
+ Server:
112
+ - nginx
113
+ Content-Type:
114
+ - application/json; charset=utf-8
115
+ Content-Length:
116
+ - '1210'
117
+ X-Request-Id:
118
+ - 06256e1f-65b2-424e-b867-6123c7a96a86
119
+ Link:
120
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
121
+ rel="describedBy"
122
+ Vary:
123
+ - Accept-Encoding
124
+ Date:
125
+ - Tue, 07 Jul 2015 11:53:46 GMT
126
+ Connection:
127
+ - keep-alive
128
+ body:
129
+ encoding: ASCII-8BIT
130
+ string: '{"list_id":"e73f5910ca","id":"e82a100d19","title":"Days","display_order":1,"type":"checkboxes","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19","method":"PATCH","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19","method":"DELETE"},{"rel":"interests","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"}]}'
131
+ http_version:
132
+ recorded_at: Tue, 07 Jul 2015 11:53:46 GMT
133
+ - request:
134
+ method: get
135
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
136
+ body:
137
+ encoding: US-ASCII
138
+ string: ''
139
+ headers:
140
+ Accept:
141
+ - "*/*; q=0.5, application/xml"
142
+ Accept-Encoding:
143
+ - gzip, deflate
144
+ Authorization:
145
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
146
+ User-Agent:
147
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
148
+ response:
149
+ status:
150
+ code: 200
151
+ message: OK
152
+ headers:
153
+ Server:
154
+ - nginx
155
+ Content-Type:
156
+ - application/json; charset=utf-8
157
+ Content-Length:
158
+ - '82'
159
+ X-Request-Id:
160
+ - 46928173-05d6-4710-badc-59c7b63fb5d6
161
+ Link:
162
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
163
+ rel="describedBy"
164
+ Vary:
165
+ - Accept-Encoding
166
+ Date:
167
+ - Tue, 07 Jul 2015 11:53:46 GMT
168
+ Connection:
169
+ - keep-alive
170
+ body:
171
+ encoding: ASCII-8BIT
172
+ string: '{"interests":[],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":0}'
173
+ http_version:
174
+ recorded_at: Tue, 07 Jul 2015 11:53:46 GMT
175
+ - request:
176
+ method: get
177
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
178
+ body:
179
+ encoding: US-ASCII
180
+ string: ''
181
+ headers:
182
+ Accept:
183
+ - "*/*; q=0.5, application/xml"
184
+ Accept-Encoding:
185
+ - gzip, deflate
186
+ Authorization:
187
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
188
+ User-Agent:
189
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
190
+ response:
191
+ status:
192
+ code: 200
193
+ message: OK
194
+ headers:
195
+ Server:
196
+ - nginx
197
+ Content-Type:
198
+ - application/json; charset=utf-8
199
+ Content-Length:
200
+ - '82'
201
+ X-Request-Id:
202
+ - 578e0a06-81aa-4c8b-8032-27214c26066b
203
+ Link:
204
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
205
+ rel="describedBy"
206
+ Vary:
207
+ - Accept-Encoding
208
+ Date:
209
+ - Tue, 07 Jul 2015 11:53:47 GMT
210
+ Connection:
211
+ - keep-alive
212
+ body:
213
+ encoding: ASCII-8BIT
214
+ string: '{"interests":[],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":0}'
215
+ http_version:
216
+ recorded_at: Tue, 07 Jul 2015 11:53:47 GMT
217
+ - request:
218
+ method: post
219
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests
220
+ body:
221
+ encoding: UTF-8
222
+ string: '{"name":"Monday"}'
223
+ headers:
224
+ Accept:
225
+ - "*/*; q=0.5, application/xml"
226
+ Accept-Encoding:
227
+ - gzip, deflate
228
+ Authorization:
229
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
230
+ User-Agent:
231
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
232
+ Content-Length:
233
+ - '17'
234
+ response:
235
+ status:
236
+ code: 200
237
+ message: OK
238
+ headers:
239
+ Server:
240
+ - nginx
241
+ Content-Type:
242
+ - application/json; charset=utf-8
243
+ Content-Length:
244
+ - '1038'
245
+ X-Request-Id:
246
+ - 5a21a7cd-47e6-45b6-840b-0ae07d9887f0
247
+ Link:
248
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
249
+ rel="describedBy"
250
+ Vary:
251
+ - Accept-Encoding
252
+ Date:
253
+ - Tue, 07 Jul 2015 11:53:47 GMT
254
+ Connection:
255
+ - keep-alive
256
+ body:
257
+ encoding: ASCII-8BIT
258
+ string: '{"category_id":"e82a100d19","list_id":"e73f5910ca","id":"d640efbb50","name":"Monday","display_order":1,"_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests/d640efbb50","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests/d640efbb50","method":"PATCH","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests/d640efbb50","method":"DELETE"}]}'
259
+ http_version:
260
+ recorded_at: Tue, 07 Jul 2015 11:53:47 GMT
261
+ - request:
262
+ method: get
263
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
264
+ body:
265
+ encoding: US-ASCII
266
+ string: ''
267
+ headers:
268
+ Accept:
269
+ - "*/*; q=0.5, application/xml"
270
+ Accept-Encoding:
271
+ - gzip, deflate
272
+ Authorization:
273
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
274
+ User-Agent:
275
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
276
+ response:
277
+ status:
278
+ code: 200
279
+ message: OK
280
+ headers:
281
+ Server:
282
+ - nginx
283
+ Content-Type:
284
+ - application/json; charset=utf-8
285
+ Content-Length:
286
+ - '185'
287
+ X-Request-Id:
288
+ - d550f062-4e6f-449b-8924-6d193de25838
289
+ Link:
290
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
291
+ rel="describedBy"
292
+ Vary:
293
+ - Accept-Encoding
294
+ Date:
295
+ - Tue, 07 Jul 2015 11:53:47 GMT
296
+ Connection:
297
+ - keep-alive
298
+ body:
299
+ encoding: ASCII-8BIT
300
+ string: '{"interests":[{"category_id":"e82a100d19","list_id":"e73f5910ca","id":"d640efbb50","name":"Monday","display_order":1}],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":1}'
301
+ http_version:
302
+ recorded_at: Tue, 07 Jul 2015 11:53:47 GMT
303
+ - request:
304
+ method: post
305
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests
306
+ body:
307
+ encoding: UTF-8
308
+ string: '{"name":"Monday"}'
309
+ headers:
310
+ Accept:
311
+ - "*/*; q=0.5, application/xml"
312
+ Accept-Encoding:
313
+ - gzip, deflate
314
+ Authorization:
315
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
316
+ User-Agent:
317
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
318
+ Content-Length:
319
+ - '17'
320
+ response:
321
+ status:
322
+ code: 400
323
+ message: Bad Request
324
+ headers:
325
+ Server:
326
+ - nginx
327
+ Content-Type:
328
+ - application/problem+json; charset=utf-8
329
+ Content-Length:
330
+ - '232'
331
+ X-Request-Id:
332
+ - 9b4bdde9-7a18-432b-8cad-116f613493c2
333
+ Link:
334
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
335
+ Vary:
336
+ - Accept-Encoding
337
+ Date:
338
+ - Tue, 07 Jul 2015 11:53:48 GMT
339
+ Connection:
340
+ - close
341
+ body:
342
+ encoding: ASCII-8BIT
343
+ string: '{"type":"http://kb.mailchimp.com/api/error-docs/400-invalid-resource","title":"Invalid
344
+ Resource","status":400,"detail":"Cannot add \"Monday\" because it already
345
+ exists on the list.","instance":"9b4bdde9-7a18-432b-8cad-116f613493c2"}'
346
+ http_version:
347
+ recorded_at: Tue, 07 Jul 2015 11:53:48 GMT
348
+ - request:
349
+ method: get
350
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
351
+ body:
352
+ encoding: US-ASCII
353
+ string: ''
354
+ headers:
355
+ Accept:
356
+ - "*/*; q=0.5, application/xml"
357
+ Accept-Encoding:
358
+ - gzip, deflate
359
+ Authorization:
360
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
361
+ User-Agent:
362
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
363
+ response:
364
+ status:
365
+ code: 200
366
+ message: OK
367
+ headers:
368
+ Server:
369
+ - nginx
370
+ Content-Type:
371
+ - application/json; charset=utf-8
372
+ Content-Length:
373
+ - '185'
374
+ X-Request-Id:
375
+ - 73cc20a3-a342-403e-847d-4ff6d6b846aa
376
+ Link:
377
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
378
+ rel="describedBy"
379
+ Vary:
380
+ - Accept-Encoding
381
+ Date:
382
+ - Tue, 07 Jul 2015 11:53:48 GMT
383
+ Connection:
384
+ - keep-alive
385
+ body:
386
+ encoding: ASCII-8BIT
387
+ string: '{"interests":[{"category_id":"e82a100d19","list_id":"e73f5910ca","id":"d640efbb50","name":"Monday","display_order":1}],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":1}'
388
+ http_version:
389
+ recorded_at: Tue, 07 Jul 2015 11:53:48 GMT
390
+ - request:
391
+ method: get
392
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
393
+ body:
394
+ encoding: US-ASCII
395
+ string: ''
396
+ headers:
397
+ Accept:
398
+ - "*/*; q=0.5, application/xml"
399
+ Accept-Encoding:
400
+ - gzip, deflate
401
+ Authorization:
402
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
403
+ User-Agent:
404
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
405
+ response:
406
+ status:
407
+ code: 200
408
+ message: OK
409
+ headers:
410
+ Server:
411
+ - nginx
412
+ Content-Type:
413
+ - application/json; charset=utf-8
414
+ Content-Length:
415
+ - '185'
416
+ X-Request-Id:
417
+ - 56a76eb1-8065-4216-8eb8-cfa2a19af691
418
+ Link:
419
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
420
+ rel="describedBy"
421
+ Vary:
422
+ - Accept-Encoding
423
+ Date:
424
+ - Tue, 07 Jul 2015 11:53:48 GMT
425
+ Connection:
426
+ - keep-alive
427
+ body:
428
+ encoding: ASCII-8BIT
429
+ string: '{"interests":[{"category_id":"e82a100d19","list_id":"e73f5910ca","id":"d640efbb50","name":"Monday","display_order":1}],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":1}'
430
+ http_version:
431
+ recorded_at: Tue, 07 Jul 2015 11:53:48 GMT
432
+ - request:
433
+ method: get
434
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
435
+ body:
436
+ encoding: US-ASCII
437
+ string: ''
438
+ headers:
439
+ Accept:
440
+ - "*/*; q=0.5, application/xml"
441
+ Accept-Encoding:
442
+ - gzip, deflate
443
+ Authorization:
444
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
445
+ User-Agent:
446
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
447
+ response:
448
+ status:
449
+ code: 200
450
+ message: OK
451
+ headers:
452
+ Server:
453
+ - nginx
454
+ Content-Type:
455
+ - application/json; charset=utf-8
456
+ Content-Length:
457
+ - '185'
458
+ X-Request-Id:
459
+ - fab81ede-98c9-40aa-ba61-7e817e33d682
460
+ Link:
461
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
462
+ rel="describedBy"
463
+ Vary:
464
+ - Accept-Encoding
465
+ Date:
466
+ - Tue, 07 Jul 2015 11:53:48 GMT
467
+ Connection:
468
+ - keep-alive
469
+ body:
470
+ encoding: ASCII-8BIT
471
+ string: '{"interests":[{"category_id":"e82a100d19","list_id":"e73f5910ca","id":"d640efbb50","name":"Monday","display_order":1}],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":1}'
472
+ http_version:
473
+ recorded_at: Tue, 07 Jul 2015 11:53:48 GMT
474
+ - request:
475
+ method: get
476
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
477
+ body:
478
+ encoding: US-ASCII
479
+ string: ''
480
+ headers:
481
+ Accept:
482
+ - "*/*; q=0.5, application/xml"
483
+ Accept-Encoding:
484
+ - gzip, deflate
485
+ Authorization:
486
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
487
+ User-Agent:
488
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
489
+ response:
490
+ status:
491
+ code: 200
492
+ message: OK
493
+ headers:
494
+ Server:
495
+ - nginx
496
+ Content-Type:
497
+ - application/json; charset=utf-8
498
+ Content-Length:
499
+ - '185'
500
+ X-Request-Id:
501
+ - b04f80ee-0531-4452-8c09-1b63e646f5f6
502
+ Link:
503
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
504
+ rel="describedBy"
505
+ Vary:
506
+ - Accept-Encoding
507
+ Date:
508
+ - Tue, 07 Jul 2015 11:53:49 GMT
509
+ Connection:
510
+ - keep-alive
511
+ body:
512
+ encoding: ASCII-8BIT
513
+ string: '{"interests":[{"category_id":"e82a100d19","list_id":"e73f5910ca","id":"d640efbb50","name":"Monday","display_order":1}],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":1}'
514
+ http_version:
515
+ recorded_at: Tue, 07 Jul 2015 11:53:49 GMT
516
+ - request:
517
+ method: get
518
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
519
+ body:
520
+ encoding: US-ASCII
521
+ string: ''
522
+ headers:
523
+ Accept:
524
+ - "*/*; q=0.5, application/xml"
525
+ Accept-Encoding:
526
+ - gzip, deflate
527
+ Authorization:
528
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
529
+ User-Agent:
530
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
531
+ response:
532
+ status:
533
+ code: 200
534
+ message: OK
535
+ headers:
536
+ Server:
537
+ - nginx
538
+ Content-Type:
539
+ - application/json; charset=utf-8
540
+ Content-Length:
541
+ - '185'
542
+ X-Request-Id:
543
+ - e6c7bc15-275f-4c35-845a-a406e754c29f
544
+ Link:
545
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
546
+ rel="describedBy"
547
+ Vary:
548
+ - Accept-Encoding
549
+ Date:
550
+ - Tue, 07 Jul 2015 11:53:49 GMT
551
+ Connection:
552
+ - keep-alive
553
+ body:
554
+ encoding: ASCII-8BIT
555
+ string: '{"interests":[{"category_id":"e82a100d19","list_id":"e73f5910ca","id":"d640efbb50","name":"Monday","display_order":1}],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":1}'
556
+ http_version:
557
+ recorded_at: Tue, 07 Jul 2015 11:53:49 GMT
558
+ - request:
559
+ method: delete
560
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests/d640efbb50
561
+ body:
562
+ encoding: US-ASCII
563
+ string: ''
564
+ headers:
565
+ Accept:
566
+ - "*/*; q=0.5, application/xml"
567
+ Accept-Encoding:
568
+ - gzip, deflate
569
+ Authorization:
570
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
571
+ User-Agent:
572
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
573
+ response:
574
+ status:
575
+ code: 204
576
+ message: No Content
577
+ headers:
578
+ Server:
579
+ - nginx
580
+ Content-Type:
581
+ - application/json; charset=utf-8
582
+ Content-Length:
583
+ - '2'
584
+ X-Request-Id:
585
+ - 8130f0fd-1da7-41e7-8571-37cb2bf291f8
586
+ Date:
587
+ - Tue, 07 Jul 2015 11:53:49 GMT
588
+ Connection:
589
+ - keep-alive
590
+ body:
591
+ encoding: UTF-8
592
+ string: ''
593
+ http_version:
594
+ recorded_at: Tue, 07 Jul 2015 11:53:49 GMT
595
+ - request:
596
+ method: get
597
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
598
+ body:
599
+ encoding: US-ASCII
600
+ string: ''
601
+ headers:
602
+ Accept:
603
+ - "*/*; q=0.5, application/xml"
604
+ Accept-Encoding:
605
+ - gzip, deflate
606
+ Authorization:
607
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
608
+ User-Agent:
609
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
610
+ response:
611
+ status:
612
+ code: 200
613
+ message: OK
614
+ headers:
615
+ Server:
616
+ - nginx
617
+ Content-Type:
618
+ - application/json; charset=utf-8
619
+ Content-Length:
620
+ - '82'
621
+ X-Request-Id:
622
+ - ef7a13fa-1af5-4087-b4fd-6bf0cfa49ec4
623
+ Link:
624
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
625
+ rel="describedBy"
626
+ Vary:
627
+ - Accept-Encoding
628
+ Date:
629
+ - Tue, 07 Jul 2015 11:54:04 GMT
630
+ Connection:
631
+ - keep-alive
632
+ body:
633
+ encoding: ASCII-8BIT
634
+ string: '{"interests":[],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":0}'
635
+ http_version:
636
+ recorded_at: Tue, 07 Jul 2015 11:54:04 GMT
637
+ - request:
638
+ method: get
639
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
640
+ body:
641
+ encoding: US-ASCII
642
+ string: ''
643
+ headers:
644
+ Accept:
645
+ - "*/*; q=0.5, application/xml"
646
+ Accept-Encoding:
647
+ - gzip, deflate
648
+ Authorization:
649
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
650
+ User-Agent:
651
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
652
+ response:
653
+ status:
654
+ code: 200
655
+ message: OK
656
+ headers:
657
+ Server:
658
+ - nginx
659
+ Content-Type:
660
+ - application/json; charset=utf-8
661
+ Content-Length:
662
+ - '82'
663
+ X-Request-Id:
664
+ - a3e16993-2a39-42f0-8375-e03321a5f7a0
665
+ Link:
666
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
667
+ rel="describedBy"
668
+ Vary:
669
+ - Accept-Encoding
670
+ Date:
671
+ - Tue, 07 Jul 2015 11:54:05 GMT
672
+ Connection:
673
+ - keep-alive
674
+ body:
675
+ encoding: ASCII-8BIT
676
+ string: '{"interests":[],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":0}'
677
+ http_version:
678
+ recorded_at: Tue, 07 Jul 2015 11:54:05 GMT
679
+ - request:
680
+ method: post
681
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests
682
+ body:
683
+ encoding: UTF-8
684
+ string: '{"name":"Tuesday"}'
685
+ headers:
686
+ Accept:
687
+ - "*/*; q=0.5, application/xml"
688
+ Accept-Encoding:
689
+ - gzip, deflate
690
+ Authorization:
691
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
692
+ User-Agent:
693
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
694
+ Content-Length:
695
+ - '18'
696
+ response:
697
+ status:
698
+ code: 200
699
+ message: OK
700
+ headers:
701
+ Server:
702
+ - nginx
703
+ Content-Type:
704
+ - application/json; charset=utf-8
705
+ Content-Length:
706
+ - '1039'
707
+ X-Request-Id:
708
+ - b3e5e5e6-df84-45c3-97f4-ae38fb0e023e
709
+ Link:
710
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
711
+ rel="describedBy"
712
+ Vary:
713
+ - Accept-Encoding
714
+ Date:
715
+ - Tue, 07 Jul 2015 11:54:05 GMT
716
+ Connection:
717
+ - keep-alive
718
+ body:
719
+ encoding: ASCII-8BIT
720
+ string: '{"category_id":"e82a100d19","list_id":"e73f5910ca","id":"5582aaf63d","name":"Tuesday","display_order":1,"_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests/5582aaf63d","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests/5582aaf63d","method":"PATCH","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests/5582aaf63d","method":"DELETE"}]}'
721
+ http_version:
722
+ recorded_at: Tue, 07 Jul 2015 11:54:05 GMT
723
+ recorded_with: VCR 2.9.3