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
5
+ uri: https://us11.api.mailchimp.com/3.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 xxxxxxxxxx-us11
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: 301
@@ -27,9 +29,9 @@ http_interactions:
27
29
  Content-Length:
28
30
  - '242'
29
31
  Location:
30
- - http://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/
32
+ - http://us11.api.mailchimp.com/3.0/
31
33
  Date:
32
- - Tue, 07 Jul 2015 11:29:28 GMT
34
+ - Thu, 04 Aug 2016 15:02:03 GMT
33
35
  Connection:
34
36
  - keep-alive
35
37
  body:
@@ -40,13 +42,13 @@ http_interactions:
40
42
  <title>301 Moved Permanently</title>
41
43
  </head><body>
42
44
  <h1>Moved Permanently</h1>
43
- <p>The document has moved <a href="http://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/">here</a>.</p>
45
+ <p>The document has moved <a href="http://us11.api.mailchimp.com/3.0/">here</a>.</p>
44
46
  </body></html>
45
- http_version:
46
- recorded_at: Tue, 07 Jul 2015 11:29:28 GMT
47
+ http_version:
48
+ recorded_at: Thu, 04 Aug 2016 15:02:03 GMT
47
49
  - request:
48
50
  method: get
49
- uri: http://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/
51
+ uri: http://us11.api.mailchimp.com/3.0/
50
52
  body:
51
53
  encoding: US-ASCII
52
54
  string: ''
@@ -55,41 +57,45 @@ http_interactions:
55
57
  - "*/*; q=0.5, application/xml"
56
58
  Accept-Encoding:
57
59
  - gzip, deflate
58
- Authorization:
59
- - apikey xxxxxxxxxx-us11
60
60
  User-Agent:
61
61
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
62
- Cookie:
63
- - ''
62
+ Authorization:
63
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
64
+ Host:
65
+ - us11.api.mailchimp.com
64
66
  response:
65
67
  status:
66
- code: 401
67
- message: Unauthorized
68
+ code: 200
69
+ message: OK
68
70
  headers:
69
71
  Server:
70
72
  - nginx
71
73
  Content-Type:
72
- - application/problem+json; charset=utf-8
74
+ - application/json; charset=utf-8
73
75
  Content-Length:
74
- - '250'
76
+ - '3270'
77
+ X-Request-Id:
78
+ - 0cd39450-33dc-4a99-9061-215d322b325c
75
79
  Link:
76
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
80
+ - <https://us11.api.mailchimp.com/schema/3.0/Root.json>; rel="describedBy"
77
81
  Vary:
78
82
  - Accept-Encoding
79
83
  Date:
80
- - Tue, 07 Jul 2015 11:29:28 GMT
84
+ - Thu, 04 Aug 2016 15:02:04 GMT
81
85
  Connection:
82
86
  - keep-alive
87
+ Set-Cookie:
88
+ - _AVESTA_ENVIRONMENT=prod; path=/
83
89
  body:
84
90
  encoding: ASCII-8BIT
85
- string: '{"type":"http://kb.mailchimp.com/api/error-docs/401-api-key-invalid","title":"API
86
- Key Invalid","status":401,"detail":"Your API key may be invalid, or you''ve
87
- attempted to access the wrong datacenter.","instance":"983ad578-00e3-4155-86b8-017f8c979a7e"}'
88
- http_version:
89
- recorded_at: Tue, 07 Jul 2015 11:29:28 GMT
91
+ string: '{"account_id":"1dbca289fd41b54838bcbb501","account_name":"InSite Arts","email":"sam@sayers.cc","username":"samsayers","role":"owner","contact":{"company":"InSite
92
+ Arts","addr1":"300 Burdett Road","addr2":"London","city":"London","state":"","zip":"E14
93
+ 7DQ","country":"GB"},"pro_enabled":false,"last_login":"2016-08-04T14:25:25+00:00","total_subscribers":27,"industry_stats":{"open_rate":0.21842484737161,"bounce_rate":0.015938935487191,"click_rate":0.020519217237966},"_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Root.json"},{"rel":"lists","href":"https://us11.api.mailchimp.com/3.0/lists","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Lists.json"},{"rel":"reports","href":"https://us11.api.mailchimp.com/3.0/reports","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Reports/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Reports.json"},{"rel":"conversations","href":"https://us11.api.mailchimp.com/3.0/conversations","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Conversations/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Conversations.json"},{"rel":"campaigns","href":"https://us11.api.mailchimp.com/3.0/campaigns","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Campaigns/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Campaigns.json"},{"rel":"automations","href":"https://us11.api.mailchimp.com/3.0/automations","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Automations/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Automations.json"},{"rel":"templates","href":"https://us11.api.mailchimp.com/3.0/templates","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Templates/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Templates.json"},{"rel":"file-manager","href":"https://us11.api.mailchimp.com/3.0/file-manager","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/FileManager/Namespace.json"},{"rel":"authorized-apps","href":"https://us11.api.mailchimp.com/3.0/authorized-apps","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/AuthorizedApps/Collection.json"},{"rel":"batches","href":"https://us11.api.mailchimp.com/3.0/batches","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Batches/Collection.json"},{"rel":"template-folders","href":"https://us11.api.mailchimp.com/3.0/template-folders","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/TemplateFolders/Collection.json"},{"rel":"campaign-folders","href":"https://us11.api.mailchimp.com/3.0/campaign-folders","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/CampaignFolders/Collection.json"},{"rel":"ecommerce","href":"https://us11.api.mailchimp.com/3.0/ecommerce","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Ecommerce/Namespace.json"}]}'
94
+ http_version:
95
+ recorded_at: Thu, 04 Aug 2016 15:02:04 GMT
90
96
  - request:
91
97
  method: get
92
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0
98
+ uri: https://us11.api.mailchimp.com/3.0
93
99
  body:
94
100
  encoding: US-ASCII
95
101
  string: ''
@@ -98,10 +104,12 @@ http_interactions:
98
104
  - "*/*; q=0.5, application/xml"
99
105
  Accept-Encoding:
100
106
  - gzip, deflate
101
- Authorization:
102
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
103
107
  User-Agent:
104
108
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
109
+ Authorization:
110
+ - apikey xxxxxxxxxx-us11
111
+ Host:
112
+ - us11.api.mailchimp.com
105
113
  response:
106
114
  status:
107
115
  code: 301
@@ -114,9 +122,9 @@ http_interactions:
114
122
  Content-Length:
115
123
  - '242'
116
124
  Location:
117
- - http://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/
125
+ - http://us11.api.mailchimp.com/3.0/
118
126
  Date:
119
- - Tue, 07 Jul 2015 11:29:29 GMT
127
+ - Thu, 04 Aug 2016 15:02:04 GMT
120
128
  Connection:
121
129
  - keep-alive
122
130
  body:
@@ -127,13 +135,13 @@ http_interactions:
127
135
  <title>301 Moved Permanently</title>
128
136
  </head><body>
129
137
  <h1>Moved Permanently</h1>
130
- <p>The document has moved <a href="http://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/">here</a>.</p>
138
+ <p>The document has moved <a href="http://us11.api.mailchimp.com/3.0/">here</a>.</p>
131
139
  </body></html>
132
- http_version:
133
- recorded_at: Tue, 07 Jul 2015 11:29:29 GMT
140
+ http_version:
141
+ recorded_at: Thu, 04 Aug 2016 15:02:04 GMT
134
142
  - request:
135
143
  method: get
136
- uri: http://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/
144
+ uri: http://us11.api.mailchimp.com/3.0/
137
145
  body:
138
146
  encoding: US-ASCII
139
147
  string: ''
@@ -142,38 +150,40 @@ http_interactions:
142
150
  - "*/*; q=0.5, application/xml"
143
151
  Accept-Encoding:
144
152
  - gzip, deflate
145
- Authorization:
146
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
147
153
  User-Agent:
148
154
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
149
- Cookie:
150
- - ''
155
+ Authorization:
156
+ - apikey xxxxxxxxxx-us11
157
+ Host:
158
+ - us11.api.mailchimp.com
151
159
  response:
152
160
  status:
153
- code: 200
154
- message: OK
161
+ code: 401
162
+ message: Unauthorized
155
163
  headers:
156
164
  Server:
157
165
  - nginx
158
166
  Content-Type:
159
- - application/json; charset=utf-8
167
+ - application/problem+json; charset=utf-8
160
168
  Content-Length:
161
- - '2003'
169
+ - '233'
162
170
  X-Request-Id:
163
- - c0624e62-31b4-4299-95ec-38ad4b805a78
171
+ - bfecb06e-c4be-425c-951b-e86f216379d7
164
172
  Link:
165
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Root.json>; rel="describedBy"
173
+ - <https://us11.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
166
174
  Vary:
167
175
  - Accept-Encoding
168
176
  Date:
169
- - Tue, 07 Jul 2015 11:29:29 GMT
177
+ - Thu, 04 Aug 2016 15:02:04 GMT
170
178
  Connection:
171
179
  - keep-alive
180
+ Set-Cookie:
181
+ - _AVESTA_ENVIRONMENT=prod; path=/
172
182
  body:
173
183
  encoding: ASCII-8BIT
174
- string: '{"account_id":"1dbca289fd41b54838bcbb501","account_name":"InSite Arts","contact":{"company":"InSite
175
- Arts","addr1":"300 Burdett Road","addr2":"London","city":"London","state":"","zip":"E14
176
- 7DQ","country":"GB"},"last_login":"2015-07-07 11:24:31","total_subscribers":2,"_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Root.json"},{"rel":"lists","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Collection.json"},{"rel":"reports","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/reports","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Reports/Collection.json","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/CollectionLinks/Reports.json"},{"rel":"conversations","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/conversations","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Conversations/Collection.json"},{"rel":"campaigns","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/campaigns","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Campaigns/Collection.json","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/CollectionLinks/Campaigns.json"},{"rel":"automations","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/automations","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Automations/Collection.json"},{"rel":"templates","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/templates","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Templates/Collection.json"},{"rel":"file-manager","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/file-manager","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/FileManager/Namespace.json"},{"rel":"authorized-apps","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/authorized-apps","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/AuthorizedApps/Collection.json"}]}'
177
- http_version:
178
- recorded_at: Tue, 07 Jul 2015 11:29:29 GMT
179
- recorded_with: VCR 2.9.3
184
+ string: '{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"API
185
+ Key Invalid","status":401,"detail":"Your API key may be invalid, or you''ve
186
+ attempted to access the wrong datacenter.","instance":""}'
187
+ http_version:
188
+ recorded_at: Thu, 04 Aug 2016 15:02:04 GMT
189
+ recorded_with: VCR 3.0.3
@@ -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
- - '1174'
30
+ - '4704'
29
31
  X-Request-Id:
30
- - 0251ce13-274d-4d55-a9c3-29621abf2f06
32
+ - 983b2406-3e6a-49e6-9d82-b055faa81340
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 12:01:35 GMT
38
+ - Thu, 04 Aug 2016 15:07:50 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-manage2.com/subscribe?u=1dbca289fd41b54838bcbb501&id=e73f5910ca","beamer_address":"us11-6692a2b3c3-bcd2a8b144@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":2,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":2,"unsubscribe_count_since_send":0,"cleaned_count_since_send":0,"campaign_count":0,"campaign_last_sent":"","merge_field_count":2,"avg_sub_rate":0,"avg_unsub_rate":0,"target_sub_rate":0,"open_rate":0,"click_rate":0,"last_sub_date":"2015-06-27T14:50:39+00:00","last_unsub_date":""}}],"total_items":1}'
45
- http_version:
46
- recorded_at: Tue, 07 Jul 2015 12:01:35 GMT
47
+ 7DQ","country":"GB","phone":"07917153555"},"permission_reminder":"Opt-in only","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
48
+ Sayers","from_email":"sam@sayers.cc","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2015-06-27T14:49:18+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/brGTO9","subscribe_url_long":"http://insitearts.us11.list-manage1.com/subscribe?u=1dbca289fd41b54838bcbb501&id=e73f5910ca","beamer_address":"us11-6692a2b3c3-bcd2a8b144@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":3,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":3,"unsubscribe_count_since_send":0,"cleaned_count_since_send":0,"campaign_count":0,"campaign_last_sent":"","merge_field_count":2,"avg_sub_rate":0,"avg_unsub_rate":0,"target_sub_rate":0,"open_rate":0,"click_rate":0,"last_sub_date":"2016-08-04T14:56:19+00:00","last_unsub_date":""}},{"id":"71937ea346","name":"My
49
+ second list","contact":{"company":"InSite Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"Select
50
+ One","zip":"E14 7DQ","country":"GB","phone":"02075372125"},"permission_reminder":"Test
51
+ list for Xenapto testing","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
52
+ Sayers","from_email":"sam@insitearts.com","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2015-07-09T10:17:28+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/bsNMtP","subscribe_url_long":"http://insitearts.us11.list-manage.com/subscribe?u=1dbca289fd41b54838bcbb501&id=71937ea346","beamer_address":"us11-6692a2b3c3-e843e438a6@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":1,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":0,"unsubscribe_count_since_send":0,"cleaned_count_since_send":0,"campaign_count":0,"campaign_last_sent":"","merge_field_count":2,"avg_sub_rate":0,"avg_unsub_rate":0,"target_sub_rate":0,"open_rate":0,"click_rate":0,"last_sub_date":"2015-07-09T13:32:01+00:00","last_unsub_date":""}},{"id":"3f19e5d463","name":"My
53
+ third list","contact":{"company":"InSite Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"Select
54
+ One","zip":"E14 7DQ","country":"GB","phone":"02075372125"},"permission_reminder":"For
55
+ xenapto testing","use_archive_bar":true,"campaign_defaults":{"from_name":"Sam
56
+ Sayers","from_email":"sam@insitearts.com","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2015-07-12T16:45:11+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/bs3cI1","subscribe_url_long":"http://insitearts.us11.list-manage1.com/subscribe?u=1dbca289fd41b54838bcbb501&id=3f19e5d463","beamer_address":"us11-6692a2b3c3-8e485f6d99@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":4,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":0,"unsubscribe_count_since_send":0,"cleaned_count_since_send":0,"campaign_count":0,"campaign_last_sent":"","merge_field_count":2,"avg_sub_rate":0,"avg_unsub_rate":0,"target_sub_rate":0,"open_rate":0,"click_rate":0,"last_sub_date":"2015-07-14T11:28:57+00:00","last_unsub_date":""}},{"id":"a4598b5a35","name":"API
57
+ test list","contact":{"company":"administrator@xenapto.com","address1":"300
58
+ Burdett Road","address2":"London","city":"London","state":"","zip":"E14 7DQ","country":"GB","phone":""},"permission_reminder":"You
59
+ are test data for our API","use_archive_bar":true,"campaign_defaults":{"from_name":"Administrator","from_email":"administrator@xenapto.com","subject":"","language":"en"},"notify_on_subscribe":"","notify_on_unsubscribe":"","date_created":"2016-08-04T14:34:58+00:00","list_rating":0,"email_type_option":false,"subscribe_url_short":"http://eepurl.com/cauBmn","subscribe_url_long":"http://insitearts.us11.list-manage2.com/subscribe?u=1dbca289fd41b54838bcbb501&id=a4598b5a35","beamer_address":"us11-6692a2b3c3-3353aeaf0d@inbound.mailchimp.com","visibility":"pub","modules":[],"stats":{"member_count":19,"unsubscribe_count":0,"cleaned_count":0,"member_count_since_send":0,"unsubscribe_count_since_send":0,"cleaned_count_since_send":0,"campaign_count":0,"campaign_last_sent":"","merge_field_count":7,"avg_sub_rate":0,"avg_unsub_rate":0,"target_sub_rate":0,"open_rate":0,"click_rate":0,"last_sub_date":"2015-11-03T14:19:51+00:00","last_unsub_date":""}}],"total_items":4}'
60
+ http_version:
61
+ recorded_at: Thu, 04 Aug 2016 15:07:50 GMT
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
@@ -71,24 +88,26 @@ http_interactions:
71
88
  Content-Length:
72
89
  - '145'
73
90
  X-Request-Id:
74
- - c4149031-d76c-46c2-a4c8-d045584b698c
91
+ - c16344d4-86c9-408e-9660-0ef9c36092ce
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 12:01:36 GMT
98
+ - Thu, 04 Aug 2016 15:07:50 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
105
  string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"}],"total_items":1}'
87
- http_version:
88
- recorded_at: Tue, 07 Jul 2015 12:01:36 GMT
106
+ http_version:
107
+ recorded_at: Thu, 04 Aug 2016 15:07:50 GMT
89
108
  - request:
90
109
  method: post
91
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
110
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
92
111
  body:
93
112
  encoding: UTF-8
94
113
  string: '{"title":"Days","type":"checkboxes"}'
@@ -97,12 +116,14 @@ 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
104
123
  Content-Length:
105
124
  - '36'
125
+ Host:
126
+ - us11.api.mailchimp.com
106
127
  response:
107
128
  status:
108
129
  code: 200
@@ -113,26 +134,28 @@ http_interactions:
113
134
  Content-Type:
114
135
  - application/json; charset=utf-8
115
136
  Content-Length:
116
- - '1210'
137
+ - '1399'
117
138
  X-Request-Id:
118
- - a0bb0b22-d69a-4d06-993e-be459867264e
139
+ - 7e3228b3-e0c7-4287-8821-2037cd28a1e4
119
140
  Link:
120
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
141
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
121
142
  rel="describedBy"
122
143
  Vary:
123
144
  - Accept-Encoding
124
145
  Date:
125
- - Tue, 07 Jul 2015 12:01:36 GMT
146
+ - Thu, 04 Aug 2016 15:07:50 GMT
126
147
  Connection:
127
148
  - keep-alive
149
+ Set-Cookie:
150
+ - _AVESTA_ENVIRONMENT=prod; path=/
128
151
  body:
129
152
  encoding: ASCII-8BIT
130
- string: '{"list_id":"e73f5910ca","id":"bc914b7356","title":"Days","display_order":1,"type":"checkboxes","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356","method":"PATCH","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356","method":"DELETE"},{"rel":"interests","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"}]}'
131
- http_version:
132
- recorded_at: Tue, 07 Jul 2015 12:01:36 GMT
153
+ string: '{"list_id":"e73f5910ca","id":"7b24b8a11a","title":"Days","display_order":1,"type":"checkboxes","_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a","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/7b24b8a11a","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/7b24b8a11a","method":"DELETE"},{"rel":"interests","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/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"}]}'
154
+ http_version:
155
+ recorded_at: Thu, 04 Aug 2016 15:07:50 GMT
133
156
  - request:
134
157
  method: get
135
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests?count=500&exclude_fields=interests._links,_links&offset=0
158
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests?count=500&exclude_fields=interests._links,_links&offset=0
136
159
  body:
137
160
  encoding: US-ASCII
138
161
  string: ''
@@ -141,10 +164,12 @@ http_interactions:
141
164
  - "*/*; q=0.5, application/xml"
142
165
  Accept-Encoding:
143
166
  - gzip, deflate
144
- Authorization:
145
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
146
167
  User-Agent:
147
168
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
169
+ Authorization:
170
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
171
+ Host:
172
+ - us11.api.mailchimp.com
148
173
  response:
149
174
  status:
150
175
  code: 200
@@ -157,24 +182,26 @@ http_interactions:
157
182
  Content-Length:
158
183
  - '82'
159
184
  X-Request-Id:
160
- - 65995a31-de7d-4a89-be47-c35df7f3c190
185
+ - dfd1af9b-0109-402b-bfce-fad0cd5a6a90
161
186
  Link:
162
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
187
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
163
188
  rel="describedBy"
164
189
  Vary:
165
190
  - Accept-Encoding
166
191
  Date:
167
- - Tue, 07 Jul 2015 12:01:36 GMT
192
+ - Thu, 04 Aug 2016 15:07:50 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: '{"interests":[],"list_id":"e73f5910ca","category_id":"bc914b7356","total_items":0}'
173
- http_version:
174
- recorded_at: Tue, 07 Jul 2015 12:01:36 GMT
199
+ string: '{"interests":[],"list_id":"e73f5910ca","category_id":"7b24b8a11a","total_items":0}'
200
+ http_version:
201
+ recorded_at: Thu, 04 Aug 2016 15:07:50 GMT
175
202
  - request:
176
203
  method: post
177
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests
204
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests
178
205
  body:
179
206
  encoding: UTF-8
180
207
  string: '{"name":"Monday"}'
@@ -183,12 +210,14 @@ 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
190
217
  Content-Length:
191
218
  - '17'
219
+ Host:
220
+ - us11.api.mailchimp.com
192
221
  response:
193
222
  status:
194
223
  code: 200
@@ -199,26 +228,28 @@ http_interactions:
199
228
  Content-Type:
200
229
  - application/json; charset=utf-8
201
230
  Content-Length:
202
- - '1038'
231
+ - '1151'
203
232
  X-Request-Id:
204
- - b784f011-0c28-4bd9-8bbe-2c4c70289b7b
233
+ - 1e3c4a84-0dd2-4041-8d25-f6769e122fc3
205
234
  Link:
206
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
235
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
207
236
  rel="describedBy"
208
237
  Vary:
209
238
  - Accept-Encoding
210
239
  Date:
211
- - Tue, 07 Jul 2015 12:01:36 GMT
240
+ - Thu, 04 Aug 2016 15:07:51 GMT
212
241
  Connection:
213
242
  - keep-alive
243
+ Set-Cookie:
244
+ - _AVESTA_ENVIRONMENT=prod; path=/
214
245
  body:
215
246
  encoding: ASCII-8BIT
216
- string: '{"category_id":"bc914b7356","list_id":"e73f5910ca","id":"ca7ab24b53","name":"Monday","display_order":1,"_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests/ca7ab24b53","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests/ca7ab24b53","method":"PATCH","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests/ca7ab24b53","method":"DELETE"}]}'
217
- http_version:
218
- recorded_at: Tue, 07 Jul 2015 12:01:36 GMT
247
+ string: '{"category_id":"7b24b8a11a","list_id":"e73f5910ca","id":"56b7d77fbd","name":"Monday","subscriber_count":"0","display_order":1,"_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests/56b7d77fbd","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/7b24b8a11a/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/7b24b8a11a/interests/56b7d77fbd","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/7b24b8a11a/interests/56b7d77fbd","method":"DELETE"}]}'
248
+ http_version:
249
+ recorded_at: Thu, 04 Aug 2016 15:07:51 GMT
219
250
  - request:
220
251
  method: post
221
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests
252
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests
222
253
  body:
223
254
  encoding: UTF-8
224
255
  string: '{"name":"Tuesday"}'
@@ -227,12 +258,14 @@ http_interactions:
227
258
  - "*/*; q=0.5, application/xml"
228
259
  Accept-Encoding:
229
260
  - gzip, deflate
230
- Authorization:
231
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
232
261
  User-Agent:
233
262
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
263
+ Authorization:
264
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
234
265
  Content-Length:
235
266
  - '18'
267
+ Host:
268
+ - us11.api.mailchimp.com
236
269
  response:
237
270
  status:
238
271
  code: 200
@@ -243,26 +276,28 @@ http_interactions:
243
276
  Content-Type:
244
277
  - application/json; charset=utf-8
245
278
  Content-Length:
246
- - '1039'
279
+ - '1152'
247
280
  X-Request-Id:
248
- - 43a451be-1a63-412f-adeb-08d79ef2271d
281
+ - 51d5458b-78dd-4915-b599-e9b8de0ed2e8
249
282
  Link:
250
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
283
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
251
284
  rel="describedBy"
252
285
  Vary:
253
286
  - Accept-Encoding
254
287
  Date:
255
- - Tue, 07 Jul 2015 12:01:37 GMT
288
+ - Thu, 04 Aug 2016 15:07:51 GMT
256
289
  Connection:
257
290
  - keep-alive
291
+ Set-Cookie:
292
+ - _AVESTA_ENVIRONMENT=prod; path=/
258
293
  body:
259
294
  encoding: ASCII-8BIT
260
- string: '{"category_id":"bc914b7356","list_id":"e73f5910ca","id":"7eceb48776","name":"Tuesday","display_order":2,"_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests/7eceb48776","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests/7eceb48776","method":"PATCH","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests/7eceb48776","method":"DELETE"}]}'
261
- http_version:
262
- recorded_at: Tue, 07 Jul 2015 12:01:37 GMT
295
+ string: '{"category_id":"7b24b8a11a","list_id":"e73f5910ca","id":"adb041dc2b","name":"Tuesday","subscriber_count":"0","display_order":2,"_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests/adb041dc2b","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/7b24b8a11a/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/7b24b8a11a/interests/adb041dc2b","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/7b24b8a11a/interests/adb041dc2b","method":"DELETE"}]}'
296
+ http_version:
297
+ recorded_at: Thu, 04 Aug 2016 15:07:51 GMT
263
298
  - request:
264
299
  method: get
265
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests?count=500&exclude_fields=interests._links,_links&offset=0
300
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests?count=500&exclude_fields=interests._links,_links&offset=0
266
301
  body:
267
302
  encoding: US-ASCII
268
303
  string: ''
@@ -271,10 +306,12 @@ http_interactions:
271
306
  - "*/*; q=0.5, application/xml"
272
307
  Accept-Encoding:
273
308
  - gzip, deflate
274
- Authorization:
275
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
276
309
  User-Agent:
277
310
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
311
+ Authorization:
312
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
313
+ Host:
314
+ - us11.api.mailchimp.com
278
315
  response:
279
316
  status:
280
317
  code: 200
@@ -285,26 +322,28 @@ http_interactions:
285
322
  Content-Type:
286
323
  - application/json; charset=utf-8
287
324
  Content-Length:
288
- - '290'
325
+ - '336'
289
326
  X-Request-Id:
290
- - 0078df60-54b9-49b9-8fea-6365f22b612b
327
+ - 19f723ee-edb7-4cad-a3dc-78d0969d87f5
291
328
  Link:
292
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
329
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
293
330
  rel="describedBy"
294
331
  Vary:
295
332
  - Accept-Encoding
296
333
  Date:
297
- - Tue, 07 Jul 2015 12:01:37 GMT
334
+ - Thu, 04 Aug 2016 15:07:51 GMT
298
335
  Connection:
299
336
  - keep-alive
337
+ Set-Cookie:
338
+ - _AVESTA_ENVIRONMENT=prod; path=/
300
339
  body:
301
340
  encoding: ASCII-8BIT
302
- string: '{"interests":[{"category_id":"bc914b7356","list_id":"e73f5910ca","id":"ca7ab24b53","name":"Monday","display_order":1},{"category_id":"bc914b7356","list_id":"e73f5910ca","id":"7eceb48776","name":"Tuesday","display_order":2}],"list_id":"e73f5910ca","category_id":"bc914b7356","total_items":2}'
303
- http_version:
304
- recorded_at: Tue, 07 Jul 2015 12:01:37 GMT
341
+ string: '{"interests":[{"category_id":"7b24b8a11a","list_id":"e73f5910ca","id":"56b7d77fbd","name":"Monday","subscriber_count":"0","display_order":1},{"category_id":"7b24b8a11a","list_id":"e73f5910ca","id":"adb041dc2b","name":"Tuesday","subscriber_count":"0","display_order":2}],"list_id":"e73f5910ca","category_id":"7b24b8a11a","total_items":2}'
342
+ http_version:
343
+ recorded_at: Thu, 04 Aug 2016 15:07:51 GMT
305
344
  - request:
306
345
  method: delete
307
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests/7eceb48776
346
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests/adb041dc2b
308
347
  body:
309
348
  encoding: US-ASCII
310
349
  string: ''
@@ -313,10 +352,12 @@ http_interactions:
313
352
  - "*/*; q=0.5, application/xml"
314
353
  Accept-Encoding:
315
354
  - gzip, deflate
316
- Authorization:
317
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
318
355
  User-Agent:
319
356
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
357
+ Authorization:
358
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
359
+ Host:
360
+ - us11.api.mailchimp.com
320
361
  response:
321
362
  status:
322
363
  code: 204
@@ -327,21 +368,23 @@ http_interactions:
327
368
  Content-Type:
328
369
  - application/json; charset=utf-8
329
370
  Content-Length:
330
- - '2'
371
+ - '0'
331
372
  X-Request-Id:
332
- - 1c47d4ee-0fe3-4439-b31b-8197fec6e8c4
373
+ - 08919f1c-f0a1-4187-8f59-41c828564665
333
374
  Date:
334
- - Tue, 07 Jul 2015 12:01:37 GMT
375
+ - Thu, 04 Aug 2016 15:07:51 GMT
335
376
  Connection:
336
377
  - keep-alive
378
+ Set-Cookie:
379
+ - _AVESTA_ENVIRONMENT=prod; path=/
337
380
  body:
338
381
  encoding: UTF-8
339
382
  string: ''
340
- http_version:
341
- recorded_at: Tue, 07 Jul 2015 12:01:37 GMT
383
+ http_version:
384
+ recorded_at: Thu, 04 Aug 2016 15:07:51 GMT
342
385
  - request:
343
386
  method: get
344
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests?count=500&exclude_fields=interests._links,_links&offset=0
387
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/7b24b8a11a/interests?count=500&exclude_fields=interests._links,_links&offset=0
345
388
  body:
346
389
  encoding: US-ASCII
347
390
  string: ''
@@ -350,10 +393,12 @@ http_interactions:
350
393
  - "*/*; q=0.5, application/xml"
351
394
  Accept-Encoding:
352
395
  - gzip, deflate
353
- Authorization:
354
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
355
396
  User-Agent:
356
397
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
398
+ Authorization:
399
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
400
+ Host:
401
+ - us11.api.mailchimp.com
357
402
  response:
358
403
  status:
359
404
  code: 200
@@ -364,21 +409,23 @@ http_interactions:
364
409
  Content-Type:
365
410
  - application/json; charset=utf-8
366
411
  Content-Length:
367
- - '185'
412
+ - '208'
368
413
  X-Request-Id:
369
- - e16084ed-381c-42bc-8269-4d696462a295
414
+ - 37fec45c-837c-4a8c-af0a-316ef9f4f8f5
370
415
  Link:
371
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
416
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
372
417
  rel="describedBy"
373
418
  Vary:
374
419
  - Accept-Encoding
375
420
  Date:
376
- - Tue, 07 Jul 2015 12:01:53 GMT
421
+ - Thu, 04 Aug 2016 15:07:52 GMT
377
422
  Connection:
378
423
  - keep-alive
424
+ Set-Cookie:
425
+ - _AVESTA_ENVIRONMENT=prod; path=/
379
426
  body:
380
427
  encoding: ASCII-8BIT
381
- string: '{"interests":[{"category_id":"bc914b7356","list_id":"e73f5910ca","id":"ca7ab24b53","name":"Monday","display_order":1}],"list_id":"e73f5910ca","category_id":"bc914b7356","total_items":1}'
382
- http_version:
383
- recorded_at: Tue, 07 Jul 2015 12:01:53 GMT
384
- recorded_with: VCR 2.9.3
428
+ string: '{"interests":[{"category_id":"7b24b8a11a","list_id":"e73f5910ca","id":"56b7d77fbd","name":"Monday","subscriber_count":"0","display_order":1}],"list_id":"e73f5910ca","category_id":"7b24b8a11a","total_items":1}'
429
+ http_version:
430
+ recorded_at: Thu, 04 Aug 2016 15:07:52 GMT
431
+ recorded_with: VCR 3.0.3