mailchimp_api_v3 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
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,384 @@
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
+ - '1174'
29
+ X-Request-Id:
30
+ - 0251ce13-274d-4d55-a9c3-29621abf2f06
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 12:01:35 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-manage2.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 12:01:35 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
+ - c4149031-d76c-46c2-a4c8-d045584b698c
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 12:01:36 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 12:01:36 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
+ - a0bb0b22-d69a-4d06-993e-be459867264e
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 12:01:36 GMT
126
+ Connection:
127
+ - keep-alive
128
+ body:
129
+ encoding: ASCII-8BIT
130
+ string: '{"list_id":"e73f5910ca","id":"bc914b7356","title":"Days","display_order":1,"type":"checkboxes","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356","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/bc914b7356","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/bc914b7356","method":"DELETE"},{"rel":"interests","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/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 12:01:36 GMT
133
+ - request:
134
+ method: get
135
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/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
+ - 65995a31-de7d-4a89-be47-c35df7f3c190
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 12:01:36 GMT
168
+ Connection:
169
+ - keep-alive
170
+ body:
171
+ encoding: ASCII-8BIT
172
+ string: '{"interests":[],"list_id":"e73f5910ca","category_id":"bc914b7356","total_items":0}'
173
+ http_version:
174
+ recorded_at: Tue, 07 Jul 2015 12:01:36 GMT
175
+ - request:
176
+ method: post
177
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests
178
+ body:
179
+ encoding: UTF-8
180
+ string: '{"name":"Monday"}'
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
+ Content-Length:
191
+ - '17'
192
+ response:
193
+ status:
194
+ code: 200
195
+ message: OK
196
+ headers:
197
+ Server:
198
+ - nginx
199
+ Content-Type:
200
+ - application/json; charset=utf-8
201
+ Content-Length:
202
+ - '1038'
203
+ X-Request-Id:
204
+ - b784f011-0c28-4bd9-8bbe-2c4c70289b7b
205
+ Link:
206
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
207
+ rel="describedBy"
208
+ Vary:
209
+ - Accept-Encoding
210
+ Date:
211
+ - Tue, 07 Jul 2015 12:01:36 GMT
212
+ Connection:
213
+ - keep-alive
214
+ body:
215
+ encoding: ASCII-8BIT
216
+ string: '{"category_id":"bc914b7356","list_id":"e73f5910ca","id":"ca7ab24b53","name":"Monday","display_order":1,"_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests/ca7ab24b53","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/bc914b7356/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/bc914b7356/interests/ca7ab24b53","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/bc914b7356/interests/ca7ab24b53","method":"DELETE"}]}'
217
+ http_version:
218
+ recorded_at: Tue, 07 Jul 2015 12:01:36 GMT
219
+ - request:
220
+ method: post
221
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests
222
+ body:
223
+ encoding: UTF-8
224
+ string: '{"name":"Tuesday"}'
225
+ headers:
226
+ Accept:
227
+ - "*/*; q=0.5, application/xml"
228
+ Accept-Encoding:
229
+ - gzip, deflate
230
+ Authorization:
231
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
232
+ User-Agent:
233
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
234
+ Content-Length:
235
+ - '18'
236
+ response:
237
+ status:
238
+ code: 200
239
+ message: OK
240
+ headers:
241
+ Server:
242
+ - nginx
243
+ Content-Type:
244
+ - application/json; charset=utf-8
245
+ Content-Length:
246
+ - '1039'
247
+ X-Request-Id:
248
+ - 43a451be-1a63-412f-adeb-08d79ef2271d
249
+ Link:
250
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
251
+ rel="describedBy"
252
+ Vary:
253
+ - Accept-Encoding
254
+ Date:
255
+ - Tue, 07 Jul 2015 12:01:37 GMT
256
+ Connection:
257
+ - keep-alive
258
+ body:
259
+ encoding: ASCII-8BIT
260
+ string: '{"category_id":"bc914b7356","list_id":"e73f5910ca","id":"7eceb48776","name":"Tuesday","display_order":2,"_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests/7eceb48776","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/bc914b7356/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/bc914b7356/interests/7eceb48776","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/bc914b7356/interests/7eceb48776","method":"DELETE"}]}'
261
+ http_version:
262
+ recorded_at: Tue, 07 Jul 2015 12:01:37 GMT
263
+ - request:
264
+ method: get
265
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests?count=500&exclude_fields=interests._links,_links&offset=0
266
+ body:
267
+ encoding: US-ASCII
268
+ string: ''
269
+ headers:
270
+ Accept:
271
+ - "*/*; q=0.5, application/xml"
272
+ Accept-Encoding:
273
+ - gzip, deflate
274
+ Authorization:
275
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
276
+ User-Agent:
277
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
278
+ response:
279
+ status:
280
+ code: 200
281
+ message: OK
282
+ headers:
283
+ Server:
284
+ - nginx
285
+ Content-Type:
286
+ - application/json; charset=utf-8
287
+ Content-Length:
288
+ - '290'
289
+ X-Request-Id:
290
+ - 0078df60-54b9-49b9-8fea-6365f22b612b
291
+ Link:
292
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
293
+ rel="describedBy"
294
+ Vary:
295
+ - Accept-Encoding
296
+ Date:
297
+ - Tue, 07 Jul 2015 12:01:37 GMT
298
+ Connection:
299
+ - keep-alive
300
+ body:
301
+ encoding: ASCII-8BIT
302
+ string: '{"interests":[{"category_id":"bc914b7356","list_id":"e73f5910ca","id":"ca7ab24b53","name":"Monday","display_order":1},{"category_id":"bc914b7356","list_id":"e73f5910ca","id":"7eceb48776","name":"Tuesday","display_order":2}],"list_id":"e73f5910ca","category_id":"bc914b7356","total_items":2}'
303
+ http_version:
304
+ recorded_at: Tue, 07 Jul 2015 12:01:37 GMT
305
+ - request:
306
+ method: delete
307
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests/7eceb48776
308
+ body:
309
+ encoding: US-ASCII
310
+ string: ''
311
+ headers:
312
+ Accept:
313
+ - "*/*; q=0.5, application/xml"
314
+ Accept-Encoding:
315
+ - gzip, deflate
316
+ Authorization:
317
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
318
+ User-Agent:
319
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
320
+ response:
321
+ status:
322
+ code: 204
323
+ message: No Content
324
+ headers:
325
+ Server:
326
+ - nginx
327
+ Content-Type:
328
+ - application/json; charset=utf-8
329
+ Content-Length:
330
+ - '2'
331
+ X-Request-Id:
332
+ - 1c47d4ee-0fe3-4439-b31b-8197fec6e8c4
333
+ Date:
334
+ - Tue, 07 Jul 2015 12:01:37 GMT
335
+ Connection:
336
+ - keep-alive
337
+ body:
338
+ encoding: UTF-8
339
+ string: ''
340
+ http_version:
341
+ recorded_at: Tue, 07 Jul 2015 12:01:37 GMT
342
+ - request:
343
+ method: get
344
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests?count=500&exclude_fields=interests._links,_links&offset=0
345
+ body:
346
+ encoding: US-ASCII
347
+ string: ''
348
+ headers:
349
+ Accept:
350
+ - "*/*; q=0.5, application/xml"
351
+ Accept-Encoding:
352
+ - gzip, deflate
353
+ Authorization:
354
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
355
+ User-Agent:
356
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
357
+ response:
358
+ status:
359
+ code: 200
360
+ message: OK
361
+ headers:
362
+ Server:
363
+ - nginx
364
+ Content-Type:
365
+ - application/json; charset=utf-8
366
+ Content-Length:
367
+ - '185'
368
+ X-Request-Id:
369
+ - e16084ed-381c-42bc-8269-4d696462a295
370
+ Link:
371
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
372
+ rel="describedBy"
373
+ Vary:
374
+ - Accept-Encoding
375
+ Date:
376
+ - Tue, 07 Jul 2015 12:01:53 GMT
377
+ Connection:
378
+ - keep-alive
379
+ body:
380
+ encoding: ASCII-8BIT
381
+ string: '{"interests":[{"category_id":"bc914b7356","list_id":"e73f5910ca","id":"ca7ab24b53","name":"Monday","display_order":1}],"list_id":"e73f5910ca","category_id":"bc914b7356","total_items":1}'
382
+ http_version:
383
+ recorded_at: Tue, 07 Jul 2015 12:01:53 GMT
384
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,637 @@
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
+ - 59b8dc2c-87c8-4250-a605-9623d2f9a988
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:42:42 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:42:42 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
+ - '56'
73
+ X-Request-Id:
74
+ - f649a54a-b807-4c59-9db6-12b560fb4283
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:42:43 GMT
82
+ Connection:
83
+ - keep-alive
84
+ body:
85
+ encoding: ASCII-8BIT
86
+ string: '{"list_id":"e73f5910ca","categories":[],"total_items":0}'
87
+ http_version:
88
+ recorded_at: Tue, 07 Jul 2015 11:42:43 GMT
89
+ - request:
90
+ method: get
91
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
92
+ body:
93
+ encoding: US-ASCII
94
+ string: ''
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
+ response:
105
+ status:
106
+ code: 200
107
+ message: OK
108
+ headers:
109
+ Server:
110
+ - nginx
111
+ Content-Type:
112
+ - application/json; charset=utf-8
113
+ Content-Length:
114
+ - '56'
115
+ X-Request-Id:
116
+ - bbcf652c-5e10-43c1-bf93-47f2d6ab83e5
117
+ Link:
118
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
119
+ rel="describedBy"
120
+ Vary:
121
+ - Accept-Encoding
122
+ Date:
123
+ - Tue, 07 Jul 2015 11:42:43 GMT
124
+ Connection:
125
+ - keep-alive
126
+ body:
127
+ encoding: ASCII-8BIT
128
+ string: '{"list_id":"e73f5910ca","categories":[],"total_items":0}'
129
+ http_version:
130
+ recorded_at: Tue, 07 Jul 2015 11:42:43 GMT
131
+ - request:
132
+ method: post
133
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
134
+ body:
135
+ encoding: UTF-8
136
+ string: '{"title":"Days","type":"checkboxes"}'
137
+ headers:
138
+ Accept:
139
+ - "*/*; q=0.5, application/xml"
140
+ Accept-Encoding:
141
+ - gzip, deflate
142
+ Authorization:
143
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
144
+ User-Agent:
145
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
146
+ Content-Length:
147
+ - '36'
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
+ - '1210'
159
+ X-Request-Id:
160
+ - 8a32a0ac-990b-4737-be25-057afde3161f
161
+ Link:
162
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
163
+ rel="describedBy"
164
+ Vary:
165
+ - Accept-Encoding
166
+ Date:
167
+ - Tue, 07 Jul 2015 11:42:43 GMT
168
+ Connection:
169
+ - keep-alive
170
+ body:
171
+ encoding: ASCII-8BIT
172
+ string: '{"list_id":"e73f5910ca","id":"af5e3cc15e","title":"Days","display_order":0,"type":"checkboxes","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/af5e3cc15e","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/af5e3cc15e","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/af5e3cc15e","method":"DELETE"},{"rel":"interests","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/af5e3cc15e/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"}]}'
173
+ http_version:
174
+ recorded_at: Tue, 07 Jul 2015 11:42:43 GMT
175
+ - request:
176
+ method: get
177
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._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
+ - '151'
201
+ X-Request-Id:
202
+ - 65ac7410-d687-4ccd-a22c-9484c78bb8cf
203
+ Link:
204
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
205
+ rel="describedBy"
206
+ Vary:
207
+ - Accept-Encoding
208
+ Date:
209
+ - Tue, 07 Jul 2015 11:42:44 GMT
210
+ Connection:
211
+ - keep-alive
212
+ body:
213
+ encoding: ASCII-8BIT
214
+ string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"af5e3cc15e","title":"Days","display_order":0,"type":"checkboxes"}],"total_items":1}'
215
+ http_version:
216
+ recorded_at: Tue, 07 Jul 2015 11:42:44 GMT
217
+ - request:
218
+ method: post
219
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
220
+ body:
221
+ encoding: UTF-8
222
+ string: '{"title":"Days","type":"checkboxes"}'
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
+ - '36'
234
+ response:
235
+ status:
236
+ code: 400
237
+ message: Bad Request
238
+ headers:
239
+ Server:
240
+ - nginx
241
+ Content-Type:
242
+ - application/problem+json; charset=utf-8
243
+ Content-Length:
244
+ - '230'
245
+ X-Request-Id:
246
+ - 2c95368f-6329-4447-acd9-5ff95d82b502
247
+ Link:
248
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
249
+ Vary:
250
+ - Accept-Encoding
251
+ Date:
252
+ - Tue, 07 Jul 2015 11:42:44 GMT
253
+ Connection:
254
+ - close
255
+ body:
256
+ encoding: ASCII-8BIT
257
+ string: '{"type":"http://kb.mailchimp.com/api/error-docs/400-invalid-resource","title":"Invalid
258
+ Resource","status":400,"detail":"An interest category with the title ''Days''
259
+ already exists.","instance":"2c95368f-6329-4447-acd9-5ff95d82b502"}'
260
+ http_version:
261
+ recorded_at: Tue, 07 Jul 2015 11:42:44 GMT
262
+ - request:
263
+ method: get
264
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
265
+ body:
266
+ encoding: US-ASCII
267
+ string: ''
268
+ headers:
269
+ Accept:
270
+ - "*/*; q=0.5, application/xml"
271
+ Accept-Encoding:
272
+ - gzip, deflate
273
+ Authorization:
274
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
275
+ User-Agent:
276
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
277
+ response:
278
+ status:
279
+ code: 200
280
+ message: OK
281
+ headers:
282
+ Server:
283
+ - nginx
284
+ Content-Type:
285
+ - application/json; charset=utf-8
286
+ Content-Length:
287
+ - '151'
288
+ X-Request-Id:
289
+ - 7631d279-4200-4259-aff1-3fa85fe3260c
290
+ Link:
291
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
292
+ rel="describedBy"
293
+ Vary:
294
+ - Accept-Encoding
295
+ Date:
296
+ - Tue, 07 Jul 2015 11:42:44 GMT
297
+ Connection:
298
+ - keep-alive
299
+ body:
300
+ encoding: ASCII-8BIT
301
+ string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"af5e3cc15e","title":"Days","display_order":0,"type":"checkboxes"}],"total_items":1}'
302
+ http_version:
303
+ recorded_at: Tue, 07 Jul 2015 11:42:44 GMT
304
+ - request:
305
+ method: get
306
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
307
+ body:
308
+ encoding: US-ASCII
309
+ string: ''
310
+ headers:
311
+ Accept:
312
+ - "*/*; q=0.5, application/xml"
313
+ Accept-Encoding:
314
+ - gzip, deflate
315
+ Authorization:
316
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
317
+ User-Agent:
318
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
319
+ response:
320
+ status:
321
+ code: 200
322
+ message: OK
323
+ headers:
324
+ Server:
325
+ - nginx
326
+ Content-Type:
327
+ - application/json; charset=utf-8
328
+ Content-Length:
329
+ - '151'
330
+ X-Request-Id:
331
+ - e329d4d6-7406-4f37-b5b8-e048837591fd
332
+ Link:
333
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
334
+ rel="describedBy"
335
+ Vary:
336
+ - Accept-Encoding
337
+ Date:
338
+ - Tue, 07 Jul 2015 11:42:44 GMT
339
+ Connection:
340
+ - keep-alive
341
+ body:
342
+ encoding: ASCII-8BIT
343
+ string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"af5e3cc15e","title":"Days","display_order":0,"type":"checkboxes"}],"total_items":1}'
344
+ http_version:
345
+ recorded_at: Tue, 07 Jul 2015 11:42:44 GMT
346
+ - request:
347
+ method: get
348
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
349
+ body:
350
+ encoding: US-ASCII
351
+ string: ''
352
+ headers:
353
+ Accept:
354
+ - "*/*; q=0.5, application/xml"
355
+ Accept-Encoding:
356
+ - gzip, deflate
357
+ Authorization:
358
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
359
+ User-Agent:
360
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
361
+ response:
362
+ status:
363
+ code: 200
364
+ message: OK
365
+ headers:
366
+ Server:
367
+ - nginx
368
+ Content-Type:
369
+ - application/json; charset=utf-8
370
+ Content-Length:
371
+ - '151'
372
+ X-Request-Id:
373
+ - 17d05502-f37b-4a53-9816-fd4bc4bba48f
374
+ Link:
375
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
376
+ rel="describedBy"
377
+ Vary:
378
+ - Accept-Encoding
379
+ Date:
380
+ - Tue, 07 Jul 2015 11:42:45 GMT
381
+ Connection:
382
+ - keep-alive
383
+ body:
384
+ encoding: ASCII-8BIT
385
+ string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"af5e3cc15e","title":"Days","display_order":0,"type":"checkboxes"}],"total_items":1}'
386
+ http_version:
387
+ recorded_at: Tue, 07 Jul 2015 11:42:45 GMT
388
+ - request:
389
+ method: get
390
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
391
+ body:
392
+ encoding: US-ASCII
393
+ string: ''
394
+ headers:
395
+ Accept:
396
+ - "*/*; q=0.5, application/xml"
397
+ Accept-Encoding:
398
+ - gzip, deflate
399
+ Authorization:
400
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
401
+ User-Agent:
402
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
403
+ response:
404
+ status:
405
+ code: 200
406
+ message: OK
407
+ headers:
408
+ Server:
409
+ - nginx
410
+ Content-Type:
411
+ - application/json; charset=utf-8
412
+ Content-Length:
413
+ - '151'
414
+ X-Request-Id:
415
+ - 36067265-864f-465a-b905-4acfee872d1b
416
+ Link:
417
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
418
+ rel="describedBy"
419
+ Vary:
420
+ - Accept-Encoding
421
+ Date:
422
+ - Tue, 07 Jul 2015 11:42:45 GMT
423
+ Connection:
424
+ - keep-alive
425
+ body:
426
+ encoding: ASCII-8BIT
427
+ string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"af5e3cc15e","title":"Days","display_order":0,"type":"checkboxes"}],"total_items":1}'
428
+ http_version:
429
+ recorded_at: Tue, 07 Jul 2015 11:42:45 GMT
430
+ - request:
431
+ method: get
432
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
433
+ body:
434
+ encoding: US-ASCII
435
+ string: ''
436
+ headers:
437
+ Accept:
438
+ - "*/*; q=0.5, application/xml"
439
+ Accept-Encoding:
440
+ - gzip, deflate
441
+ Authorization:
442
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
443
+ User-Agent:
444
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
445
+ response:
446
+ status:
447
+ code: 200
448
+ message: OK
449
+ headers:
450
+ Server:
451
+ - nginx
452
+ Content-Type:
453
+ - application/json; charset=utf-8
454
+ Content-Length:
455
+ - '151'
456
+ X-Request-Id:
457
+ - 33f52732-aa22-4384-9cdc-fcb049e9f7d1
458
+ Link:
459
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
460
+ rel="describedBy"
461
+ Vary:
462
+ - Accept-Encoding
463
+ Date:
464
+ - Tue, 07 Jul 2015 11:42:45 GMT
465
+ Connection:
466
+ - keep-alive
467
+ body:
468
+ encoding: ASCII-8BIT
469
+ string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"af5e3cc15e","title":"Days","display_order":0,"type":"checkboxes"}],"total_items":1}'
470
+ http_version:
471
+ recorded_at: Tue, 07 Jul 2015 11:42:45 GMT
472
+ - request:
473
+ method: delete
474
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/af5e3cc15e
475
+ body:
476
+ encoding: US-ASCII
477
+ string: ''
478
+ headers:
479
+ Accept:
480
+ - "*/*; q=0.5, application/xml"
481
+ Accept-Encoding:
482
+ - gzip, deflate
483
+ Authorization:
484
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
485
+ User-Agent:
486
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
487
+ response:
488
+ status:
489
+ code: 204
490
+ message: No Content
491
+ headers:
492
+ Server:
493
+ - nginx
494
+ Content-Type:
495
+ - application/json; charset=utf-8
496
+ Content-Length:
497
+ - '2'
498
+ X-Request-Id:
499
+ - 292f2de6-da6e-43e0-9872-1b156faffce2
500
+ Date:
501
+ - Tue, 07 Jul 2015 11:42:45 GMT
502
+ Connection:
503
+ - keep-alive
504
+ body:
505
+ encoding: UTF-8
506
+ string: ''
507
+ http_version:
508
+ recorded_at: Tue, 07 Jul 2015 11:42:45 GMT
509
+ - request:
510
+ method: get
511
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
512
+ body:
513
+ encoding: US-ASCII
514
+ string: ''
515
+ headers:
516
+ Accept:
517
+ - "*/*; q=0.5, application/xml"
518
+ Accept-Encoding:
519
+ - gzip, deflate
520
+ Authorization:
521
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
522
+ User-Agent:
523
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
524
+ response:
525
+ status:
526
+ code: 200
527
+ message: OK
528
+ headers:
529
+ Server:
530
+ - nginx
531
+ Content-Type:
532
+ - application/json; charset=utf-8
533
+ Content-Length:
534
+ - '56'
535
+ X-Request-Id:
536
+ - 9c345d51-8761-4190-a090-3378620df977
537
+ Link:
538
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
539
+ rel="describedBy"
540
+ Vary:
541
+ - Accept-Encoding
542
+ Date:
543
+ - Tue, 07 Jul 2015 11:43:01 GMT
544
+ Connection:
545
+ - keep-alive
546
+ body:
547
+ encoding: ASCII-8BIT
548
+ string: '{"list_id":"e73f5910ca","categories":[],"total_items":0}'
549
+ http_version:
550
+ recorded_at: Tue, 07 Jul 2015 11:43:01 GMT
551
+ - request:
552
+ method: get
553
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
554
+ body:
555
+ encoding: US-ASCII
556
+ string: ''
557
+ headers:
558
+ Accept:
559
+ - "*/*; q=0.5, application/xml"
560
+ Accept-Encoding:
561
+ - gzip, deflate
562
+ Authorization:
563
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
564
+ User-Agent:
565
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
566
+ response:
567
+ status:
568
+ code: 200
569
+ message: OK
570
+ headers:
571
+ Server:
572
+ - nginx
573
+ Content-Type:
574
+ - application/json; charset=utf-8
575
+ Content-Length:
576
+ - '56'
577
+ X-Request-Id:
578
+ - bddd2737-6025-49da-a9a5-836ab03aad88
579
+ Link:
580
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
581
+ rel="describedBy"
582
+ Vary:
583
+ - Accept-Encoding
584
+ Date:
585
+ - Tue, 07 Jul 2015 11:43:01 GMT
586
+ Connection:
587
+ - keep-alive
588
+ body:
589
+ encoding: ASCII-8BIT
590
+ string: '{"list_id":"e73f5910ca","categories":[],"total_items":0}'
591
+ http_version:
592
+ recorded_at: Tue, 07 Jul 2015 11:43:01 GMT
593
+ - request:
594
+ method: post
595
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
596
+ body:
597
+ encoding: UTF-8
598
+ string: '{"title":"Sex","type":"radio"}'
599
+ headers:
600
+ Accept:
601
+ - "*/*; q=0.5, application/xml"
602
+ Accept-Encoding:
603
+ - gzip, deflate
604
+ Authorization:
605
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
606
+ User-Agent:
607
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
608
+ Content-Length:
609
+ - '30'
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
+ - '1204'
621
+ X-Request-Id:
622
+ - f47bf782-8209-48b5-ad59-fa150d0e61e9
623
+ Link:
624
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
625
+ rel="describedBy"
626
+ Vary:
627
+ - Accept-Encoding
628
+ Date:
629
+ - Tue, 07 Jul 2015 11:43:01 GMT
630
+ Connection:
631
+ - keep-alive
632
+ body:
633
+ encoding: ASCII-8BIT
634
+ string: '{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f349987e8f","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/f349987e8f","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/f349987e8f","method":"DELETE"},{"rel":"interests","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f349987e8f/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"}]}'
635
+ http_version:
636
+ recorded_at: Tue, 07 Jul 2015 11:43:01 GMT
637
+ recorded_with: VCR 2.9.3