mailchimp_api_v3 0.1.4 → 0.2.0

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/.coveralls.yml +4 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +1 -1
  5. data/Gemfile +1 -0
  6. data/Guardfile +1 -0
  7. data/README.md +1 -1
  8. data/circle.yml +7 -5
  9. data/lib/mailchimp_api_v3.rb +1 -0
  10. data/lib/mailchimp_api_v3/account.rb +1 -0
  11. data/lib/mailchimp_api_v3/client.rb +1 -0
  12. data/lib/mailchimp_api_v3/client/remote.rb +6 -2
  13. data/lib/mailchimp_api_v3/collection.rb +1 -0
  14. data/lib/mailchimp_api_v3/collection/paging.rb +1 -0
  15. data/lib/mailchimp_api_v3/exception.rb +1 -0
  16. data/lib/mailchimp_api_v3/instance.rb +1 -0
  17. data/lib/mailchimp_api_v3/interest.rb +2 -1
  18. data/lib/mailchimp_api_v3/interest_category.rb +4 -3
  19. data/lib/mailchimp_api_v3/list.rb +2 -1
  20. data/lib/mailchimp_api_v3/member.rb +2 -1
  21. data/lib/mailchimp_api_v3/version.rb +2 -1
  22. data/mailchimp_api_v3.gemspec +3 -1
  23. data/spec/fixtures/cassettes/account.yml +26 -22
  24. data/spec/fixtures/cassettes/client.yml +130 -96
  25. data/spec/fixtures/cassettes/exception.yml +60 -50
  26. data/spec/fixtures/cassettes/interest.yml +134 -87
  27. data/spec/fixtures/cassettes/interest_categories.yml +207 -184
  28. data/spec/fixtures/cassettes/interest_category.yml +137 -90
  29. data/spec/fixtures/cassettes/interests.yml +241 -165
  30. data/spec/fixtures/cassettes/list.yml +81 -227
  31. data/spec/fixtures/cassettes/lists.yml +27 -12
  32. data/spec/fixtures/cassettes/mailchimp.yml +26 -22
  33. data/spec/fixtures/cassettes/member.yml +106 -75
  34. data/spec/fixtures/cassettes/members.yml +255 -171
  35. data/spec/fixtures/cassettes/members_create_or_update.yml +269 -182
  36. data/spec/fixtures/cassettes/members_paging.yml +102 -115
  37. data/spec/mailchimp_api_v3/account_spec.rb +1 -3
  38. data/spec/mailchimp_api_v3/client_spec.rb +1 -3
  39. data/spec/mailchimp_api_v3/exception_spec.rb +2 -4
  40. data/spec/mailchimp_api_v3/interest_categories_spec.rb +1 -3
  41. data/spec/mailchimp_api_v3/interest_category_spec.rb +1 -3
  42. data/spec/mailchimp_api_v3/interest_spec.rb +1 -3
  43. data/spec/mailchimp_api_v3/interests_spec.rb +1 -3
  44. data/spec/mailchimp_api_v3/list_spec.rb +2 -4
  45. data/spec/mailchimp_api_v3/lists_spec.rb +2 -4
  46. data/spec/mailchimp_api_v3/member_spec.rb +1 -3
  47. data/spec/mailchimp_api_v3/members_spec.rb +5 -7
  48. data/spec/mailchimp_spec.rb +1 -3
  49. data/spec/spec_helper.rb +3 -8
  50. data/spec/support/api_key.rb +1 -0
  51. data/spec/support/vcr_setup.rb +3 -1
  52. metadata +19 -4
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists?count=500&exclude_fields=lists._links,_links&offset=0
5
+ uri: https://us11.api.mailchimp.com/3.0/lists?count=500&exclude_fields=lists._links,_links&offset=0
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -11,10 +11,12 @@ http_interactions:
11
11
  - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
- Authorization:
15
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
16
14
  User-Agent:
17
15
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
16
+ Authorization:
17
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
18
+ Host:
19
+ - us11.api.mailchimp.com
18
20
  response:
19
21
  status:
20
22
  code: 200
@@ -25,28 +27,38 @@ http_interactions:
25
27
  Content-Type:
26
28
  - application/json; charset=utf-8
27
29
  Content-Length:
28
- - '1173'
30
+ - '3520'
29
31
  X-Request-Id:
30
- - 02f8c91d-a209-4474-b75f-1d4cfa4412fd
32
+ - 7e719a98-a038-41e0-83ec-71804ee0db1f
31
33
  Link:
32
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
34
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
33
35
  Vary:
34
36
  - Accept-Encoding
35
37
  Date:
36
- - Tue, 07 Jul 2015 11:53:46 GMT
38
+ - Thu, 04 Aug 2016 14:31:10 GMT
37
39
  Connection:
38
40
  - keep-alive
41
+ Set-Cookie:
42
+ - _AVESTA_ENVIRONMENT=prod; path=/
39
43
  body:
40
44
  encoding: ASCII-8BIT
41
45
  string: '{"lists":[{"id":"e73f5910ca","name":"My first list","contact":{"company":"InSite
42
46
  Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"","zip":"E14
43
- 7DQ","country":"262","phone":"07917153555"},"permission_reminder":"Opt-in
44
- only","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam Sayers","from_email":"sam@sayers.cc","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2015-06-27T14:49:18+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/brGTO9","subscribe_url_long":"http://insitearts.us11.list-manage.com/subscribe?u=1dbca289fd41b54838bcbb501&id=e73f5910ca","beamer_address":"us11-6692a2b3c3-bcd2a8b144@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":2,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":2,"unsubscribe_count_since_send":0,"cleaned_count_since_send":0,"campaign_count":0,"campaign_last_sent":"","merge_field_count":2,"avg_sub_rate":0,"avg_unsub_rate":0,"target_sub_rate":0,"open_rate":0,"click_rate":0,"last_sub_date":"2015-06-27T14:50:39+00:00","last_unsub_date":""}}],"total_items":1}'
45
- http_version:
46
- recorded_at: Tue, 07 Jul 2015 11:53:46 GMT
47
+ 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-manage2.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":"2015-07-11T12:41:38+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":""}}],"total_items":3}'
57
+ http_version:
58
+ recorded_at: Thu, 04 Aug 2016 14:31:10 GMT
47
59
  - request:
48
60
  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
61
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
50
62
  body:
51
63
  encoding: US-ASCII
52
64
  string: ''
@@ -55,10 +67,12 @@ http_interactions:
55
67
  - "*/*; q=0.5, application/xml"
56
68
  Accept-Encoding:
57
69
  - gzip, deflate
58
- Authorization:
59
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
60
70
  User-Agent:
61
71
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
72
+ Authorization:
73
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
74
+ Host:
75
+ - us11.api.mailchimp.com
62
76
  response:
63
77
  status:
64
78
  code: 200
@@ -71,24 +85,26 @@ http_interactions:
71
85
  Content-Length:
72
86
  - '145'
73
87
  X-Request-Id:
74
- - d30eddeb-16da-42a8-bf08-8013bc9952c2
88
+ - 81dfcadf-c979-4ecb-b741-cbbc8d02da80
75
89
  Link:
76
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
90
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
77
91
  rel="describedBy"
78
92
  Vary:
79
93
  - Accept-Encoding
80
94
  Date:
81
- - Tue, 07 Jul 2015 11:53:46 GMT
95
+ - Thu, 04 Aug 2016 14:31:10 GMT
82
96
  Connection:
83
97
  - keep-alive
98
+ Set-Cookie:
99
+ - _AVESTA_ENVIRONMENT=prod; path=/
84
100
  body:
85
101
  encoding: ASCII-8BIT
86
102
  string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"}],"total_items":1}'
87
- http_version:
88
- recorded_at: Tue, 07 Jul 2015 11:53:46 GMT
103
+ http_version:
104
+ recorded_at: Thu, 04 Aug 2016 14:31:10 GMT
89
105
  - request:
90
106
  method: post
91
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
107
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
92
108
  body:
93
109
  encoding: UTF-8
94
110
  string: '{"title":"Days","type":"checkboxes"}'
@@ -97,12 +113,14 @@ http_interactions:
97
113
  - "*/*; q=0.5, application/xml"
98
114
  Accept-Encoding:
99
115
  - gzip, deflate
100
- Authorization:
101
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
102
116
  User-Agent:
103
117
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
118
+ Authorization:
119
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
104
120
  Content-Length:
105
121
  - '36'
122
+ Host:
123
+ - us11.api.mailchimp.com
106
124
  response:
107
125
  status:
108
126
  code: 200
@@ -113,26 +131,28 @@ http_interactions:
113
131
  Content-Type:
114
132
  - application/json; charset=utf-8
115
133
  Content-Length:
116
- - '1210'
134
+ - '1399'
117
135
  X-Request-Id:
118
- - 06256e1f-65b2-424e-b867-6123c7a96a86
136
+ - 1e976a83-2bdc-4854-b940-bdb26b1ba40e
119
137
  Link:
120
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
138
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
121
139
  rel="describedBy"
122
140
  Vary:
123
141
  - Accept-Encoding
124
142
  Date:
125
- - Tue, 07 Jul 2015 11:53:46 GMT
143
+ - Thu, 04 Aug 2016 14:31:11 GMT
126
144
  Connection:
127
145
  - keep-alive
146
+ Set-Cookie:
147
+ - _AVESTA_ENVIRONMENT=prod; path=/
128
148
  body:
129
149
  encoding: ASCII-8BIT
130
- string: '{"list_id":"e73f5910ca","id":"e82a100d19","title":"Days","display_order":1,"type":"checkboxes","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19","method":"PATCH","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19","method":"DELETE"},{"rel":"interests","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"}]}'
131
- http_version:
132
- recorded_at: Tue, 07 Jul 2015 11:53:46 GMT
150
+ string: '{"list_id":"e73f5910ca","id":"4df12c7b69","title":"Days","display_order":1,"type":"checkboxes","_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"parent","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/InterestCategories.json"},{"rel":"update","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69","method":"PATCH","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json","schema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"delete","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69","method":"DELETE"},{"rel":"interests","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"}]}'
151
+ http_version:
152
+ recorded_at: Thu, 04 Aug 2016 14:31:11 GMT
133
153
  - request:
134
154
  method: get
135
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
155
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
136
156
  body:
137
157
  encoding: US-ASCII
138
158
  string: ''
@@ -141,10 +161,12 @@ http_interactions:
141
161
  - "*/*; q=0.5, application/xml"
142
162
  Accept-Encoding:
143
163
  - gzip, deflate
144
- Authorization:
145
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
146
164
  User-Agent:
147
165
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
166
+ Authorization:
167
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
168
+ Host:
169
+ - us11.api.mailchimp.com
148
170
  response:
149
171
  status:
150
172
  code: 200
@@ -157,24 +179,26 @@ http_interactions:
157
179
  Content-Length:
158
180
  - '82'
159
181
  X-Request-Id:
160
- - 46928173-05d6-4710-badc-59c7b63fb5d6
182
+ - cdeecd23-92d3-448e-a5b3-f6b3b9a2394a
161
183
  Link:
162
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
184
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
163
185
  rel="describedBy"
164
186
  Vary:
165
187
  - Accept-Encoding
166
188
  Date:
167
- - Tue, 07 Jul 2015 11:53:46 GMT
189
+ - Thu, 04 Aug 2016 14:31:11 GMT
168
190
  Connection:
169
191
  - keep-alive
192
+ Set-Cookie:
193
+ - _AVESTA_ENVIRONMENT=prod; path=/
170
194
  body:
171
195
  encoding: ASCII-8BIT
172
- string: '{"interests":[],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":0}'
173
- http_version:
174
- recorded_at: Tue, 07 Jul 2015 11:53:46 GMT
196
+ string: '{"interests":[],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":0}'
197
+ http_version:
198
+ recorded_at: Thu, 04 Aug 2016 14:31:11 GMT
175
199
  - request:
176
200
  method: get
177
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
201
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
178
202
  body:
179
203
  encoding: US-ASCII
180
204
  string: ''
@@ -183,10 +207,12 @@ http_interactions:
183
207
  - "*/*; q=0.5, application/xml"
184
208
  Accept-Encoding:
185
209
  - gzip, deflate
186
- Authorization:
187
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
188
210
  User-Agent:
189
211
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
212
+ Authorization:
213
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
214
+ Host:
215
+ - us11.api.mailchimp.com
190
216
  response:
191
217
  status:
192
218
  code: 200
@@ -199,24 +225,26 @@ http_interactions:
199
225
  Content-Length:
200
226
  - '82'
201
227
  X-Request-Id:
202
- - 578e0a06-81aa-4c8b-8032-27214c26066b
228
+ - d6edeeb0-0259-46a3-9618-90f82394f118
203
229
  Link:
204
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
230
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
205
231
  rel="describedBy"
206
232
  Vary:
207
233
  - Accept-Encoding
208
234
  Date:
209
- - Tue, 07 Jul 2015 11:53:47 GMT
235
+ - Thu, 04 Aug 2016 14:31:19 GMT
210
236
  Connection:
211
237
  - keep-alive
238
+ Set-Cookie:
239
+ - _AVESTA_ENVIRONMENT=prod; path=/
212
240
  body:
213
241
  encoding: ASCII-8BIT
214
- string: '{"interests":[],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":0}'
215
- http_version:
216
- recorded_at: Tue, 07 Jul 2015 11:53:47 GMT
242
+ string: '{"interests":[],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":0}'
243
+ http_version:
244
+ recorded_at: Thu, 04 Aug 2016 14:31:19 GMT
217
245
  - request:
218
246
  method: post
219
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests
247
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests
220
248
  body:
221
249
  encoding: UTF-8
222
250
  string: '{"name":"Monday"}'
@@ -225,12 +253,14 @@ http_interactions:
225
253
  - "*/*; q=0.5, application/xml"
226
254
  Accept-Encoding:
227
255
  - gzip, deflate
228
- Authorization:
229
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
230
256
  User-Agent:
231
257
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
258
+ Authorization:
259
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
232
260
  Content-Length:
233
261
  - '17'
262
+ Host:
263
+ - us11.api.mailchimp.com
234
264
  response:
235
265
  status:
236
266
  code: 200
@@ -241,26 +271,28 @@ http_interactions:
241
271
  Content-Type:
242
272
  - application/json; charset=utf-8
243
273
  Content-Length:
244
- - '1038'
274
+ - '1151'
245
275
  X-Request-Id:
246
- - 5a21a7cd-47e6-45b6-840b-0ae07d9887f0
276
+ - dff34019-9112-4555-9016-0e5d73e56a57
247
277
  Link:
248
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
278
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
249
279
  rel="describedBy"
250
280
  Vary:
251
281
  - Accept-Encoding
252
282
  Date:
253
- - Tue, 07 Jul 2015 11:53:47 GMT
283
+ - Thu, 04 Aug 2016 14:31:20 GMT
254
284
  Connection:
255
285
  - keep-alive
286
+ Set-Cookie:
287
+ - _AVESTA_ENVIRONMENT=prod; path=/
256
288
  body:
257
289
  encoding: ASCII-8BIT
258
- string: '{"category_id":"e82a100d19","list_id":"e73f5910ca","id":"d640efbb50","name":"Monday","display_order":1,"_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests/d640efbb50","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests/d640efbb50","method":"PATCH","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests/d640efbb50","method":"DELETE"}]}'
259
- http_version:
260
- recorded_at: Tue, 07 Jul 2015 11:53:47 GMT
290
+ string: '{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"a7bd8bba24","name":"Monday","subscriber_count":"0","display_order":1,"_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/a7bd8bba24","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/a7bd8bba24","method":"PATCH","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/a7bd8bba24","method":"DELETE"}]}'
291
+ http_version:
292
+ recorded_at: Thu, 04 Aug 2016 14:31:20 GMT
261
293
  - request:
262
294
  method: get
263
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
295
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
264
296
  body:
265
297
  encoding: US-ASCII
266
298
  string: ''
@@ -269,10 +301,12 @@ http_interactions:
269
301
  - "*/*; q=0.5, application/xml"
270
302
  Accept-Encoding:
271
303
  - gzip, deflate
272
- Authorization:
273
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
274
304
  User-Agent:
275
305
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
306
+ Authorization:
307
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
308
+ Host:
309
+ - us11.api.mailchimp.com
276
310
  response:
277
311
  status:
278
312
  code: 200
@@ -283,26 +317,28 @@ http_interactions:
283
317
  Content-Type:
284
318
  - application/json; charset=utf-8
285
319
  Content-Length:
286
- - '185'
320
+ - '208'
287
321
  X-Request-Id:
288
- - d550f062-4e6f-449b-8924-6d193de25838
322
+ - 8eb85bbd-50ab-4558-8548-78ab8ceaedf8
289
323
  Link:
290
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
324
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
291
325
  rel="describedBy"
292
326
  Vary:
293
327
  - Accept-Encoding
294
328
  Date:
295
- - Tue, 07 Jul 2015 11:53:47 GMT
329
+ - Thu, 04 Aug 2016 14:31:20 GMT
296
330
  Connection:
297
331
  - keep-alive
332
+ Set-Cookie:
333
+ - _AVESTA_ENVIRONMENT=prod; path=/
298
334
  body:
299
335
  encoding: ASCII-8BIT
300
- string: '{"interests":[{"category_id":"e82a100d19","list_id":"e73f5910ca","id":"d640efbb50","name":"Monday","display_order":1}],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":1}'
301
- http_version:
302
- recorded_at: Tue, 07 Jul 2015 11:53:47 GMT
336
+ string: '{"interests":[{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"a7bd8bba24","name":"Monday","subscriber_count":"0","display_order":1}],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":1}'
337
+ http_version:
338
+ recorded_at: Thu, 04 Aug 2016 14:31:20 GMT
303
339
  - request:
304
340
  method: post
305
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests
341
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests
306
342
  body:
307
343
  encoding: UTF-8
308
344
  string: '{"name":"Monday"}'
@@ -311,12 +347,14 @@ http_interactions:
311
347
  - "*/*; q=0.5, application/xml"
312
348
  Accept-Encoding:
313
349
  - gzip, deflate
314
- Authorization:
315
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
316
350
  User-Agent:
317
351
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
352
+ Authorization:
353
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
318
354
  Content-Length:
319
355
  - '17'
356
+ Host:
357
+ - us11.api.mailchimp.com
320
358
  response:
321
359
  status:
322
360
  code: 400
@@ -327,27 +365,29 @@ http_interactions:
327
365
  Content-Type:
328
366
  - application/problem+json; charset=utf-8
329
367
  Content-Length:
330
- - '232'
368
+ - '214'
331
369
  X-Request-Id:
332
- - 9b4bdde9-7a18-432b-8cad-116f613493c2
370
+ - f30fbe11-958f-4646-b29b-5147ca2a4e16
333
371
  Link:
334
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
372
+ - <https://us11.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
335
373
  Vary:
336
374
  - Accept-Encoding
337
375
  Date:
338
- - Tue, 07 Jul 2015 11:53:48 GMT
376
+ - Thu, 04 Aug 2016 14:31:21 GMT
339
377
  Connection:
340
378
  - close
379
+ Set-Cookie:
380
+ - _AVESTA_ENVIRONMENT=prod; path=/
341
381
  body:
342
382
  encoding: ASCII-8BIT
343
- string: '{"type":"http://kb.mailchimp.com/api/error-docs/400-invalid-resource","title":"Invalid
383
+ string: '{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Invalid
344
384
  Resource","status":400,"detail":"Cannot add \"Monday\" because it already
345
- exists on the list.","instance":"9b4bdde9-7a18-432b-8cad-116f613493c2"}'
346
- http_version:
347
- recorded_at: Tue, 07 Jul 2015 11:53:48 GMT
385
+ exists on the list.","instance":""}'
386
+ http_version:
387
+ recorded_at: Thu, 04 Aug 2016 14:31:21 GMT
348
388
  - request:
349
389
  method: get
350
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
390
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
351
391
  body:
352
392
  encoding: US-ASCII
353
393
  string: ''
@@ -356,10 +396,12 @@ http_interactions:
356
396
  - "*/*; q=0.5, application/xml"
357
397
  Accept-Encoding:
358
398
  - gzip, deflate
359
- Authorization:
360
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
361
399
  User-Agent:
362
400
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
401
+ Authorization:
402
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
403
+ Host:
404
+ - us11.api.mailchimp.com
363
405
  response:
364
406
  status:
365
407
  code: 200
@@ -370,26 +412,28 @@ http_interactions:
370
412
  Content-Type:
371
413
  - application/json; charset=utf-8
372
414
  Content-Length:
373
- - '185'
415
+ - '208'
374
416
  X-Request-Id:
375
- - 73cc20a3-a342-403e-847d-4ff6d6b846aa
417
+ - b2d4449c-28ac-44e1-adab-a72d5fa4a206
376
418
  Link:
377
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
419
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
378
420
  rel="describedBy"
379
421
  Vary:
380
422
  - Accept-Encoding
381
423
  Date:
382
- - Tue, 07 Jul 2015 11:53:48 GMT
424
+ - Thu, 04 Aug 2016 14:31:21 GMT
383
425
  Connection:
384
426
  - keep-alive
427
+ Set-Cookie:
428
+ - _AVESTA_ENVIRONMENT=prod; path=/
385
429
  body:
386
430
  encoding: ASCII-8BIT
387
- string: '{"interests":[{"category_id":"e82a100d19","list_id":"e73f5910ca","id":"d640efbb50","name":"Monday","display_order":1}],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":1}'
388
- http_version:
389
- recorded_at: Tue, 07 Jul 2015 11:53:48 GMT
431
+ string: '{"interests":[{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"a7bd8bba24","name":"Monday","subscriber_count":"0","display_order":1}],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":1}'
432
+ http_version:
433
+ recorded_at: Thu, 04 Aug 2016 14:31:21 GMT
390
434
  - request:
391
435
  method: get
392
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
436
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
393
437
  body:
394
438
  encoding: US-ASCII
395
439
  string: ''
@@ -398,10 +442,12 @@ http_interactions:
398
442
  - "*/*; q=0.5, application/xml"
399
443
  Accept-Encoding:
400
444
  - gzip, deflate
401
- Authorization:
402
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
403
445
  User-Agent:
404
446
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
447
+ Authorization:
448
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
449
+ Host:
450
+ - us11.api.mailchimp.com
405
451
  response:
406
452
  status:
407
453
  code: 200
@@ -412,26 +458,28 @@ http_interactions:
412
458
  Content-Type:
413
459
  - application/json; charset=utf-8
414
460
  Content-Length:
415
- - '185'
461
+ - '208'
416
462
  X-Request-Id:
417
- - 56a76eb1-8065-4216-8eb8-cfa2a19af691
463
+ - 3fd0e1e4-534b-4296-8e96-c79885833c2e
418
464
  Link:
419
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
465
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
420
466
  rel="describedBy"
421
467
  Vary:
422
468
  - Accept-Encoding
423
469
  Date:
424
- - Tue, 07 Jul 2015 11:53:48 GMT
470
+ - Thu, 04 Aug 2016 14:31:21 GMT
425
471
  Connection:
426
472
  - keep-alive
473
+ Set-Cookie:
474
+ - _AVESTA_ENVIRONMENT=prod; path=/
427
475
  body:
428
476
  encoding: ASCII-8BIT
429
- string: '{"interests":[{"category_id":"e82a100d19","list_id":"e73f5910ca","id":"d640efbb50","name":"Monday","display_order":1}],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":1}'
430
- http_version:
431
- recorded_at: Tue, 07 Jul 2015 11:53:48 GMT
477
+ string: '{"interests":[{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"a7bd8bba24","name":"Monday","subscriber_count":"0","display_order":1}],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":1}'
478
+ http_version:
479
+ recorded_at: Thu, 04 Aug 2016 14:31:21 GMT
432
480
  - request:
433
481
  method: get
434
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
482
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
435
483
  body:
436
484
  encoding: US-ASCII
437
485
  string: ''
@@ -440,10 +488,12 @@ http_interactions:
440
488
  - "*/*; q=0.5, application/xml"
441
489
  Accept-Encoding:
442
490
  - gzip, deflate
443
- Authorization:
444
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
445
491
  User-Agent:
446
492
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
493
+ Authorization:
494
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
495
+ Host:
496
+ - us11.api.mailchimp.com
447
497
  response:
448
498
  status:
449
499
  code: 200
@@ -454,26 +504,28 @@ http_interactions:
454
504
  Content-Type:
455
505
  - application/json; charset=utf-8
456
506
  Content-Length:
457
- - '185'
507
+ - '208'
458
508
  X-Request-Id:
459
- - fab81ede-98c9-40aa-ba61-7e817e33d682
509
+ - 02bafd6d-e7a0-4789-98ed-157f58cd4b78
460
510
  Link:
461
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
511
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
462
512
  rel="describedBy"
463
513
  Vary:
464
514
  - Accept-Encoding
465
515
  Date:
466
- - Tue, 07 Jul 2015 11:53:48 GMT
516
+ - Thu, 04 Aug 2016 14:31:21 GMT
467
517
  Connection:
468
518
  - keep-alive
519
+ Set-Cookie:
520
+ - _AVESTA_ENVIRONMENT=prod; path=/
469
521
  body:
470
522
  encoding: ASCII-8BIT
471
- string: '{"interests":[{"category_id":"e82a100d19","list_id":"e73f5910ca","id":"d640efbb50","name":"Monday","display_order":1}],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":1}'
472
- http_version:
473
- recorded_at: Tue, 07 Jul 2015 11:53:48 GMT
523
+ string: '{"interests":[{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"a7bd8bba24","name":"Monday","subscriber_count":"0","display_order":1}],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":1}'
524
+ http_version:
525
+ recorded_at: Thu, 04 Aug 2016 14:31:21 GMT
474
526
  - request:
475
527
  method: get
476
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
528
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
477
529
  body:
478
530
  encoding: US-ASCII
479
531
  string: ''
@@ -482,10 +534,12 @@ http_interactions:
482
534
  - "*/*; q=0.5, application/xml"
483
535
  Accept-Encoding:
484
536
  - gzip, deflate
485
- Authorization:
486
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
487
537
  User-Agent:
488
538
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
539
+ Authorization:
540
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
541
+ Host:
542
+ - us11.api.mailchimp.com
489
543
  response:
490
544
  status:
491
545
  code: 200
@@ -496,26 +550,28 @@ http_interactions:
496
550
  Content-Type:
497
551
  - application/json; charset=utf-8
498
552
  Content-Length:
499
- - '185'
553
+ - '208'
500
554
  X-Request-Id:
501
- - b04f80ee-0531-4452-8c09-1b63e646f5f6
555
+ - 7e808892-fdd4-4a62-9dad-f4479834ea53
502
556
  Link:
503
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
557
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
504
558
  rel="describedBy"
505
559
  Vary:
506
560
  - Accept-Encoding
507
561
  Date:
508
- - Tue, 07 Jul 2015 11:53:49 GMT
562
+ - Thu, 04 Aug 2016 14:31:22 GMT
509
563
  Connection:
510
564
  - keep-alive
565
+ Set-Cookie:
566
+ - _AVESTA_ENVIRONMENT=prod; path=/
511
567
  body:
512
568
  encoding: ASCII-8BIT
513
- string: '{"interests":[{"category_id":"e82a100d19","list_id":"e73f5910ca","id":"d640efbb50","name":"Monday","display_order":1}],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":1}'
514
- http_version:
515
- recorded_at: Tue, 07 Jul 2015 11:53:49 GMT
569
+ string: '{"interests":[{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"a7bd8bba24","name":"Monday","subscriber_count":"0","display_order":1}],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":1}'
570
+ http_version:
571
+ recorded_at: Thu, 04 Aug 2016 14:31:22 GMT
516
572
  - request:
517
573
  method: get
518
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
574
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
519
575
  body:
520
576
  encoding: US-ASCII
521
577
  string: ''
@@ -524,10 +580,12 @@ http_interactions:
524
580
  - "*/*; q=0.5, application/xml"
525
581
  Accept-Encoding:
526
582
  - gzip, deflate
527
- Authorization:
528
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
529
583
  User-Agent:
530
584
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
585
+ Authorization:
586
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
587
+ Host:
588
+ - us11.api.mailchimp.com
531
589
  response:
532
590
  status:
533
591
  code: 200
@@ -538,26 +596,28 @@ http_interactions:
538
596
  Content-Type:
539
597
  - application/json; charset=utf-8
540
598
  Content-Length:
541
- - '185'
599
+ - '208'
542
600
  X-Request-Id:
543
- - e6c7bc15-275f-4c35-845a-a406e754c29f
601
+ - f49a8513-b59b-476e-8a50-ad259ef2b3bf
544
602
  Link:
545
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
603
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
546
604
  rel="describedBy"
547
605
  Vary:
548
606
  - Accept-Encoding
549
607
  Date:
550
- - Tue, 07 Jul 2015 11:53:49 GMT
608
+ - Thu, 04 Aug 2016 14:31:22 GMT
551
609
  Connection:
552
610
  - keep-alive
611
+ Set-Cookie:
612
+ - _AVESTA_ENVIRONMENT=prod; path=/
553
613
  body:
554
614
  encoding: ASCII-8BIT
555
- string: '{"interests":[{"category_id":"e82a100d19","list_id":"e73f5910ca","id":"d640efbb50","name":"Monday","display_order":1}],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":1}'
556
- http_version:
557
- recorded_at: Tue, 07 Jul 2015 11:53:49 GMT
615
+ string: '{"interests":[{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"a7bd8bba24","name":"Monday","subscriber_count":"0","display_order":1}],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":1}'
616
+ http_version:
617
+ recorded_at: Thu, 04 Aug 2016 14:31:22 GMT
558
618
  - request:
559
619
  method: delete
560
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests/d640efbb50
620
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/a7bd8bba24
561
621
  body:
562
622
  encoding: US-ASCII
563
623
  string: ''
@@ -566,10 +626,12 @@ http_interactions:
566
626
  - "*/*; q=0.5, application/xml"
567
627
  Accept-Encoding:
568
628
  - gzip, deflate
569
- Authorization:
570
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
571
629
  User-Agent:
572
630
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
631
+ Authorization:
632
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
633
+ Host:
634
+ - us11.api.mailchimp.com
573
635
  response:
574
636
  status:
575
637
  code: 204
@@ -580,21 +642,23 @@ http_interactions:
580
642
  Content-Type:
581
643
  - application/json; charset=utf-8
582
644
  Content-Length:
583
- - '2'
645
+ - '0'
584
646
  X-Request-Id:
585
- - 8130f0fd-1da7-41e7-8571-37cb2bf291f8
647
+ - b5fcc498-9f3b-463a-a1c9-d7583b29cb17
586
648
  Date:
587
- - Tue, 07 Jul 2015 11:53:49 GMT
649
+ - Thu, 04 Aug 2016 14:31:22 GMT
588
650
  Connection:
589
651
  - keep-alive
652
+ Set-Cookie:
653
+ - _AVESTA_ENVIRONMENT=prod; path=/
590
654
  body:
591
655
  encoding: UTF-8
592
656
  string: ''
593
- http_version:
594
- recorded_at: Tue, 07 Jul 2015 11:53:49 GMT
657
+ http_version:
658
+ recorded_at: Thu, 04 Aug 2016 14:31:22 GMT
595
659
  - request:
596
660
  method: get
597
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
661
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
598
662
  body:
599
663
  encoding: US-ASCII
600
664
  string: ''
@@ -603,10 +667,12 @@ http_interactions:
603
667
  - "*/*; q=0.5, application/xml"
604
668
  Accept-Encoding:
605
669
  - gzip, deflate
606
- Authorization:
607
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
608
670
  User-Agent:
609
671
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
672
+ Authorization:
673
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
674
+ Host:
675
+ - us11.api.mailchimp.com
610
676
  response:
611
677
  status:
612
678
  code: 200
@@ -619,24 +685,26 @@ http_interactions:
619
685
  Content-Length:
620
686
  - '82'
621
687
  X-Request-Id:
622
- - ef7a13fa-1af5-4087-b4fd-6bf0cfa49ec4
688
+ - af31fdb1-f572-4c3b-b978-86df2541b99c
623
689
  Link:
624
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
690
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
625
691
  rel="describedBy"
626
692
  Vary:
627
693
  - Accept-Encoding
628
694
  Date:
629
- - Tue, 07 Jul 2015 11:54:04 GMT
695
+ - Thu, 04 Aug 2016 14:31:22 GMT
630
696
  Connection:
631
697
  - keep-alive
698
+ Set-Cookie:
699
+ - _AVESTA_ENVIRONMENT=prod; path=/
632
700
  body:
633
701
  encoding: ASCII-8BIT
634
- string: '{"interests":[],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":0}'
635
- http_version:
636
- recorded_at: Tue, 07 Jul 2015 11:54:04 GMT
702
+ string: '{"interests":[],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":0}'
703
+ http_version:
704
+ recorded_at: Thu, 04 Aug 2016 14:31:22 GMT
637
705
  - request:
638
706
  method: get
639
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests?count=500&exclude_fields=interests._links,_links&offset=0
707
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests?count=500&exclude_fields=interests._links,_links&offset=0
640
708
  body:
641
709
  encoding: US-ASCII
642
710
  string: ''
@@ -645,10 +713,12 @@ http_interactions:
645
713
  - "*/*; q=0.5, application/xml"
646
714
  Accept-Encoding:
647
715
  - gzip, deflate
648
- Authorization:
649
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
650
716
  User-Agent:
651
717
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
718
+ Authorization:
719
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
720
+ Host:
721
+ - us11.api.mailchimp.com
652
722
  response:
653
723
  status:
654
724
  code: 200
@@ -661,24 +731,26 @@ http_interactions:
661
731
  Content-Length:
662
732
  - '82'
663
733
  X-Request-Id:
664
- - a3e16993-2a39-42f0-8375-e03321a5f7a0
734
+ - f061a9ab-873b-4097-a301-643ba399ad19
665
735
  Link:
666
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
736
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
667
737
  rel="describedBy"
668
738
  Vary:
669
739
  - Accept-Encoding
670
740
  Date:
671
- - Tue, 07 Jul 2015 11:54:05 GMT
741
+ - Thu, 04 Aug 2016 14:31:23 GMT
672
742
  Connection:
673
743
  - keep-alive
744
+ Set-Cookie:
745
+ - _AVESTA_ENVIRONMENT=prod; path=/
674
746
  body:
675
747
  encoding: ASCII-8BIT
676
- string: '{"interests":[],"list_id":"e73f5910ca","category_id":"e82a100d19","total_items":0}'
677
- http_version:
678
- recorded_at: Tue, 07 Jul 2015 11:54:05 GMT
748
+ string: '{"interests":[],"list_id":"e73f5910ca","category_id":"4df12c7b69","total_items":0}'
749
+ http_version:
750
+ recorded_at: Thu, 04 Aug 2016 14:31:23 GMT
679
751
  - request:
680
752
  method: post
681
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests
753
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests
682
754
  body:
683
755
  encoding: UTF-8
684
756
  string: '{"name":"Tuesday"}'
@@ -687,12 +759,14 @@ http_interactions:
687
759
  - "*/*; q=0.5, application/xml"
688
760
  Accept-Encoding:
689
761
  - gzip, deflate
690
- Authorization:
691
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
692
762
  User-Agent:
693
763
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
764
+ Authorization:
765
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
694
766
  Content-Length:
695
767
  - '18'
768
+ Host:
769
+ - us11.api.mailchimp.com
696
770
  response:
697
771
  status:
698
772
  code: 200
@@ -703,21 +777,23 @@ http_interactions:
703
777
  Content-Type:
704
778
  - application/json; charset=utf-8
705
779
  Content-Length:
706
- - '1039'
780
+ - '1152'
707
781
  X-Request-Id:
708
- - b3e5e5e6-df84-45c3-97f4-ae38fb0e023e
782
+ - 9d3ff4f5-991d-4624-bf4d-aafeac6d87e3
709
783
  Link:
710
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
784
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
711
785
  rel="describedBy"
712
786
  Vary:
713
787
  - Accept-Encoding
714
788
  Date:
715
- - Tue, 07 Jul 2015 11:54:05 GMT
789
+ - Thu, 04 Aug 2016 14:31:23 GMT
716
790
  Connection:
717
791
  - keep-alive
792
+ Set-Cookie:
793
+ - _AVESTA_ENVIRONMENT=prod; path=/
718
794
  body:
719
795
  encoding: ASCII-8BIT
720
- string: '{"category_id":"e82a100d19","list_id":"e73f5910ca","id":"5582aaf63d","name":"Tuesday","display_order":1,"_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests/5582aaf63d","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests/5582aaf63d","method":"PATCH","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e82a100d19/interests/5582aaf63d","method":"DELETE"}]}'
721
- http_version:
722
- recorded_at: Tue, 07 Jul 2015 11:54:05 GMT
723
- recorded_with: VCR 2.9.3
796
+ string: '{"category_id":"4df12c7b69","list_id":"e73f5910ca","id":"4e52548ea0","name":"Tuesday","subscriber_count":"0","display_order":1,"_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/4e52548ea0","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"},{"rel":"update","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/4e52548ea0","method":"PATCH","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/4df12c7b69/interests/4e52548ea0","method":"DELETE"}]}'
797
+ http_version:
798
+ recorded_at: Thu, 04 Aug 2016 14:31:23 GMT
799
+ recorded_with: VCR 3.0.3