mailchimp_api_v3 0.1.4 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,41 @@ http_interactions:
25
27
  Content-Type:
26
28
  - application/json; charset=utf-8
27
29
  Content-Length:
28
- - '1173'
30
+ - '4701'
29
31
  X-Request-Id:
30
- - 59b8dc2c-87c8-4250-a605-9623d2f9a988
32
+ - 5d4863ec-d8a3-4e46-90f8-76bbb8cca0c8
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:42:42 GMT
38
+ - Thu, 04 Aug 2016 15:01:38 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:42:42 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-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
47
62
  - request:
48
63
  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
64
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
50
65
  body:
51
66
  encoding: US-ASCII
52
67
  string: ''
@@ -55,10 +70,12 @@ http_interactions:
55
70
  - "*/*; q=0.5, application/xml"
56
71
  Accept-Encoding:
57
72
  - gzip, deflate
58
- Authorization:
59
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
60
73
  User-Agent:
61
74
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
75
+ Authorization:
76
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
77
+ Host:
78
+ - us11.api.mailchimp.com
62
79
  response:
63
80
  status:
64
81
  code: 200
@@ -69,26 +86,28 @@ http_interactions:
69
86
  Content-Type:
70
87
  - application/json; charset=utf-8
71
88
  Content-Length:
72
- - '56'
89
+ - '145'
73
90
  X-Request-Id:
74
- - f649a54a-b807-4c59-9db6-12b560fb4283
91
+ - 066e3dd5-2906-486f-8aa5-e370466fda3d
75
92
  Link:
76
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
93
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
77
94
  rel="describedBy"
78
95
  Vary:
79
96
  - Accept-Encoding
80
97
  Date:
81
- - Tue, 07 Jul 2015 11:42:43 GMT
98
+ - Thu, 04 Aug 2016 15:01:39 GMT
82
99
  Connection:
83
100
  - keep-alive
101
+ Set-Cookie:
102
+ - _AVESTA_ENVIRONMENT=prod; path=/
84
103
  body:
85
104
  encoding: ASCII-8BIT
86
- string: '{"list_id":"e73f5910ca","categories":[],"total_items":0}'
87
- http_version:
88
- recorded_at: Tue, 07 Jul 2015 11:42:43 GMT
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
89
108
  - request:
90
109
  method: get
91
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
110
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
92
111
  body:
93
112
  encoding: US-ASCII
94
113
  string: ''
@@ -97,10 +116,12 @@ http_interactions:
97
116
  - "*/*; q=0.5, application/xml"
98
117
  Accept-Encoding:
99
118
  - gzip, deflate
100
- Authorization:
101
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
102
119
  User-Agent:
103
120
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
121
+ Authorization:
122
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
123
+ Host:
124
+ - us11.api.mailchimp.com
104
125
  response:
105
126
  status:
106
127
  code: 200
@@ -111,26 +132,28 @@ http_interactions:
111
132
  Content-Type:
112
133
  - application/json; charset=utf-8
113
134
  Content-Length:
114
- - '56'
135
+ - '145'
115
136
  X-Request-Id:
116
- - bbcf652c-5e10-43c1-bf93-47f2d6ab83e5
137
+ - 2e824e07-63a7-4709-a177-83e5443fc9fc
117
138
  Link:
118
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
139
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
119
140
  rel="describedBy"
120
141
  Vary:
121
142
  - Accept-Encoding
122
143
  Date:
123
- - Tue, 07 Jul 2015 11:42:43 GMT
144
+ - Thu, 04 Aug 2016 15:01:39 GMT
124
145
  Connection:
125
146
  - keep-alive
147
+ Set-Cookie:
148
+ - _AVESTA_ENVIRONMENT=prod; path=/
126
149
  body:
127
150
  encoding: ASCII-8BIT
128
- string: '{"list_id":"e73f5910ca","categories":[],"total_items":0}'
129
- http_version:
130
- recorded_at: Tue, 07 Jul 2015 11:42:43 GMT
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
131
154
  - request:
132
155
  method: post
133
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
156
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
134
157
  body:
135
158
  encoding: UTF-8
136
159
  string: '{"title":"Days","type":"checkboxes"}'
@@ -139,12 +162,14 @@ http_interactions:
139
162
  - "*/*; q=0.5, application/xml"
140
163
  Accept-Encoding:
141
164
  - gzip, deflate
142
- Authorization:
143
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
144
165
  User-Agent:
145
166
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
167
+ Authorization:
168
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
146
169
  Content-Length:
147
170
  - '36'
171
+ Host:
172
+ - us11.api.mailchimp.com
148
173
  response:
149
174
  status:
150
175
  code: 200
@@ -155,26 +180,28 @@ http_interactions:
155
180
  Content-Type:
156
181
  - application/json; charset=utf-8
157
182
  Content-Length:
158
- - '1210'
183
+ - '1399'
159
184
  X-Request-Id:
160
- - 8a32a0ac-990b-4737-be25-057afde3161f
185
+ - 70042071-17f4-4936-a1a0-134a5ed32b6f
161
186
  Link:
162
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
187
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
163
188
  rel="describedBy"
164
189
  Vary:
165
190
  - Accept-Encoding
166
191
  Date:
167
- - Tue, 07 Jul 2015 11:42:43 GMT
192
+ - Thu, 04 Aug 2016 15:01:39 GMT
168
193
  Connection:
169
194
  - keep-alive
195
+ Set-Cookie:
196
+ - _AVESTA_ENVIRONMENT=prod; path=/
170
197
  body:
171
198
  encoding: ASCII-8BIT
172
- string: '{"list_id":"e73f5910ca","id":"af5e3cc15e","title":"Days","display_order":0,"type":"checkboxes","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/af5e3cc15e","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/af5e3cc15e","method":"PATCH","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/af5e3cc15e","method":"DELETE"},{"rel":"interests","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/af5e3cc15e/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"}]}'
173
- http_version:
174
- recorded_at: Tue, 07 Jul 2015 11:42:43 GMT
199
+ string: '{"list_id":"e73f5910ca","id":"f99652e179","title":"Days","display_order":1,"type":"checkboxes","_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f99652e179","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"parent","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/InterestCategories.json"},{"rel":"update","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f99652e179","method":"PATCH","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json","schema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"delete","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f99652e179","method":"DELETE"},{"rel":"interests","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f99652e179/interests","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Interests.json"}]}'
200
+ http_version:
201
+ recorded_at: Thu, 04 Aug 2016 15:01:39 GMT
175
202
  - request:
176
203
  method: get
177
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
204
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
178
205
  body:
179
206
  encoding: US-ASCII
180
207
  string: ''
@@ -183,10 +210,12 @@ http_interactions:
183
210
  - "*/*; q=0.5, application/xml"
184
211
  Accept-Encoding:
185
212
  - gzip, deflate
186
- Authorization:
187
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
188
213
  User-Agent:
189
214
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
215
+ Authorization:
216
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
217
+ Host:
218
+ - us11.api.mailchimp.com
190
219
  response:
191
220
  status:
192
221
  code: 200
@@ -197,26 +226,28 @@ http_interactions:
197
226
  Content-Type:
198
227
  - application/json; charset=utf-8
199
228
  Content-Length:
200
- - '151'
229
+ - '241'
201
230
  X-Request-Id:
202
- - 65ac7410-d687-4ccd-a22c-9484c78bb8cf
231
+ - 48d99134-b0a8-4943-8426-f44ca1e0f892
203
232
  Link:
204
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
233
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
205
234
  rel="describedBy"
206
235
  Vary:
207
236
  - Accept-Encoding
208
237
  Date:
209
- - Tue, 07 Jul 2015 11:42:44 GMT
238
+ - Thu, 04 Aug 2016 15:01:39 GMT
210
239
  Connection:
211
240
  - keep-alive
241
+ Set-Cookie:
242
+ - _AVESTA_ENVIRONMENT=prod; path=/
212
243
  body:
213
244
  encoding: ASCII-8BIT
214
- string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"af5e3cc15e","title":"Days","display_order":0,"type":"checkboxes"}],"total_items":1}'
215
- http_version:
216
- recorded_at: Tue, 07 Jul 2015 11:42:44 GMT
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
217
248
  - request:
218
249
  method: post
219
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
250
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
220
251
  body:
221
252
  encoding: UTF-8
222
253
  string: '{"title":"Days","type":"checkboxes"}'
@@ -225,12 +256,14 @@ http_interactions:
225
256
  - "*/*; q=0.5, application/xml"
226
257
  Accept-Encoding:
227
258
  - gzip, deflate
228
- Authorization:
229
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
230
259
  User-Agent:
231
260
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
261
+ Authorization:
262
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
232
263
  Content-Length:
233
264
  - '36'
265
+ Host:
266
+ - us11.api.mailchimp.com
234
267
  response:
235
268
  status:
236
269
  code: 400
@@ -241,27 +274,29 @@ http_interactions:
241
274
  Content-Type:
242
275
  - application/problem+json; charset=utf-8
243
276
  Content-Length:
244
- - '230'
277
+ - '212'
245
278
  X-Request-Id:
246
- - 2c95368f-6329-4447-acd9-5ff95d82b502
279
+ - 68fda992-803c-4fbf-8c43-7732398df1d9
247
280
  Link:
248
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
281
+ - <https://us11.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
249
282
  Vary:
250
283
  - Accept-Encoding
251
284
  Date:
252
- - Tue, 07 Jul 2015 11:42:44 GMT
285
+ - Thu, 04 Aug 2016 15:01:40 GMT
253
286
  Connection:
254
287
  - close
288
+ Set-Cookie:
289
+ - _AVESTA_ENVIRONMENT=prod; path=/
255
290
  body:
256
291
  encoding: ASCII-8BIT
257
- string: '{"type":"http://kb.mailchimp.com/api/error-docs/400-invalid-resource","title":"Invalid
292
+ string: '{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Invalid
258
293
  Resource","status":400,"detail":"An interest category with the title ''Days''
259
- already exists.","instance":"2c95368f-6329-4447-acd9-5ff95d82b502"}'
260
- http_version:
261
- recorded_at: Tue, 07 Jul 2015 11:42:44 GMT
294
+ already exists.","instance":""}'
295
+ http_version:
296
+ recorded_at: Thu, 04 Aug 2016 15:01:40 GMT
262
297
  - request:
263
298
  method: get
264
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
299
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
265
300
  body:
266
301
  encoding: US-ASCII
267
302
  string: ''
@@ -270,10 +305,12 @@ http_interactions:
270
305
  - "*/*; q=0.5, application/xml"
271
306
  Accept-Encoding:
272
307
  - gzip, deflate
273
- Authorization:
274
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
275
308
  User-Agent:
276
309
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
310
+ Authorization:
311
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
312
+ Host:
313
+ - us11.api.mailchimp.com
277
314
  response:
278
315
  status:
279
316
  code: 200
@@ -284,26 +321,28 @@ http_interactions:
284
321
  Content-Type:
285
322
  - application/json; charset=utf-8
286
323
  Content-Length:
287
- - '151'
324
+ - '241'
288
325
  X-Request-Id:
289
- - 7631d279-4200-4259-aff1-3fa85fe3260c
326
+ - 8d739419-fbcc-4120-9394-78cf37ed336d
290
327
  Link:
291
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
328
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
292
329
  rel="describedBy"
293
330
  Vary:
294
331
  - Accept-Encoding
295
332
  Date:
296
- - Tue, 07 Jul 2015 11:42:44 GMT
333
+ - Thu, 04 Aug 2016 15:01:40 GMT
297
334
  Connection:
298
335
  - keep-alive
336
+ Set-Cookie:
337
+ - _AVESTA_ENVIRONMENT=prod; path=/
299
338
  body:
300
339
  encoding: ASCII-8BIT
301
- string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"af5e3cc15e","title":"Days","display_order":0,"type":"checkboxes"}],"total_items":1}'
302
- http_version:
303
- recorded_at: Tue, 07 Jul 2015 11:42:44 GMT
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
304
343
  - request:
305
344
  method: get
306
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
345
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
307
346
  body:
308
347
  encoding: US-ASCII
309
348
  string: ''
@@ -312,10 +351,12 @@ http_interactions:
312
351
  - "*/*; q=0.5, application/xml"
313
352
  Accept-Encoding:
314
353
  - gzip, deflate
315
- Authorization:
316
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
317
354
  User-Agent:
318
355
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
356
+ Authorization:
357
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
358
+ Host:
359
+ - us11.api.mailchimp.com
319
360
  response:
320
361
  status:
321
362
  code: 200
@@ -326,26 +367,28 @@ http_interactions:
326
367
  Content-Type:
327
368
  - application/json; charset=utf-8
328
369
  Content-Length:
329
- - '151'
370
+ - '241'
330
371
  X-Request-Id:
331
- - e329d4d6-7406-4f37-b5b8-e048837591fd
372
+ - 05c9b788-877a-45d9-a071-be214ad94c4e
332
373
  Link:
333
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
374
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
334
375
  rel="describedBy"
335
376
  Vary:
336
377
  - Accept-Encoding
337
378
  Date:
338
- - Tue, 07 Jul 2015 11:42:44 GMT
379
+ - Thu, 04 Aug 2016 15:01:40 GMT
339
380
  Connection:
340
381
  - keep-alive
382
+ Set-Cookie:
383
+ - _AVESTA_ENVIRONMENT=prod; path=/
341
384
  body:
342
385
  encoding: ASCII-8BIT
343
- string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"af5e3cc15e","title":"Days","display_order":0,"type":"checkboxes"}],"total_items":1}'
344
- http_version:
345
- recorded_at: Tue, 07 Jul 2015 11:42:44 GMT
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
346
389
  - request:
347
390
  method: get
348
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
391
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
349
392
  body:
350
393
  encoding: US-ASCII
351
394
  string: ''
@@ -354,10 +397,12 @@ http_interactions:
354
397
  - "*/*; q=0.5, application/xml"
355
398
  Accept-Encoding:
356
399
  - gzip, deflate
357
- Authorization:
358
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
359
400
  User-Agent:
360
401
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
402
+ Authorization:
403
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
404
+ Host:
405
+ - us11.api.mailchimp.com
361
406
  response:
362
407
  status:
363
408
  code: 200
@@ -368,26 +413,28 @@ http_interactions:
368
413
  Content-Type:
369
414
  - application/json; charset=utf-8
370
415
  Content-Length:
371
- - '151'
416
+ - '241'
372
417
  X-Request-Id:
373
- - 17d05502-f37b-4a53-9816-fd4bc4bba48f
418
+ - bb05ce3e-206e-44f2-b32e-f4f9d2e855fd
374
419
  Link:
375
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
420
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
376
421
  rel="describedBy"
377
422
  Vary:
378
423
  - Accept-Encoding
379
424
  Date:
380
- - Tue, 07 Jul 2015 11:42:45 GMT
425
+ - Thu, 04 Aug 2016 15:01:40 GMT
381
426
  Connection:
382
427
  - keep-alive
428
+ Set-Cookie:
429
+ - _AVESTA_ENVIRONMENT=prod; path=/
383
430
  body:
384
431
  encoding: ASCII-8BIT
385
- string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"af5e3cc15e","title":"Days","display_order":0,"type":"checkboxes"}],"total_items":1}'
386
- http_version:
387
- recorded_at: Tue, 07 Jul 2015 11:42:45 GMT
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
388
435
  - request:
389
436
  method: get
390
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
437
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
391
438
  body:
392
439
  encoding: US-ASCII
393
440
  string: ''
@@ -396,10 +443,12 @@ http_interactions:
396
443
  - "*/*; q=0.5, application/xml"
397
444
  Accept-Encoding:
398
445
  - gzip, deflate
399
- Authorization:
400
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
401
446
  User-Agent:
402
447
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
448
+ Authorization:
449
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
450
+ Host:
451
+ - us11.api.mailchimp.com
403
452
  response:
404
453
  status:
405
454
  code: 200
@@ -410,26 +459,28 @@ http_interactions:
410
459
  Content-Type:
411
460
  - application/json; charset=utf-8
412
461
  Content-Length:
413
- - '151'
462
+ - '241'
414
463
  X-Request-Id:
415
- - 36067265-864f-465a-b905-4acfee872d1b
464
+ - 46a61c79-c3aa-4c76-924b-8cd277e9b9bb
416
465
  Link:
417
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
466
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
418
467
  rel="describedBy"
419
468
  Vary:
420
469
  - Accept-Encoding
421
470
  Date:
422
- - Tue, 07 Jul 2015 11:42:45 GMT
471
+ - Thu, 04 Aug 2016 15:01:40 GMT
423
472
  Connection:
424
473
  - keep-alive
474
+ Set-Cookie:
475
+ - _AVESTA_ENVIRONMENT=prod; path=/
425
476
  body:
426
477
  encoding: ASCII-8BIT
427
- string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"af5e3cc15e","title":"Days","display_order":0,"type":"checkboxes"}],"total_items":1}'
428
- http_version:
429
- recorded_at: Tue, 07 Jul 2015 11:42:45 GMT
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
430
481
  - request:
431
482
  method: get
432
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
483
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
433
484
  body:
434
485
  encoding: US-ASCII
435
486
  string: ''
@@ -438,10 +489,12 @@ http_interactions:
438
489
  - "*/*; q=0.5, application/xml"
439
490
  Accept-Encoding:
440
491
  - gzip, deflate
441
- Authorization:
442
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
443
492
  User-Agent:
444
493
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
494
+ Authorization:
495
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
496
+ Host:
497
+ - us11.api.mailchimp.com
445
498
  response:
446
499
  status:
447
500
  code: 200
@@ -452,26 +505,28 @@ http_interactions:
452
505
  Content-Type:
453
506
  - application/json; charset=utf-8
454
507
  Content-Length:
455
- - '151'
508
+ - '241'
456
509
  X-Request-Id:
457
- - 33f52732-aa22-4384-9cdc-fcb049e9f7d1
510
+ - a2ec8489-f1fe-4f59-873d-e54d31968ef7
458
511
  Link:
459
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
512
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
460
513
  rel="describedBy"
461
514
  Vary:
462
515
  - Accept-Encoding
463
516
  Date:
464
- - Tue, 07 Jul 2015 11:42:45 GMT
517
+ - Thu, 04 Aug 2016 15:01:40 GMT
465
518
  Connection:
466
519
  - keep-alive
520
+ Set-Cookie:
521
+ - _AVESTA_ENVIRONMENT=prod; path=/
467
522
  body:
468
523
  encoding: ASCII-8BIT
469
- string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"af5e3cc15e","title":"Days","display_order":0,"type":"checkboxes"}],"total_items":1}'
470
- http_version:
471
- recorded_at: Tue, 07 Jul 2015 11:42:45 GMT
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
472
527
  - request:
473
528
  method: delete
474
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/af5e3cc15e
529
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f99652e179
475
530
  body:
476
531
  encoding: US-ASCII
477
532
  string: ''
@@ -480,10 +535,12 @@ http_interactions:
480
535
  - "*/*; q=0.5, application/xml"
481
536
  Accept-Encoding:
482
537
  - gzip, deflate
483
- Authorization:
484
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
485
538
  User-Agent:
486
539
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
540
+ Authorization:
541
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
542
+ Host:
543
+ - us11.api.mailchimp.com
487
544
  response:
488
545
  status:
489
546
  code: 204
@@ -494,21 +551,23 @@ http_interactions:
494
551
  Content-Type:
495
552
  - application/json; charset=utf-8
496
553
  Content-Length:
497
- - '2'
554
+ - '0'
498
555
  X-Request-Id:
499
- - 292f2de6-da6e-43e0-9872-1b156faffce2
556
+ - ef4f60a2-ec5d-494d-9f38-8b9c9c000cb8
500
557
  Date:
501
- - Tue, 07 Jul 2015 11:42:45 GMT
558
+ - Thu, 04 Aug 2016 15:01:41 GMT
502
559
  Connection:
503
560
  - keep-alive
561
+ Set-Cookie:
562
+ - _AVESTA_ENVIRONMENT=prod; path=/
504
563
  body:
505
564
  encoding: UTF-8
506
565
  string: ''
507
- http_version:
508
- recorded_at: Tue, 07 Jul 2015 11:42:45 GMT
566
+ http_version:
567
+ recorded_at: Thu, 04 Aug 2016 15:01:41 GMT
509
568
  - request:
510
569
  method: get
511
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
570
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
512
571
  body:
513
572
  encoding: US-ASCII
514
573
  string: ''
@@ -517,10 +576,12 @@ http_interactions:
517
576
  - "*/*; q=0.5, application/xml"
518
577
  Accept-Encoding:
519
578
  - gzip, deflate
520
- Authorization:
521
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
522
579
  User-Agent:
523
580
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
581
+ Authorization:
582
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
583
+ Host:
584
+ - us11.api.mailchimp.com
524
585
  response:
525
586
  status:
526
587
  code: 200
@@ -531,26 +592,28 @@ http_interactions:
531
592
  Content-Type:
532
593
  - application/json; charset=utf-8
533
594
  Content-Length:
534
- - '56'
595
+ - '145'
535
596
  X-Request-Id:
536
- - 9c345d51-8761-4190-a090-3378620df977
597
+ - 56e8e16d-8283-4093-a04c-ed7ab5dbf994
537
598
  Link:
538
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
599
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
539
600
  rel="describedBy"
540
601
  Vary:
541
602
  - Accept-Encoding
542
603
  Date:
543
- - Tue, 07 Jul 2015 11:43:01 GMT
604
+ - Thu, 04 Aug 2016 15:01:41 GMT
544
605
  Connection:
545
606
  - keep-alive
607
+ Set-Cookie:
608
+ - _AVESTA_ENVIRONMENT=prod; path=/
546
609
  body:
547
610
  encoding: ASCII-8BIT
548
- string: '{"list_id":"e73f5910ca","categories":[],"total_items":0}'
549
- http_version:
550
- recorded_at: Tue, 07 Jul 2015 11:43:01 GMT
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
551
614
  - request:
552
615
  method: get
553
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
616
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
554
617
  body:
555
618
  encoding: US-ASCII
556
619
  string: ''
@@ -559,54 +622,12 @@ http_interactions:
559
622
  - "*/*; q=0.5, application/xml"
560
623
  Accept-Encoding:
561
624
  - gzip, deflate
562
- Authorization:
563
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
564
625
  User-Agent:
565
626
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
566
- response:
567
- status:
568
- code: 200
569
- message: OK
570
- headers:
571
- Server:
572
- - nginx
573
- Content-Type:
574
- - application/json; charset=utf-8
575
- Content-Length:
576
- - '56'
577
- X-Request-Id:
578
- - bddd2737-6025-49da-a9a5-836ab03aad88
579
- Link:
580
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
581
- rel="describedBy"
582
- Vary:
583
- - Accept-Encoding
584
- Date:
585
- - Tue, 07 Jul 2015 11:43:01 GMT
586
- Connection:
587
- - keep-alive
588
- body:
589
- encoding: ASCII-8BIT
590
- string: '{"list_id":"e73f5910ca","categories":[],"total_items":0}'
591
- http_version:
592
- recorded_at: Tue, 07 Jul 2015 11:43:01 GMT
593
- - request:
594
- method: post
595
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
596
- body:
597
- encoding: UTF-8
598
- string: '{"title":"Sex","type":"radio"}'
599
- headers:
600
- Accept:
601
- - "*/*; q=0.5, application/xml"
602
- Accept-Encoding:
603
- - gzip, deflate
604
627
  Authorization:
605
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
606
- User-Agent:
607
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
608
- Content-Length:
609
- - '30'
628
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
629
+ Host:
630
+ - us11.api.mailchimp.com
610
631
  response:
611
632
  status:
612
633
  code: 200
@@ -617,21 +638,23 @@ http_interactions:
617
638
  Content-Type:
618
639
  - application/json; charset=utf-8
619
640
  Content-Length:
620
- - '1204'
641
+ - '145'
621
642
  X-Request-Id:
622
- - f47bf782-8209-48b5-ad59-fa150d0e61e9
643
+ - cec13c44-620b-4b08-a728-667217318790
623
644
  Link:
624
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
645
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
625
646
  rel="describedBy"
626
647
  Vary:
627
648
  - Accept-Encoding
628
649
  Date:
629
- - Tue, 07 Jul 2015 11:43:01 GMT
650
+ - Thu, 04 Aug 2016 15:01:41 GMT
630
651
  Connection:
631
652
  - keep-alive
653
+ Set-Cookie:
654
+ - _AVESTA_ENVIRONMENT=prod; path=/
632
655
  body:
633
656
  encoding: ASCII-8BIT
634
- string: '{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f349987e8f","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f349987e8f","method":"PATCH","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f349987e8f","method":"DELETE"},{"rel":"interests","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/f349987e8f/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"}]}'
635
- http_version:
636
- recorded_at: Tue, 07 Jul 2015 11:43:01 GMT
637
- recorded_with: VCR 2.9.3
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