mailchimp_api_v3 0.2.17 → 0.2.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +7 -0
  3. data/.travis.yml +9 -2
  4. data/Gemfile +5 -1
  5. data/Guardfile +1 -0
  6. data/README.md +1 -1
  7. data/Rakefile +9 -0
  8. data/lib/mailchimp_api_v3.rb +9 -0
  9. data/lib/mailchimp_api_v3/account.rb +1 -0
  10. data/lib/mailchimp_api_v3/client.rb +2 -7
  11. data/lib/mailchimp_api_v3/client/remote.rb +1 -0
  12. data/lib/mailchimp_api_v3/collection.rb +1 -0
  13. data/lib/mailchimp_api_v3/collection/paging.rb +1 -0
  14. data/lib/mailchimp_api_v3/exception.rb +1 -0
  15. data/lib/mailchimp_api_v3/instance.rb +1 -0
  16. data/lib/mailchimp_api_v3/interest.rb +1 -0
  17. data/lib/mailchimp_api_v3/interest_category.rb +1 -0
  18. data/lib/mailchimp_api_v3/list.rb +1 -0
  19. data/lib/mailchimp_api_v3/member.rb +1 -0
  20. data/lib/mailchimp_api_v3/version.rb +2 -1
  21. data/mailchimp_api_v3.gemspec +3 -2
  22. metadata +14 -73
  23. data/spec/fixtures/cassettes/account.yml +0 -96
  24. data/spec/fixtures/cassettes/client.yml +0 -301
  25. data/spec/fixtures/cassettes/exception.yml +0 -189
  26. data/spec/fixtures/cassettes/interest.yml +0 -431
  27. data/spec/fixtures/cassettes/interest_categories.yml +0 -660
  28. data/spec/fixtures/cassettes/interest_category.yml +0 -436
  29. data/spec/fixtures/cassettes/interests.yml +0 -799
  30. data/spec/fixtures/cassettes/list.yml +0 -246
  31. data/spec/fixtures/cassettes/lists.yml +0 -158
  32. data/spec/fixtures/cassettes/mailchimp.yml +0 -96
  33. data/spec/fixtures/cassettes/member.yml +0 -298
  34. data/spec/fixtures/cassettes/members.yml +0 -808
  35. data/spec/fixtures/cassettes/members_create_or_update.yml +0 -817
  36. data/spec/fixtures/cassettes/members_paging.yml +0 -264
  37. data/spec/fixtures/cassettes/members_with_interest_categories.yml +0 -902
  38. data/spec/mailchimp_api_v3/account_spec.rb +0 -15
  39. data/spec/mailchimp_api_v3/client_spec.rb +0 -77
  40. data/spec/mailchimp_api_v3/exception_spec.rb +0 -55
  41. data/spec/mailchimp_api_v3/interest_categories_spec.rb +0 -41
  42. data/spec/mailchimp_api_v3/interest_category_spec.rb +0 -25
  43. data/spec/mailchimp_api_v3/interest_spec.rb +0 -23
  44. data/spec/mailchimp_api_v3/interests_spec.rb +0 -43
  45. data/spec/mailchimp_api_v3/list_spec.rb +0 -65
  46. data/spec/mailchimp_api_v3/lists_spec.rb +0 -21
  47. data/spec/mailchimp_api_v3/member_spec.rb +0 -58
  48. data/spec/mailchimp_api_v3/members_spec.rb +0 -132
  49. data/spec/mailchimp_spec.rb +0 -14
  50. data/spec/spec_helper.rb +0 -24
  51. data/spec/support/api_key.rb +0 -12
  52. data/spec/support/vcr_setup.rb +0 -17
@@ -1,431 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.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
- User-Agent:
15
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
16
- Authorization:
17
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
18
- Host:
19
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- Server:
26
- - nginx
27
- Content-Type:
28
- - application/json; charset=utf-8
29
- Content-Length:
30
- - '4704'
31
- X-Request-Id:
32
- - 983b2406-3e6a-49e6-9d82-b055faa81340
33
- Link:
34
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
35
- Vary:
36
- - Accept-Encoding
37
- Date:
38
- - Thu, 04 Aug 2016 15:07:50 GMT
39
- Connection:
40
- - keep-alive
41
- Set-Cookie:
42
- - _AVESTA_ENVIRONMENT=prod; path=/
43
- body:
44
- encoding: ASCII-8BIT
45
- string: '{"lists":[{"id":"e73f5910ca","name":"My first list","contact":{"company":"InSite
46
- Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"","zip":"E14
47
- 7DQ","country":"GB","phone":"07917153555"},"permission_reminder":"Opt-in only","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
48
- 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-manage1.com/subscribe?u=1dbca289fd41b54838bcbb501&id=e73f5910ca","beamer_address":"us11-6692a2b3c3-bcd2a8b144@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":3,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":3,"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":"2016-08-04T14:56:19+00:00","last_unsub_date":""}},{"id":"71937ea346","name":"My
49
- second list","contact":{"company":"InSite Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"Select
50
- One","zip":"E14 7DQ","country":"GB","phone":"02075372125"},"permission_reminder":"Test
51
- list for Xenapto testing","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
52
- Sayers","from_email":"sam@insitearts.com","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2015-07-09T10:17:28+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/bsNMtP","subscribe_url_long":"http://insitearts.us11.list-manage.com/subscribe?u=1dbca289fd41b54838bcbb501&id=71937ea346","beamer_address":"us11-6692a2b3c3-e843e438a6@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":1,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":0,"unsubscribe_count_since_send":0,"cleaned_count_since_send":0,"campaign_count":0,"campaign_last_sent":"","merge_field_count":2,"avg_sub_rate":0,"avg_unsub_rate":0,"target_sub_rate":0,"open_rate":0,"click_rate":0,"last_sub_date":"2015-07-09T13:32:01+00:00","last_unsub_date":""}},{"id":"3f19e5d463","name":"My
53
- third list","contact":{"company":"InSite Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"Select
54
- One","zip":"E14 7DQ","country":"GB","phone":"02075372125"},"permission_reminder":"For
55
- xenapto testing","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
56
- Sayers","from_email":"sam@insitearts.com","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2015-07-12T16:45:11+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/bs3cI1","subscribe_url_long":"http://insitearts.us11.list-manage1.com/subscribe?u=1dbca289fd41b54838bcbb501&id=3f19e5d463","beamer_address":"us11-6692a2b3c3-8e485f6d99@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":4,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":0,"unsubscribe_count_since_send":0,"cleaned_count_since_send":0,"campaign_count":0,"campaign_last_sent":"","merge_field_count":2,"avg_sub_rate":0,"avg_unsub_rate":0,"target_sub_rate":0,"open_rate":0,"click_rate":0,"last_sub_date":"2015-07-14T11:28:57+00:00","last_unsub_date":""}},{"id":"a4598b5a35","name":"API
57
- test list","contact":{"company":"administrator@xenapto.com","address1":"300
58
- Burdett Road","address2":"London","city":"London","state":"","zip":"E14 7DQ","country":"GB","phone":""},"permission_reminder":"You
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:
61
- recorded_at: Thu, 04 Aug 2016 15:07:50 GMT
62
- - request:
63
- method: get
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
- body:
66
- encoding: US-ASCII
67
- string: ''
68
- headers:
69
- Accept:
70
- - "*/*; q=0.5, application/xml"
71
- Accept-Encoding:
72
- - gzip, deflate
73
- User-Agent:
74
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
75
- Authorization:
76
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
77
- Host:
78
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
79
- response:
80
- status:
81
- code: 200
82
- message: OK
83
- headers:
84
- Server:
85
- - nginx
86
- Content-Type:
87
- - application/json; charset=utf-8
88
- Content-Length:
89
- - '145'
90
- X-Request-Id:
91
- - c16344d4-86c9-408e-9660-0ef9c36092ce
92
- Link:
93
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
94
- rel="describedBy"
95
- Vary:
96
- - Accept-Encoding
97
- Date:
98
- - Thu, 04 Aug 2016 15:07:50 GMT
99
- Connection:
100
- - keep-alive
101
- Set-Cookie:
102
- - _AVESTA_ENVIRONMENT=prod; path=/
103
- body:
104
- encoding: ASCII-8BIT
105
- string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"}],"total_items":1}'
106
- http_version:
107
- recorded_at: Thu, 04 Aug 2016 15:07:50 GMT
108
- - request:
109
- method: post
110
- uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
111
- body:
112
- encoding: UTF-8
113
- string: '{"title":"Days","type":"checkboxes"}'
114
- headers:
115
- Accept:
116
- - "*/*; q=0.5, application/xml"
117
- Accept-Encoding:
118
- - gzip, deflate
119
- User-Agent:
120
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
121
- Authorization:
122
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
123
- Content-Length:
124
- - '36'
125
- Host:
126
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
127
- response:
128
- status:
129
- code: 200
130
- message: OK
131
- headers:
132
- Server:
133
- - nginx
134
- Content-Type:
135
- - application/json; charset=utf-8
136
- Content-Length:
137
- - '1399'
138
- X-Request-Id:
139
- - 7e3228b3-e0c7-4287-8821-2037cd28a1e4
140
- Link:
141
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
142
- rel="describedBy"
143
- Vary:
144
- - Accept-Encoding
145
- Date:
146
- - Thu, 04 Aug 2016 15:07:50 GMT
147
- Connection:
148
- - keep-alive
149
- Set-Cookie:
150
- - _AVESTA_ENVIRONMENT=prod; path=/
151
- body:
152
- encoding: ASCII-8BIT
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
- recorded_at: Thu, 04 Aug 2016 15:07:50 GMT
156
- - request:
157
- method: get
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
- body:
160
- encoding: US-ASCII
161
- string: ''
162
- headers:
163
- Accept:
164
- - "*/*; q=0.5, application/xml"
165
- Accept-Encoding:
166
- - gzip, deflate
167
- User-Agent:
168
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
169
- Authorization:
170
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
171
- Host:
172
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
173
- response:
174
- status:
175
- code: 200
176
- message: OK
177
- headers:
178
- Server:
179
- - nginx
180
- Content-Type:
181
- - application/json; charset=utf-8
182
- Content-Length:
183
- - '82'
184
- X-Request-Id:
185
- - dfd1af9b-0109-402b-bfce-fad0cd5a6a90
186
- Link:
187
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
188
- rel="describedBy"
189
- Vary:
190
- - Accept-Encoding
191
- Date:
192
- - Thu, 04 Aug 2016 15:07:50 GMT
193
- Connection:
194
- - keep-alive
195
- Set-Cookie:
196
- - _AVESTA_ENVIRONMENT=prod; path=/
197
- body:
198
- encoding: ASCII-8BIT
199
- string: '{"interests":[],"list_id":"e73f5910ca","category_id":"7b24b8a11a","total_items":0}'
200
- http_version:
201
- recorded_at: Thu, 04 Aug 2016 15:07:50 GMT
202
- - request:
203
- method: post
204
- uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests
205
- body:
206
- encoding: UTF-8
207
- string: '{"name":"Monday"}'
208
- headers:
209
- Accept:
210
- - "*/*; q=0.5, application/xml"
211
- Accept-Encoding:
212
- - gzip, deflate
213
- User-Agent:
214
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
215
- Authorization:
216
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
217
- Content-Length:
218
- - '17'
219
- Host:
220
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
221
- response:
222
- status:
223
- code: 200
224
- message: OK
225
- headers:
226
- Server:
227
- - nginx
228
- Content-Type:
229
- - application/json; charset=utf-8
230
- Content-Length:
231
- - '1151'
232
- X-Request-Id:
233
- - 1e3c4a84-0dd2-4041-8d25-f6769e122fc3
234
- Link:
235
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
236
- rel="describedBy"
237
- Vary:
238
- - Accept-Encoding
239
- Date:
240
- - Thu, 04 Aug 2016 15:07:51 GMT
241
- Connection:
242
- - keep-alive
243
- Set-Cookie:
244
- - _AVESTA_ENVIRONMENT=prod; path=/
245
- body:
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://<%= 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
- recorded_at: Thu, 04 Aug 2016 15:07:51 GMT
250
- - request:
251
- method: post
252
- uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests
253
- body:
254
- encoding: UTF-8
255
- string: '{"name":"Tuesday"}'
256
- headers:
257
- Accept:
258
- - "*/*; q=0.5, application/xml"
259
- Accept-Encoding:
260
- - gzip, deflate
261
- User-Agent:
262
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
263
- Authorization:
264
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
265
- Content-Length:
266
- - '18'
267
- Host:
268
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
269
- response:
270
- status:
271
- code: 200
272
- message: OK
273
- headers:
274
- Server:
275
- - nginx
276
- Content-Type:
277
- - application/json; charset=utf-8
278
- Content-Length:
279
- - '1152'
280
- X-Request-Id:
281
- - 51d5458b-78dd-4915-b599-e9b8de0ed2e8
282
- Link:
283
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
284
- rel="describedBy"
285
- Vary:
286
- - Accept-Encoding
287
- Date:
288
- - Thu, 04 Aug 2016 15:07:51 GMT
289
- Connection:
290
- - keep-alive
291
- Set-Cookie:
292
- - _AVESTA_ENVIRONMENT=prod; path=/
293
- body:
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://<%= 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
- recorded_at: Thu, 04 Aug 2016 15:07:51 GMT
298
- - request:
299
- method: get
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
- body:
302
- encoding: US-ASCII
303
- string: ''
304
- headers:
305
- Accept:
306
- - "*/*; q=0.5, application/xml"
307
- Accept-Encoding:
308
- - gzip, deflate
309
- User-Agent:
310
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
311
- Authorization:
312
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
313
- Host:
314
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
315
- response:
316
- status:
317
- code: 200
318
- message: OK
319
- headers:
320
- Server:
321
- - nginx
322
- Content-Type:
323
- - application/json; charset=utf-8
324
- Content-Length:
325
- - '336'
326
- X-Request-Id:
327
- - 19f723ee-edb7-4cad-a3dc-78d0969d87f5
328
- Link:
329
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
330
- rel="describedBy"
331
- Vary:
332
- - Accept-Encoding
333
- Date:
334
- - Thu, 04 Aug 2016 15:07:51 GMT
335
- Connection:
336
- - keep-alive
337
- Set-Cookie:
338
- - _AVESTA_ENVIRONMENT=prod; path=/
339
- body:
340
- encoding: ASCII-8BIT
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:
343
- recorded_at: Thu, 04 Aug 2016 15:07:51 GMT
344
- - request:
345
- method: delete
346
- uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests/adb041dc2b
347
- body:
348
- encoding: US-ASCII
349
- string: ''
350
- headers:
351
- Accept:
352
- - "*/*; q=0.5, application/xml"
353
- Accept-Encoding:
354
- - gzip, deflate
355
- User-Agent:
356
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
357
- Authorization:
358
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
359
- Host:
360
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
361
- response:
362
- status:
363
- code: 204
364
- message: No Content
365
- headers:
366
- Server:
367
- - nginx
368
- Content-Type:
369
- - application/json; charset=utf-8
370
- Content-Length:
371
- - '0'
372
- X-Request-Id:
373
- - 08919f1c-f0a1-4187-8f59-41c828564665
374
- Date:
375
- - Thu, 04 Aug 2016 15:07:51 GMT
376
- Connection:
377
- - keep-alive
378
- Set-Cookie:
379
- - _AVESTA_ENVIRONMENT=prod; path=/
380
- body:
381
- encoding: UTF-8
382
- string: ''
383
- http_version:
384
- recorded_at: Thu, 04 Aug 2016 15:07:51 GMT
385
- - request:
386
- method: get
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
- body:
389
- encoding: US-ASCII
390
- string: ''
391
- headers:
392
- Accept:
393
- - "*/*; q=0.5, application/xml"
394
- Accept-Encoding:
395
- - gzip, deflate
396
- User-Agent:
397
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
398
- Authorization:
399
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
400
- Host:
401
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
402
- response:
403
- status:
404
- code: 200
405
- message: OK
406
- headers:
407
- Server:
408
- - nginx
409
- Content-Type:
410
- - application/json; charset=utf-8
411
- Content-Length:
412
- - '208'
413
- X-Request-Id:
414
- - 37fec45c-837c-4a8c-af0a-316ef9f4f8f5
415
- Link:
416
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
417
- rel="describedBy"
418
- Vary:
419
- - Accept-Encoding
420
- Date:
421
- - Thu, 04 Aug 2016 15:07:52 GMT
422
- Connection:
423
- - keep-alive
424
- Set-Cookie:
425
- - _AVESTA_ENVIRONMENT=prod; path=/
426
- body:
427
- encoding: ASCII-8BIT
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:
430
- recorded_at: Thu, 04 Aug 2016 15:07:52 GMT
431
- recorded_with: VCR 3.0.3
@@ -1,660 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.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
- User-Agent:
15
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
16
- Authorization:
17
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
18
- Host:
19
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- Server:
26
- - nginx
27
- Content-Type:
28
- - application/json; charset=utf-8
29
- Content-Length:
30
- - '4701'
31
- X-Request-Id:
32
- - 5d4863ec-d8a3-4e46-90f8-76bbb8cca0c8
33
- Link:
34
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
35
- Vary:
36
- - Accept-Encoding
37
- Date:
38
- - Thu, 04 Aug 2016 15:01:38 GMT
39
- Connection:
40
- - keep-alive
41
- Set-Cookie:
42
- - _AVESTA_ENVIRONMENT=prod; path=/
43
- body:
44
- encoding: ASCII-8BIT
45
- string: '{"lists":[{"id":"e73f5910ca","name":"My first list","contact":{"company":"InSite
46
- Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"","zip":"E14
47
- 7DQ","country":"GB","phone":"07917153555"},"permission_reminder":"Opt-in only","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
48
- 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":3,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":3,"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":"2016-08-04T14:56:19+00:00","last_unsub_date":""}},{"id":"71937ea346","name":"My
49
- second list","contact":{"company":"InSite Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"Select
50
- One","zip":"E14 7DQ","country":"GB","phone":"02075372125"},"permission_reminder":"Test
51
- list for Xenapto testing","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
52
- Sayers","from_email":"sam@insitearts.com","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2015-07-09T10:17:28+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/bsNMtP","subscribe_url_long":"http://insitearts.us11.list-manage.com/subscribe?u=1dbca289fd41b54838bcbb501&id=71937ea346","beamer_address":"us11-6692a2b3c3-e843e438a6@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":1,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":0,"unsubscribe_count_since_send":0,"cleaned_count_since_send":0,"campaign_count":0,"campaign_last_sent":"","merge_field_count":2,"avg_sub_rate":0,"avg_unsub_rate":0,"target_sub_rate":0,"open_rate":0,"click_rate":0,"last_sub_date":"2015-07-09T13:32:01+00:00","last_unsub_date":""}},{"id":"3f19e5d463","name":"My
53
- third list","contact":{"company":"InSite Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"Select
54
- One","zip":"E14 7DQ","country":"GB","phone":"02075372125"},"permission_reminder":"For
55
- xenapto testing","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
56
- Sayers","from_email":"sam@insitearts.com","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2015-07-12T16:45:11+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/bs3cI1","subscribe_url_long":"http://insitearts.us11.list-manage.com/subscribe?u=1dbca289fd41b54838bcbb501&id=3f19e5d463","beamer_address":"us11-6692a2b3c3-8e485f6d99@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":4,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":0,"unsubscribe_count_since_send":0,"cleaned_count_since_send":0,"campaign_count":0,"campaign_last_sent":"","merge_field_count":2,"avg_sub_rate":0,"avg_unsub_rate":0,"target_sub_rate":0,"open_rate":0,"click_rate":0,"last_sub_date":"2015-07-14T11:28:57+00:00","last_unsub_date":""}},{"id":"a4598b5a35","name":"API
57
- test list","contact":{"company":"administrator@xenapto.com","address1":"300
58
- Burdett Road","address2":"London","city":"London","state":"","zip":"E14 7DQ","country":"GB","phone":""},"permission_reminder":"You
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:
61
- recorded_at: Thu, 04 Aug 2016 15:01:38 GMT
62
- - request:
63
- method: get
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
- body:
66
- encoding: US-ASCII
67
- string: ''
68
- headers:
69
- Accept:
70
- - "*/*; q=0.5, application/xml"
71
- Accept-Encoding:
72
- - gzip, deflate
73
- User-Agent:
74
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
75
- Authorization:
76
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
77
- Host:
78
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
79
- response:
80
- status:
81
- code: 200
82
- message: OK
83
- headers:
84
- Server:
85
- - nginx
86
- Content-Type:
87
- - application/json; charset=utf-8
88
- Content-Length:
89
- - '145'
90
- X-Request-Id:
91
- - 066e3dd5-2906-486f-8aa5-e370466fda3d
92
- Link:
93
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
94
- rel="describedBy"
95
- Vary:
96
- - Accept-Encoding
97
- Date:
98
- - Thu, 04 Aug 2016 15:01:39 GMT
99
- Connection:
100
- - keep-alive
101
- Set-Cookie:
102
- - _AVESTA_ENVIRONMENT=prod; path=/
103
- body:
104
- encoding: ASCII-8BIT
105
- string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"}],"total_items":1}'
106
- http_version:
107
- recorded_at: Thu, 04 Aug 2016 15:01:39 GMT
108
- - request:
109
- method: get
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
- body:
112
- encoding: US-ASCII
113
- string: ''
114
- headers:
115
- Accept:
116
- - "*/*; q=0.5, application/xml"
117
- Accept-Encoding:
118
- - gzip, deflate
119
- User-Agent:
120
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
121
- Authorization:
122
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
123
- Host:
124
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
125
- response:
126
- status:
127
- code: 200
128
- message: OK
129
- headers:
130
- Server:
131
- - nginx
132
- Content-Type:
133
- - application/json; charset=utf-8
134
- Content-Length:
135
- - '145'
136
- X-Request-Id:
137
- - 2e824e07-63a7-4709-a177-83e5443fc9fc
138
- Link:
139
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
140
- rel="describedBy"
141
- Vary:
142
- - Accept-Encoding
143
- Date:
144
- - Thu, 04 Aug 2016 15:01:39 GMT
145
- Connection:
146
- - keep-alive
147
- Set-Cookie:
148
- - _AVESTA_ENVIRONMENT=prod; path=/
149
- body:
150
- encoding: ASCII-8BIT
151
- string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"}],"total_items":1}'
152
- http_version:
153
- recorded_at: Thu, 04 Aug 2016 15:01:39 GMT
154
- - request:
155
- method: post
156
- uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
157
- body:
158
- encoding: UTF-8
159
- string: '{"title":"Days","type":"checkboxes"}'
160
- headers:
161
- Accept:
162
- - "*/*; q=0.5, application/xml"
163
- Accept-Encoding:
164
- - gzip, deflate
165
- User-Agent:
166
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
167
- Authorization:
168
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
169
- Content-Length:
170
- - '36'
171
- Host:
172
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
173
- response:
174
- status:
175
- code: 200
176
- message: OK
177
- headers:
178
- Server:
179
- - nginx
180
- Content-Type:
181
- - application/json; charset=utf-8
182
- Content-Length:
183
- - '1399'
184
- X-Request-Id:
185
- - 70042071-17f4-4936-a1a0-134a5ed32b6f
186
- Link:
187
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
188
- rel="describedBy"
189
- Vary:
190
- - Accept-Encoding
191
- Date:
192
- - Thu, 04 Aug 2016 15:01:39 GMT
193
- Connection:
194
- - keep-alive
195
- Set-Cookie:
196
- - _AVESTA_ENVIRONMENT=prod; path=/
197
- body:
198
- encoding: ASCII-8BIT
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
- recorded_at: Thu, 04 Aug 2016 15:01:39 GMT
202
- - request:
203
- method: get
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
- body:
206
- encoding: US-ASCII
207
- string: ''
208
- headers:
209
- Accept:
210
- - "*/*; q=0.5, application/xml"
211
- Accept-Encoding:
212
- - gzip, deflate
213
- User-Agent:
214
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
215
- Authorization:
216
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
217
- Host:
218
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
219
- response:
220
- status:
221
- code: 200
222
- message: OK
223
- headers:
224
- Server:
225
- - nginx
226
- Content-Type:
227
- - application/json; charset=utf-8
228
- Content-Length:
229
- - '241'
230
- X-Request-Id:
231
- - 48d99134-b0a8-4943-8426-f44ca1e0f892
232
- Link:
233
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
234
- rel="describedBy"
235
- Vary:
236
- - Accept-Encoding
237
- Date:
238
- - Thu, 04 Aug 2016 15:01:39 GMT
239
- Connection:
240
- - keep-alive
241
- Set-Cookie:
242
- - _AVESTA_ENVIRONMENT=prod; path=/
243
- body:
244
- encoding: ASCII-8BIT
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:
247
- recorded_at: Thu, 04 Aug 2016 15:01:39 GMT
248
- - request:
249
- method: post
250
- uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
251
- body:
252
- encoding: UTF-8
253
- string: '{"title":"Days","type":"checkboxes"}'
254
- headers:
255
- Accept:
256
- - "*/*; q=0.5, application/xml"
257
- Accept-Encoding:
258
- - gzip, deflate
259
- User-Agent:
260
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
261
- Authorization:
262
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
263
- Content-Length:
264
- - '36'
265
- Host:
266
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
267
- response:
268
- status:
269
- code: 400
270
- message: Bad Request
271
- headers:
272
- Server:
273
- - nginx
274
- Content-Type:
275
- - application/problem+json; charset=utf-8
276
- Content-Length:
277
- - '212'
278
- X-Request-Id:
279
- - 68fda992-803c-4fbf-8c43-7732398df1d9
280
- Link:
281
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
282
- Vary:
283
- - Accept-Encoding
284
- Date:
285
- - Thu, 04 Aug 2016 15:01:40 GMT
286
- Connection:
287
- - close
288
- Set-Cookie:
289
- - _AVESTA_ENVIRONMENT=prod; path=/
290
- body:
291
- encoding: ASCII-8BIT
292
- string: '{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Invalid
293
- Resource","status":400,"detail":"An interest category with the title ''Days''
294
- already exists.","instance":""}'
295
- http_version:
296
- recorded_at: Thu, 04 Aug 2016 15:01:40 GMT
297
- - request:
298
- method: get
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
- body:
301
- encoding: US-ASCII
302
- string: ''
303
- headers:
304
- Accept:
305
- - "*/*; q=0.5, application/xml"
306
- Accept-Encoding:
307
- - gzip, deflate
308
- User-Agent:
309
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
310
- Authorization:
311
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
312
- Host:
313
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
314
- response:
315
- status:
316
- code: 200
317
- message: OK
318
- headers:
319
- Server:
320
- - nginx
321
- Content-Type:
322
- - application/json; charset=utf-8
323
- Content-Length:
324
- - '241'
325
- X-Request-Id:
326
- - 8d739419-fbcc-4120-9394-78cf37ed336d
327
- Link:
328
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
329
- rel="describedBy"
330
- Vary:
331
- - Accept-Encoding
332
- Date:
333
- - Thu, 04 Aug 2016 15:01:40 GMT
334
- Connection:
335
- - keep-alive
336
- Set-Cookie:
337
- - _AVESTA_ENVIRONMENT=prod; path=/
338
- body:
339
- encoding: ASCII-8BIT
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:
342
- recorded_at: Thu, 04 Aug 2016 15:01:40 GMT
343
- - request:
344
- method: get
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
- body:
347
- encoding: US-ASCII
348
- string: ''
349
- headers:
350
- Accept:
351
- - "*/*; q=0.5, application/xml"
352
- Accept-Encoding:
353
- - gzip, deflate
354
- User-Agent:
355
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
356
- Authorization:
357
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
358
- Host:
359
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
360
- response:
361
- status:
362
- code: 200
363
- message: OK
364
- headers:
365
- Server:
366
- - nginx
367
- Content-Type:
368
- - application/json; charset=utf-8
369
- Content-Length:
370
- - '241'
371
- X-Request-Id:
372
- - 05c9b788-877a-45d9-a071-be214ad94c4e
373
- Link:
374
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
375
- rel="describedBy"
376
- Vary:
377
- - Accept-Encoding
378
- Date:
379
- - Thu, 04 Aug 2016 15:01:40 GMT
380
- Connection:
381
- - keep-alive
382
- Set-Cookie:
383
- - _AVESTA_ENVIRONMENT=prod; path=/
384
- body:
385
- encoding: ASCII-8BIT
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:
388
- recorded_at: Thu, 04 Aug 2016 15:01:40 GMT
389
- - request:
390
- method: get
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
- body:
393
- encoding: US-ASCII
394
- string: ''
395
- headers:
396
- Accept:
397
- - "*/*; q=0.5, application/xml"
398
- Accept-Encoding:
399
- - gzip, deflate
400
- User-Agent:
401
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
402
- Authorization:
403
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
404
- Host:
405
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
406
- response:
407
- status:
408
- code: 200
409
- message: OK
410
- headers:
411
- Server:
412
- - nginx
413
- Content-Type:
414
- - application/json; charset=utf-8
415
- Content-Length:
416
- - '241'
417
- X-Request-Id:
418
- - bb05ce3e-206e-44f2-b32e-f4f9d2e855fd
419
- Link:
420
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
421
- rel="describedBy"
422
- Vary:
423
- - Accept-Encoding
424
- Date:
425
- - Thu, 04 Aug 2016 15:01:40 GMT
426
- Connection:
427
- - keep-alive
428
- Set-Cookie:
429
- - _AVESTA_ENVIRONMENT=prod; path=/
430
- body:
431
- encoding: ASCII-8BIT
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:
434
- recorded_at: Thu, 04 Aug 2016 15:01:40 GMT
435
- - request:
436
- method: get
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
- body:
439
- encoding: US-ASCII
440
- string: ''
441
- headers:
442
- Accept:
443
- - "*/*; q=0.5, application/xml"
444
- Accept-Encoding:
445
- - gzip, deflate
446
- User-Agent:
447
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
448
- Authorization:
449
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
450
- Host:
451
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
452
- response:
453
- status:
454
- code: 200
455
- message: OK
456
- headers:
457
- Server:
458
- - nginx
459
- Content-Type:
460
- - application/json; charset=utf-8
461
- Content-Length:
462
- - '241'
463
- X-Request-Id:
464
- - 46a61c79-c3aa-4c76-924b-8cd277e9b9bb
465
- Link:
466
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
467
- rel="describedBy"
468
- Vary:
469
- - Accept-Encoding
470
- Date:
471
- - Thu, 04 Aug 2016 15:01:40 GMT
472
- Connection:
473
- - keep-alive
474
- Set-Cookie:
475
- - _AVESTA_ENVIRONMENT=prod; path=/
476
- body:
477
- encoding: ASCII-8BIT
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:
480
- recorded_at: Thu, 04 Aug 2016 15:01:40 GMT
481
- - request:
482
- method: get
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
- body:
485
- encoding: US-ASCII
486
- string: ''
487
- headers:
488
- Accept:
489
- - "*/*; q=0.5, application/xml"
490
- Accept-Encoding:
491
- - gzip, deflate
492
- User-Agent:
493
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
494
- Authorization:
495
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
496
- Host:
497
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
498
- response:
499
- status:
500
- code: 200
501
- message: OK
502
- headers:
503
- Server:
504
- - nginx
505
- Content-Type:
506
- - application/json; charset=utf-8
507
- Content-Length:
508
- - '241'
509
- X-Request-Id:
510
- - a2ec8489-f1fe-4f59-873d-e54d31968ef7
511
- Link:
512
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
513
- rel="describedBy"
514
- Vary:
515
- - Accept-Encoding
516
- Date:
517
- - Thu, 04 Aug 2016 15:01:40 GMT
518
- Connection:
519
- - keep-alive
520
- Set-Cookie:
521
- - _AVESTA_ENVIRONMENT=prod; path=/
522
- body:
523
- encoding: ASCII-8BIT
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:
526
- recorded_at: Thu, 04 Aug 2016 15:01:40 GMT
527
- - request:
528
- method: delete
529
- uri: https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f99652e179
530
- body:
531
- encoding: US-ASCII
532
- string: ''
533
- headers:
534
- Accept:
535
- - "*/*; q=0.5, application/xml"
536
- Accept-Encoding:
537
- - gzip, deflate
538
- User-Agent:
539
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
540
- Authorization:
541
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
542
- Host:
543
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
544
- response:
545
- status:
546
- code: 204
547
- message: No Content
548
- headers:
549
- Server:
550
- - nginx
551
- Content-Type:
552
- - application/json; charset=utf-8
553
- Content-Length:
554
- - '0'
555
- X-Request-Id:
556
- - ef4f60a2-ec5d-494d-9f38-8b9c9c000cb8
557
- Date:
558
- - Thu, 04 Aug 2016 15:01:41 GMT
559
- Connection:
560
- - keep-alive
561
- Set-Cookie:
562
- - _AVESTA_ENVIRONMENT=prod; path=/
563
- body:
564
- encoding: UTF-8
565
- string: ''
566
- http_version:
567
- recorded_at: Thu, 04 Aug 2016 15:01:41 GMT
568
- - request:
569
- method: get
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
- body:
572
- encoding: US-ASCII
573
- string: ''
574
- headers:
575
- Accept:
576
- - "*/*; q=0.5, application/xml"
577
- Accept-Encoding:
578
- - gzip, deflate
579
- User-Agent:
580
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
581
- Authorization:
582
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
583
- Host:
584
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
585
- response:
586
- status:
587
- code: 200
588
- message: OK
589
- headers:
590
- Server:
591
- - nginx
592
- Content-Type:
593
- - application/json; charset=utf-8
594
- Content-Length:
595
- - '145'
596
- X-Request-Id:
597
- - 56e8e16d-8283-4093-a04c-ed7ab5dbf994
598
- Link:
599
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
600
- rel="describedBy"
601
- Vary:
602
- - Accept-Encoding
603
- Date:
604
- - Thu, 04 Aug 2016 15:01:41 GMT
605
- Connection:
606
- - keep-alive
607
- Set-Cookie:
608
- - _AVESTA_ENVIRONMENT=prod; path=/
609
- body:
610
- encoding: ASCII-8BIT
611
- string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"}],"total_items":1}'
612
- http_version:
613
- recorded_at: Thu, 04 Aug 2016 15:01:41 GMT
614
- - request:
615
- method: get
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
- body:
618
- encoding: US-ASCII
619
- string: ''
620
- headers:
621
- Accept:
622
- - "*/*; q=0.5, application/xml"
623
- Accept-Encoding:
624
- - gzip, deflate
625
- User-Agent:
626
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
627
- Authorization:
628
- - apikey <%= ENV.fetch('MAILCHIMP_API_KEY', 'vcr_playback-us11') %>
629
- Host:
630
- - <%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com
631
- response:
632
- status:
633
- code: 200
634
- message: OK
635
- headers:
636
- Server:
637
- - nginx
638
- Content-Type:
639
- - application/json; charset=utf-8
640
- Content-Length:
641
- - '145'
642
- X-Request-Id:
643
- - cec13c44-620b-4b08-a728-667217318790
644
- Link:
645
- - <https://<%= ENV.fetch('MAILCHIMP_DC', 'us11') %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
646
- rel="describedBy"
647
- Vary:
648
- - Accept-Encoding
649
- Date:
650
- - Thu, 04 Aug 2016 15:01:41 GMT
651
- Connection:
652
- - keep-alive
653
- Set-Cookie:
654
- - _AVESTA_ENVIRONMENT=prod; path=/
655
- body:
656
- encoding: ASCII-8BIT
657
- string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"}],"total_items":1}'
658
- http_version:
659
- recorded_at: Thu, 04 Aug 2016 15:01:41 GMT
660
- recorded_with: VCR 3.0.3