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,41 @@ http_interactions:
25
27
  Content-Type:
26
28
  - application/json; charset=utf-8
27
29
  Content-Length:
28
- - '1173'
30
+ - '4704'
29
31
  X-Request-Id:
30
- - 021c88c6-4cd3-4ebb-bf28-aab9e9b0d912
32
+ - 25523bef-618e-4f96-8d1f-21288f68e2b1
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:45:29 GMT
38
+ - Thu, 04 Aug 2016 15:10:19 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:45:29 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-manage1.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-manage2.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:10:19 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
- - '145'
89
+ - '241'
73
90
  X-Request-Id:
74
- - e610b9ca-0b1c-4963-8ccf-a0dfa238bd65
91
+ - e128e4d4-b84a-4c4e-baa2-35b334fef2ae
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:45:29 GMT
98
+ - Thu, 04 Aug 2016 15:10:19 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":[{"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:45:29 GMT
105
+ string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"f349987e8f","title":"Sex","display_order":0,"type":"radio"},{"list_id":"e73f5910ca","id":"7b24b8a11a","title":"Days","display_order":1,"type":"checkboxes"}],"total_items":2}'
106
+ http_version:
107
+ recorded_at: Thu, 04 Aug 2016 15:10:19 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
- - f9eb5660-4f9d-4469-bf95-e116286ce36d
139
+ - 474c1fc0-f553-4510-a603-34b393860d24
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 11:45:29 GMT
146
+ - Thu, 04 Aug 2016 15:11:02 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":"35d063e4a8","title":"Days","display_order":1,"type":"checkboxes","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8","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/35d063e4a8","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/35d063e4a8","method":"DELETE"},{"rel":"interests","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/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:45:29 GMT
153
+ string: '{"list_id":"e73f5910ca","id":"e5b49d3b2a","title":"Days","display_order":1,"type":"checkboxes","_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a","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/e5b49d3b2a","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/e5b49d3b2a","method":"DELETE"},{"rel":"interests","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/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:11:02 GMT
133
156
  - request:
134
157
  method: get
135
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests?count=500&exclude_fields=interests._links,_links&offset=0
158
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/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
- - 02ea29dc-b178-43cd-9cdf-e4c77d6c882e
185
+ - dff00057-227e-490f-aa9f-dfc2d2aec712
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 11:45:30 GMT
192
+ - Thu, 04 Aug 2016 15:11:03 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":"35d063e4a8","total_items":0}'
173
- http_version:
174
- recorded_at: Tue, 07 Jul 2015 11:45:30 GMT
199
+ string: '{"interests":[],"list_id":"e73f5910ca","category_id":"e5b49d3b2a","total_items":0}'
200
+ http_version:
201
+ recorded_at: Thu, 04 Aug 2016 15:11:03 GMT
175
202
  - request:
176
203
  method: get
177
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests?count=500&exclude_fields=interests._links,_links&offset=0
204
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests?count=500&exclude_fields=interests._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
@@ -199,24 +228,26 @@ http_interactions:
199
228
  Content-Length:
200
229
  - '82'
201
230
  X-Request-Id:
202
- - b4378fd7-2f5b-4c37-9c5b-e70121c5d87a
231
+ - c6048e1a-f9bb-485f-9e5c-e33ea808ecfb
203
232
  Link:
204
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
233
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
205
234
  rel="describedBy"
206
235
  Vary:
207
236
  - Accept-Encoding
208
237
  Date:
209
- - Tue, 07 Jul 2015 11:45:30 GMT
238
+ - Thu, 04 Aug 2016 15:11:03 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: '{"interests":[],"list_id":"e73f5910ca","category_id":"35d063e4a8","total_items":0}'
215
- http_version:
216
- recorded_at: Tue, 07 Jul 2015 11:45:30 GMT
245
+ string: '{"interests":[],"list_id":"e73f5910ca","category_id":"e5b49d3b2a","total_items":0}'
246
+ http_version:
247
+ recorded_at: Thu, 04 Aug 2016 15:11:03 GMT
217
248
  - request:
218
249
  method: post
219
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests
250
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests
220
251
  body:
221
252
  encoding: UTF-8
222
253
  string: '{"name":"Monday"}'
@@ -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
  - '17'
265
+ Host:
266
+ - us11.api.mailchimp.com
234
267
  response:
235
268
  status:
236
269
  code: 200
@@ -241,26 +274,28 @@ http_interactions:
241
274
  Content-Type:
242
275
  - application/json; charset=utf-8
243
276
  Content-Length:
244
- - '1038'
277
+ - '1151'
245
278
  X-Request-Id:
246
- - c9ff51b3-85ed-4662-8689-1b114a0202e8
279
+ - 8013f35c-65f1-418d-9636-5d79bab177cc
247
280
  Link:
248
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
281
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
249
282
  rel="describedBy"
250
283
  Vary:
251
284
  - Accept-Encoding
252
285
  Date:
253
- - Tue, 07 Jul 2015 11:45:30 GMT
286
+ - Thu, 04 Aug 2016 15:11:03 GMT
254
287
  Connection:
255
288
  - keep-alive
289
+ Set-Cookie:
290
+ - _AVESTA_ENVIRONMENT=prod; path=/
256
291
  body:
257
292
  encoding: ASCII-8BIT
258
- string: '{"category_id":"35d063e4a8","list_id":"e73f5910ca","id":"05aaf669a7","name":"Monday","display_order":1,"_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests/05aaf669a7","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/35d063e4a8/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/35d063e4a8/interests/05aaf669a7","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/35d063e4a8/interests/05aaf669a7","method":"DELETE"}]}'
259
- http_version:
260
- recorded_at: Tue, 07 Jul 2015 11:45:30 GMT
293
+ string: '{"category_id":"e5b49d3b2a","list_id":"e73f5910ca","id":"242ed4aa50","name":"Monday","subscriber_count":"0","display_order":1,"_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests/242ed4aa50","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/e5b49d3b2a/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/e5b49d3b2a/interests/242ed4aa50","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/e5b49d3b2a/interests/242ed4aa50","method":"DELETE"}]}'
294
+ http_version:
295
+ recorded_at: Thu, 04 Aug 2016 15:11:03 GMT
261
296
  - request:
262
297
  method: get
263
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests?count=500&exclude_fields=interests._links,_links&offset=0
298
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests?count=500&exclude_fields=interests._links,_links&offset=0
264
299
  body:
265
300
  encoding: US-ASCII
266
301
  string: ''
@@ -269,10 +304,12 @@ http_interactions:
269
304
  - "*/*; q=0.5, application/xml"
270
305
  Accept-Encoding:
271
306
  - gzip, deflate
272
- Authorization:
273
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
274
307
  User-Agent:
275
308
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
309
+ Authorization:
310
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
311
+ Host:
312
+ - us11.api.mailchimp.com
276
313
  response:
277
314
  status:
278
315
  code: 200
@@ -283,26 +320,28 @@ http_interactions:
283
320
  Content-Type:
284
321
  - application/json; charset=utf-8
285
322
  Content-Length:
286
- - '185'
323
+ - '208'
287
324
  X-Request-Id:
288
- - 77531c90-afa1-4b43-b52a-b78af37a0cf0
325
+ - 8fe2d4ea-c2cc-4455-8a11-298c3ba6639f
289
326
  Link:
290
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
327
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
291
328
  rel="describedBy"
292
329
  Vary:
293
330
  - Accept-Encoding
294
331
  Date:
295
- - Tue, 07 Jul 2015 11:45:30 GMT
332
+ - Thu, 04 Aug 2016 15:11:03 GMT
296
333
  Connection:
297
334
  - keep-alive
335
+ Set-Cookie:
336
+ - _AVESTA_ENVIRONMENT=prod; path=/
298
337
  body:
299
338
  encoding: ASCII-8BIT
300
- string: '{"interests":[{"category_id":"35d063e4a8","list_id":"e73f5910ca","id":"05aaf669a7","name":"Monday","display_order":1}],"list_id":"e73f5910ca","category_id":"35d063e4a8","total_items":1}'
301
- http_version:
302
- recorded_at: Tue, 07 Jul 2015 11:45:30 GMT
339
+ string: '{"interests":[{"category_id":"e5b49d3b2a","list_id":"e73f5910ca","id":"242ed4aa50","name":"Monday","subscriber_count":"0","display_order":1}],"list_id":"e73f5910ca","category_id":"e5b49d3b2a","total_items":1}'
340
+ http_version:
341
+ recorded_at: Thu, 04 Aug 2016 15:11:03 GMT
303
342
  - request:
304
343
  method: post
305
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests
344
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests
306
345
  body:
307
346
  encoding: UTF-8
308
347
  string: '{"name":"Tuesday"}'
@@ -311,12 +350,14 @@ http_interactions:
311
350
  - "*/*; q=0.5, application/xml"
312
351
  Accept-Encoding:
313
352
  - gzip, deflate
314
- Authorization:
315
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
316
353
  User-Agent:
317
354
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
355
+ Authorization:
356
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
318
357
  Content-Length:
319
358
  - '18'
359
+ Host:
360
+ - us11.api.mailchimp.com
320
361
  response:
321
362
  status:
322
363
  code: 200
@@ -327,26 +368,28 @@ http_interactions:
327
368
  Content-Type:
328
369
  - application/json; charset=utf-8
329
370
  Content-Length:
330
- - '1039'
371
+ - '1152'
331
372
  X-Request-Id:
332
- - 87c48f47-6809-4990-9077-b98150c4d789
373
+ - 2d1e81f4-54e2-4c67-839d-1ef29d81db51
333
374
  Link:
334
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
375
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
335
376
  rel="describedBy"
336
377
  Vary:
337
378
  - Accept-Encoding
338
379
  Date:
339
- - Tue, 07 Jul 2015 11:45:31 GMT
380
+ - Thu, 04 Aug 2016 15:11:04 GMT
340
381
  Connection:
341
382
  - keep-alive
383
+ Set-Cookie:
384
+ - _AVESTA_ENVIRONMENT=prod; path=/
342
385
  body:
343
386
  encoding: ASCII-8BIT
344
- string: '{"category_id":"35d063e4a8","list_id":"e73f5910ca","id":"471894ead2","name":"Tuesday","display_order":2,"_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests/471894ead2","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/35d063e4a8/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/35d063e4a8/interests/471894ead2","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/35d063e4a8/interests/471894ead2","method":"DELETE"}]}'
345
- http_version:
346
- recorded_at: Tue, 07 Jul 2015 11:45:31 GMT
387
+ string: '{"category_id":"e5b49d3b2a","list_id":"e73f5910ca","id":"fc79f56941","name":"Tuesday","subscriber_count":"0","display_order":2,"_links":[{"rel":"self","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests/fc79f56941","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/e5b49d3b2a/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/e5b49d3b2a/interests/fc79f56941","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/e5b49d3b2a/interests/fc79f56941","method":"DELETE"}]}'
388
+ http_version:
389
+ recorded_at: Thu, 04 Aug 2016 15:11:04 GMT
347
390
  - request:
348
391
  method: get
349
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/35d063e4a8/interests?count=500&exclude_fields=interests._links,_links&offset=0
392
+ uri: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/e5b49d3b2a/interests?count=500&exclude_fields=interests._links,_links&offset=0
350
393
  body:
351
394
  encoding: US-ASCII
352
395
  string: ''
@@ -355,10 +398,12 @@ http_interactions:
355
398
  - "*/*; q=0.5, application/xml"
356
399
  Accept-Encoding:
357
400
  - gzip, deflate
358
- Authorization:
359
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
360
401
  User-Agent:
361
402
  - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
403
+ Authorization:
404
+ - apikey 4e17ffe30d01da94c1615c4b587b3732-us11
405
+ Host:
406
+ - us11.api.mailchimp.com
362
407
  response:
363
408
  status:
364
409
  code: 200
@@ -369,21 +414,23 @@ http_interactions:
369
414
  Content-Type:
370
415
  - application/json; charset=utf-8
371
416
  Content-Length:
372
- - '290'
417
+ - '336'
373
418
  X-Request-Id:
374
- - 834e9768-ae67-41af-a5b4-2540b0c8ac06
419
+ - b82a697c-a5b1-44fd-b002-4c2dcb90a19c
375
420
  Link:
376
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
421
+ - <https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
377
422
  rel="describedBy"
378
423
  Vary:
379
424
  - Accept-Encoding
380
425
  Date:
381
- - Tue, 07 Jul 2015 11:45:31 GMT
426
+ - Thu, 04 Aug 2016 15:11:04 GMT
382
427
  Connection:
383
428
  - keep-alive
429
+ Set-Cookie:
430
+ - _AVESTA_ENVIRONMENT=prod; path=/
384
431
  body:
385
432
  encoding: ASCII-8BIT
386
- string: '{"interests":[{"category_id":"35d063e4a8","list_id":"e73f5910ca","id":"05aaf669a7","name":"Monday","display_order":1},{"category_id":"35d063e4a8","list_id":"e73f5910ca","id":"471894ead2","name":"Tuesday","display_order":2}],"list_id":"e73f5910ca","category_id":"35d063e4a8","total_items":2}'
387
- http_version:
388
- recorded_at: Tue, 07 Jul 2015 11:45:31 GMT
389
- recorded_with: VCR 2.9.3
433
+ string: '{"interests":[{"category_id":"e5b49d3b2a","list_id":"e73f5910ca","id":"242ed4aa50","name":"Monday","subscriber_count":"0","display_order":1},{"category_id":"e5b49d3b2a","list_id":"e73f5910ca","id":"fc79f56941","name":"Tuesday","subscriber_count":"0","display_order":2}],"list_id":"e73f5910ca","category_id":"e5b49d3b2a","total_items":2}'
434
+ http_version:
435
+ recorded_at: Thu, 04 Aug 2016 15:11:04 GMT
436
+ recorded_with: VCR 3.0.3