mailchimp_api_v3 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +4 -0
  3. data/lib/mailchimp_api_v3/client/remote.rb +12 -8
  4. data/lib/mailchimp_api_v3/collection.rb +1 -1
  5. data/lib/mailchimp_api_v3/collection/paging.rb +1 -1
  6. data/lib/mailchimp_api_v3/instance.rb +5 -1
  7. data/lib/mailchimp_api_v3/version.rb +1 -1
  8. data/spec/fixtures/cassettes/account.yml +92 -0
  9. data/spec/fixtures/cassettes/client.yml +223 -0
  10. data/spec/fixtures/cassettes/exception.yml +179 -0
  11. data/spec/fixtures/cassettes/interest.yml +384 -0
  12. data/spec/fixtures/cassettes/interest_categories.yml +637 -0
  13. data/spec/fixtures/cassettes/interest_category.yml +389 -0
  14. data/spec/fixtures/cassettes/interests.yml +723 -0
  15. data/spec/fixtures/cassettes/list.yml +176 -0
  16. data/spec/fixtures/cassettes/lists.yml +47 -0
  17. data/spec/fixtures/cassettes/mailchimp.yml +6 -886
  18. data/spec/fixtures/cassettes/member.yml +267 -0
  19. data/spec/fixtures/cassettes/members.yml +17 -6
  20. data/spec/mailchimp_api_v3/account_spec.rb +1 -1
  21. data/spec/mailchimp_api_v3/client_spec.rb +1 -1
  22. data/spec/mailchimp_api_v3/exception_spec.rb +1 -1
  23. data/spec/mailchimp_api_v3/interest_categories_spec.rb +21 -33
  24. data/spec/mailchimp_api_v3/interest_category_spec.rb +7 -7
  25. data/spec/mailchimp_api_v3/interest_spec.rb +9 -6
  26. data/spec/mailchimp_api_v3/interests_spec.rb +24 -28
  27. data/spec/mailchimp_api_v3/list_spec.rb +1 -1
  28. data/spec/mailchimp_api_v3/lists_spec.rb +1 -1
  29. data/spec/mailchimp_api_v3/member_spec.rb +4 -3
  30. data/spec/mailchimp_api_v3/members_spec.rb +1 -1
  31. data/spec/support/vcr_setup.rb +1 -1
  32. metadata +23 -4
@@ -0,0 +1,176 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists?count=500&exclude_fields=lists._links,_links&offset=0
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Authorization:
15
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
16
+ User-Agent:
17
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Content-Length:
28
+ - '1174'
29
+ X-Request-Id:
30
+ - 7e01108b-4621-445d-97d5-7347e66244c3
31
+ Link:
32
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
33
+ Vary:
34
+ - Accept-Encoding
35
+ Date:
36
+ - Tue, 07 Jul 2015 11:29:25 GMT
37
+ Connection:
38
+ - keep-alive
39
+ body:
40
+ encoding: ASCII-8BIT
41
+ string: '{"lists":[{"id":"e73f5910ca","name":"My first list","contact":{"company":"InSite
42
+ 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-manage1.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:29:25 GMT
47
+ - request:
48
+ method: get
49
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links,_links&offset=0
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ Accept:
55
+ - "*/*; q=0.5, application/xml"
56
+ Accept-Encoding:
57
+ - gzip, deflate
58
+ Authorization:
59
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
60
+ User-Agent:
61
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Server:
68
+ - nginx
69
+ Content-Type:
70
+ - application/json; charset=utf-8
71
+ Content-Length:
72
+ - '1324'
73
+ X-Request-Id:
74
+ - 6c47e88e-5106-45ad-91eb-e07f78e9d2a6
75
+ Link:
76
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
77
+ rel="describedBy"
78
+ Vary:
79
+ - Accept-Encoding
80
+ Date:
81
+ - Tue, 07 Jul 2015 11:29:26 GMT
82
+ Connection:
83
+ - keep-alive
84
+ body:
85
+ encoding: ASCII-8BIT
86
+ string: '{"members":[{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Ann","LNAME":"Example"},"interests":{"cd5e23403e":false,"267f1b5a2d":false,"28085c702c":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27
87
+ 14:50:15","member_rating":2,"last_changed":"2015-07-07T11:29:25+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"a81216d35b4cbfa18632867228be02da","email_address":"bob@sayers.cc","unique_email_id":"3f73c23e26","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Bob","LNAME":"Example"},"interests":{"cd5e23403e":false,"267f1b5a2d":false,"28085c702c":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27
88
+ 14:50:39","member_rating":2,"last_changed":"2015-06-27T14:50:39+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"}],"list_id":"e73f5910ca","total_items":2}'
89
+ http_version:
90
+ recorded_at: Tue, 07 Jul 2015 11:29:26 GMT
91
+ - request:
92
+ method: get
93
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links,_links&offset=0
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ''
97
+ headers:
98
+ Accept:
99
+ - "*/*; q=0.5, application/xml"
100
+ Accept-Encoding:
101
+ - gzip, deflate
102
+ Authorization:
103
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
104
+ User-Agent:
105
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
106
+ response:
107
+ status:
108
+ code: 200
109
+ message: OK
110
+ headers:
111
+ Server:
112
+ - nginx
113
+ Content-Type:
114
+ - application/json; charset=utf-8
115
+ Content-Length:
116
+ - '537'
117
+ X-Request-Id:
118
+ - 7ed0acc2-fc8e-405e-8ef6-444db2ac115b
119
+ Link:
120
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
121
+ rel="describedBy"
122
+ Vary:
123
+ - Accept-Encoding
124
+ Date:
125
+ - Tue, 07 Jul 2015 11:29:26 GMT
126
+ Connection:
127
+ - keep-alive
128
+ body:
129
+ encoding: ASCII-8BIT
130
+ string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"2ce011eb68","title":"Colours","display_order":0,"type":"checkboxes"},{"list_id":"e73f5910ca","id":"c3e5df13e2","title":"Eye
131
+ color","display_order":1,"type":"dropdown"},{"list_id":"e73f5910ca","id":"3b3d29c068","title":"Sex","display_order":3,"type":"radio"},{"list_id":"e73f5910ca","id":"d1b39120f9","title":"Colors","display_order":4,"type":"checkboxes"},{"list_id":"e73f5910ca","id":"4c2d95bf04","title":"Days","display_order":5,"type":"checkboxes"}],"total_items":5}'
132
+ http_version:
133
+ recorded_at: Tue, 07 Jul 2015 11:29:26 GMT
134
+ - request:
135
+ method: get
136
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151
137
+ body:
138
+ encoding: US-ASCII
139
+ string: ''
140
+ headers:
141
+ Accept:
142
+ - "*/*; q=0.5, application/xml"
143
+ Accept-Encoding:
144
+ - gzip, deflate
145
+ Authorization:
146
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
147
+ User-Agent:
148
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
149
+ response:
150
+ status:
151
+ code: 200
152
+ message: OK
153
+ headers:
154
+ Server:
155
+ - nginx
156
+ Content-Type:
157
+ - application/json; charset=utf-8
158
+ Content-Length:
159
+ - '2120'
160
+ X-Request-Id:
161
+ - f3d55dd1-f9fe-42c0-85b3-a2d48d349e55
162
+ Link:
163
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json>; rel="describedBy"
164
+ Vary:
165
+ - Accept-Encoding
166
+ Date:
167
+ - Tue, 07 Jul 2015 11:29:27 GMT
168
+ Connection:
169
+ - keep-alive
170
+ body:
171
+ encoding: ASCII-8BIT
172
+ string: '{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Ann","LNAME":"Example"},"interests":{"cd5e23403e":false,"267f1b5a2d":false,"28085c702c":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27
173
+ 14:50:15","member_rating":2,"last_changed":"2015-07-07T11:29:25+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151","method":"PATCH","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151","method":"DELETE"},{"rel":"activity","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151/activity","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Activity/Collection.json"},{"rel":"goals","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151/goals","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Goals/Collection.json"},{"rel":"notes","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151/notes","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Notes/Collection.json"}]}'
174
+ http_version:
175
+ recorded_at: Tue, 07 Jul 2015 11:29:27 GMT
176
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists?count=500&exclude_fields=lists._links,_links&offset=0
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Authorization:
15
+ - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
16
+ User-Agent:
17
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Content-Length:
28
+ - '1174'
29
+ X-Request-Id:
30
+ - 005a9f9e-a7b4-4c96-8631-7720de25a6a1
31
+ Link:
32
+ - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
33
+ Vary:
34
+ - Accept-Encoding
35
+ Date:
36
+ - Tue, 07 Jul 2015 11:29:30 GMT
37
+ Connection:
38
+ - keep-alive
39
+ body:
40
+ encoding: ASCII-8BIT
41
+ string: '{"lists":[{"id":"e73f5910ca","name":"My first list","contact":{"company":"InSite
42
+ 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-manage1.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:29:30 GMT
47
+ recorded_with: VCR 2.9.3
@@ -1,178 +1,5 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists?count=500&exclude_fields=lists._links&offset=0
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- Authorization:
15
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
16
- User-Agent:
17
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Server:
24
- - nginx
25
- Content-Type:
26
- - application/json; charset=utf-8
27
- Content-Length:
28
- - '1647'
29
- X-Request-Id:
30
- - 443cc6ee-ecdf-440c-ad7a-86815fb81cc2
31
- Link:
32
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
33
- Vary:
34
- - Accept-Encoding
35
- Date:
36
- - Wed, 01 Jul 2015 17:08:46 GMT
37
- Connection:
38
- - keep-alive
39
- body:
40
- encoding: ASCII-8BIT
41
- string: '{"lists":[{"id":"e73f5910ca","name":"My first list","contact":{"company":"InSite
42
- 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":""}}],"_links":[{"rel":"self","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":"parent","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":"create","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists","method":"POST","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Instance.json"}],"total_items":1}'
45
- http_version:
46
- recorded_at: Wed, 01 Jul 2015 17:08:46 GMT
47
- - request:
48
- method: get
49
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories?count=500&exclude_fields=categories._links&offset=0
50
- body:
51
- encoding: US-ASCII
52
- string: ''
53
- headers:
54
- Accept:
55
- - "*/*; q=0.5, application/xml"
56
- Accept-Encoding:
57
- - gzip, deflate
58
- Authorization:
59
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
60
- User-Agent:
61
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
62
- response:
63
- status:
64
- code: 200
65
- message: OK
66
- headers:
67
- Server:
68
- - nginx
69
- Content-Type:
70
- - application/json; charset=utf-8
71
- Content-Length:
72
- - '951'
73
- X-Request-Id:
74
- - 65155216-804b-4ad2-b14d-19a6ed91e2f2
75
- Link:
76
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Collection.json>;
77
- rel="describedBy"
78
- Vary:
79
- - Accept-Encoding
80
- Date:
81
- - Wed, 01 Jul 2015 17:08:46 GMT
82
- Connection:
83
- - keep-alive
84
- body:
85
- encoding: ASCII-8BIT
86
- string: '{"list_id":"e73f5910ca","categories":[{"list_id":"e73f5910ca","id":"2ce011eb68","title":"Colors","display_order":0,"type":"checkboxes"},{"list_id":"e73f5910ca","id":"c3e5df13e2","title":"Eye
87
- color","display_order":1,"type":"dropdown"}],"_links":[{"rel":"self","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":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Instance.json"},{"rel":"create","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories","method":"POST","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"}],"total_items":2}'
88
- http_version:
89
- recorded_at: Wed, 01 Jul 2015 17:08:46 GMT
90
- - request:
91
- method: get
92
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links&offset=0
93
- body:
94
- encoding: US-ASCII
95
- string: ''
96
- headers:
97
- Accept:
98
- - "*/*; q=0.5, application/xml"
99
- Accept-Encoding:
100
- - gzip, deflate
101
- Authorization:
102
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
103
- User-Agent:
104
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
105
- response:
106
- status:
107
- code: 200
108
- message: OK
109
- headers:
110
- Server:
111
- - nginx
112
- Content-Type:
113
- - application/json; charset=utf-8
114
- Content-Length:
115
- - '1802'
116
- X-Request-Id:
117
- - f831b233-d06b-4df6-8a4c-a278001f1cae
118
- Link:
119
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
120
- rel="describedBy"
121
- Vary:
122
- - Accept-Encoding
123
- Date:
124
- - Wed, 01 Jul 2015 17:08:47 GMT
125
- Connection:
126
- - keep-alive
127
- body:
128
- encoding: ASCII-8BIT
129
- string: '{"members":[{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Ann","LNAME":"Example"},"interests":{"3fbb48c043":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27
130
- 14:50:15","member_rating":2,"last_changed":"2015-06-27T14:50:15+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"a81216d35b4cbfa18632867228be02da","email_address":"bob@sayers.cc","unique_email_id":"3f73c23e26","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Bob","LNAME":"Example"},"interests":{"3fbb48c043":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27
131
- 14:50:39","member_rating":2,"last_changed":"2015-06-27T14:50:39+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"}],"list_id":"e73f5910ca","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Instance.json"},{"rel":"create","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members","method":"POST","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"}],"total_items":2}'
132
- http_version:
133
- recorded_at: Wed, 01 Jul 2015 17:08:47 GMT
134
- - request:
135
- method: get
136
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/2ce011eb68/interests?count=500&exclude_fields=interests._links&offset=0
137
- body:
138
- encoding: US-ASCII
139
- string: ''
140
- headers:
141
- Accept:
142
- - "*/*; q=0.5, application/xml"
143
- Accept-Encoding:
144
- - gzip, deflate
145
- Authorization:
146
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
147
- User-Agent:
148
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
149
- response:
150
- status:
151
- code: 200
152
- message: OK
153
- headers:
154
- Server:
155
- - nginx
156
- Content-Type:
157
- - application/json; charset=utf-8
158
- Content-Length:
159
- - '945'
160
- X-Request-Id:
161
- - a7588c70-bac1-4ac9-804d-b4f00a35a8d6
162
- Link:
163
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json>;
164
- rel="describedBy"
165
- Vary:
166
- - Accept-Encoding
167
- Date:
168
- - Wed, 01 Jul 2015 17:08:47 GMT
169
- Connection:
170
- - keep-alive
171
- body:
172
- encoding: ASCII-8BIT
173
- string: '{"interests":[{"category_id":"2ce011eb68","list_id":"e73f5910ca","id":"3fbb48c043","name":"red","display_order":1}],"list_id":"e73f5910ca","category_id":"2ce011eb68","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/2ce011eb68/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/2ce011eb68","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"create","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/2ce011eb68/interests","method":"POST","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"}],"total_items":1}'
174
- http_version:
175
- recorded_at: Wed, 01 Jul 2015 17:08:47 GMT
176
3
  - request:
177
4
  method: get
178
5
  uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0
@@ -202,7 +29,7 @@ http_interactions:
202
29
  Location:
203
30
  - http://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/
204
31
  Date:
205
- - Wed, 01 Jul 2015 17:08:47 GMT
32
+ - Tue, 07 Jul 2015 12:02:22 GMT
206
33
  Connection:
207
34
  - keep-alive
208
35
  body:
@@ -216,7 +43,7 @@ http_interactions:
216
43
  <p>The document has moved <a href="http://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/">here</a>.</p>
217
44
  </body></html>
218
45
  http_version:
219
- recorded_at: Wed, 01 Jul 2015 17:08:47 GMT
46
+ recorded_at: Tue, 07 Jul 2015 12:02:22 GMT
220
47
  - request:
221
48
  method: get
222
49
  uri: http://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/
@@ -246,727 +73,20 @@ http_interactions:
246
73
  Content-Length:
247
74
  - '2003'
248
75
  X-Request-Id:
249
- - d02004c8-9ec6-4ce1-b041-540b59ea05b9
76
+ - 54dc6a42-1f8d-4465-a513-8a42ffebdbab
250
77
  Link:
251
78
  - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Root.json>; rel="describedBy"
252
79
  Vary:
253
80
  - Accept-Encoding
254
81
  Date:
255
- - Wed, 01 Jul 2015 17:08:47 GMT
82
+ - Tue, 07 Jul 2015 12:02:22 GMT
256
83
  Connection:
257
84
  - keep-alive
258
85
  body:
259
86
  encoding: ASCII-8BIT
260
87
  string: '{"account_id":"1dbca289fd41b54838bcbb501","account_name":"InSite Arts","contact":{"company":"InSite
261
88
  Arts","addr1":"300 Burdett Road","addr2":"London","city":"London","state":"","zip":"E14
262
- 7DQ","country":"GB"},"last_login":"2015-06-27 14:45:42","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"}]}'
263
- http_version:
264
- recorded_at: Wed, 01 Jul 2015 17:08:47 GMT
265
- - request:
266
- method: get
267
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0
268
- body:
269
- encoding: US-ASCII
270
- string: ''
271
- headers:
272
- Accept:
273
- - "*/*; q=0.5, application/xml"
274
- Accept-Encoding:
275
- - gzip, deflate
276
- Authorization:
277
- - apikey xxxxxxxxxx-us11
278
- User-Agent:
279
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
280
- response:
281
- status:
282
- code: 301
283
- message: Moved Permanently
284
- headers:
285
- Server:
286
- - nginx
287
- Content-Type:
288
- - text/html; charset=iso-8859-1
289
- Content-Length:
290
- - '242'
291
- Location:
292
- - http://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/
293
- Date:
294
- - Wed, 01 Jul 2015 17:08:47 GMT
295
- Connection:
296
- - keep-alive
297
- body:
298
- encoding: UTF-8
299
- string: |
300
- <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
301
- <html><head>
302
- <title>301 Moved Permanently</title>
303
- </head><body>
304
- <h1>Moved Permanently</h1>
305
- <p>The document has moved <a href="http://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/">here</a>.</p>
306
- </body></html>
307
- http_version:
308
- recorded_at: Wed, 01 Jul 2015 17:08:47 GMT
309
- - request:
310
- method: get
311
- uri: http://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/
312
- body:
313
- encoding: US-ASCII
314
- string: ''
315
- headers:
316
- Accept:
317
- - "*/*; q=0.5, application/xml"
318
- Accept-Encoding:
319
- - gzip, deflate
320
- Authorization:
321
- - apikey xxxxxxxxxx-us11
322
- User-Agent:
323
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
324
- Cookie:
325
- - ''
326
- response:
327
- status:
328
- code: 401
329
- message: Unauthorized
330
- headers:
331
- Server:
332
- - nginx
333
- Content-Type:
334
- - application/problem+json; charset=utf-8
335
- Content-Length:
336
- - '250'
337
- Link:
338
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
339
- Vary:
340
- - Accept-Encoding
341
- Date:
342
- - Wed, 01 Jul 2015 17:08:48 GMT
343
- Connection:
344
- - keep-alive
345
- body:
346
- encoding: ASCII-8BIT
347
- string: '{"type":"http://kb.mailchimp.com/api/error-docs/401-api-key-invalid","title":"API
348
- Key Invalid","status":401,"detail":"Your API key may be invalid, or you''ve
349
- attempted to access the wrong datacenter.","instance":"82a1f28b-b4ad-46df-8c25-7eb5ff8bda22"}'
350
- http_version:
351
- recorded_at: Wed, 01 Jul 2015 17:08:48 GMT
352
- - request:
353
- method: post
354
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
355
- body:
356
- encoding: US-ASCII
357
- string: title=Days&type=checkboxes
358
- headers:
359
- Accept:
360
- - "*/*; q=0.5, application/xml"
361
- Accept-Encoding:
362
- - gzip, deflate
363
- Authorization:
364
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
365
- User-Agent:
366
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
367
- Content-Length:
368
- - '26'
369
- Content-Type:
370
- - application/x-www-form-urlencoded
371
- response:
372
- status:
373
- code: 400
374
- message: Bad Request
375
- headers:
376
- Server:
377
- - nginx
378
- Content-Type:
379
- - application/problem+json; charset=utf-8
380
- Content-Length:
381
- - '338'
382
- Link:
383
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
384
- Vary:
385
- - Accept-Encoding
386
- Date:
387
- - Wed, 01 Jul 2015 17:08:48 GMT
388
- Connection:
389
- - close
390
- body:
391
- encoding: ASCII-8BIT
392
- string: '{"type":"http://kb.mailchimp.com/api/error-docs/400-json-parse-error","title":"JSON
393
- Parse Error","status":400,"detail":"Your request doesn''t appear to be valid
394
- JSON:\nParse error on line 1:\ntitle=Days&type=chec\n^\nExpected one of: ''STRING'',
395
- ''NUMBER'', ''NULL'', ''TRUE'', ''FALSE'', ''{'', ''[''","instance":"e495982c-b7d1-482d-941a-69ce54151e5b"}'
396
- http_version:
397
- recorded_at: Wed, 01 Jul 2015 17:08:48 GMT
398
- - request:
399
- method: post
400
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
401
- body:
402
- encoding: US-ASCII
403
- string: title=Colors&type=checkboxes
404
- headers:
405
- Accept:
406
- - "*/*; q=0.5, application/xml"
407
- Accept-Encoding:
408
- - gzip, deflate
409
- Authorization:
410
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
411
- User-Agent:
412
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
413
- Content-Length:
414
- - '28'
415
- Content-Type:
416
- - application/x-www-form-urlencoded
417
- response:
418
- status:
419
- code: 400
420
- message: Bad Request
421
- headers:
422
- Server:
423
- - nginx
424
- Content-Type:
425
- - application/problem+json; charset=utf-8
426
- Content-Length:
427
- - '338'
428
- Link:
429
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
430
- Vary:
431
- - Accept-Encoding
432
- Date:
433
- - Wed, 01 Jul 2015 17:08:48 GMT
434
- Connection:
435
- - close
436
- body:
437
- encoding: ASCII-8BIT
438
- string: '{"type":"http://kb.mailchimp.com/api/error-docs/400-json-parse-error","title":"JSON
439
- Parse Error","status":400,"detail":"Your request doesn''t appear to be valid
440
- JSON:\nParse error on line 1:\ntitle=Colors&type=ch\n^\nExpected one of: ''STRING'',
441
- ''NUMBER'', ''NULL'', ''TRUE'', ''FALSE'', ''{'', ''[''","instance":"b07e66df-185f-43c1-b0b7-7dc10fe1cb13"}'
442
- http_version:
443
- recorded_at: Wed, 01 Jul 2015 17:08:48 GMT
444
- - request:
445
- method: post
446
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
447
- body:
448
- encoding: UTF-8
449
- string: '{"title":"Colors","type":"checkboxes"}'
450
- headers:
451
- Accept:
452
- - "*/*; q=0.5, application/xml"
453
- Accept-Encoding:
454
- - gzip, deflate
455
- Authorization:
456
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
457
- User-Agent:
458
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
459
- Content-Length:
460
- - '38'
461
- response:
462
- status:
463
- code: 400
464
- message: Bad Request
465
- headers:
466
- Server:
467
- - nginx
468
- Content-Type:
469
- - application/problem+json; charset=utf-8
470
- Content-Length:
471
- - '232'
472
- X-Request-Id:
473
- - 43256dc3-cffe-476f-83a1-a2246e00d010
474
- Link:
475
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
476
- Vary:
477
- - Accept-Encoding
478
- Date:
479
- - Wed, 01 Jul 2015 17:09:25 GMT
480
- Connection:
481
- - close
482
- body:
483
- encoding: ASCII-8BIT
484
- string: '{"type":"http://kb.mailchimp.com/api/error-docs/400-invalid-resource","title":"Invalid
485
- Resource","status":400,"detail":"An interest category with the title ''Colors''
486
- already exists.","instance":"43256dc3-cffe-476f-83a1-a2246e00d010"}'
487
- http_version:
488
- recorded_at: Wed, 01 Jul 2015 17:09:25 GMT
489
- - request:
490
- method: post
491
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
492
- body:
493
- encoding: UTF-8
494
- string: '{"title":"Days","type":"checkboxes"}'
495
- headers:
496
- Accept:
497
- - "*/*; q=0.5, application/xml"
498
- Accept-Encoding:
499
- - gzip, deflate
500
- Authorization:
501
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
502
- User-Agent:
503
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
504
- Content-Length:
505
- - '36'
506
- response:
507
- status:
508
- code: 200
509
- message: OK
510
- headers:
511
- Server:
512
- - nginx
513
- Content-Type:
514
- - application/json; charset=utf-8
515
- Content-Length:
516
- - '1210'
517
- X-Request-Id:
518
- - 41e50a45-f5f5-4a28-ae48-b6d5ccc09c32
519
- Link:
520
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
521
- rel="describedBy"
522
- Vary:
523
- - Accept-Encoding
524
- Date:
525
- - Wed, 01 Jul 2015 17:09:25 GMT
526
- Connection:
527
- - keep-alive
528
- body:
529
- encoding: ASCII-8BIT
530
- string: '{"list_id":"e73f5910ca","id":"05d6479d86","title":"Days","display_order":2,"type":"checkboxes","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/05d6479d86","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/05d6479d86","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/05d6479d86","method":"DELETE"},{"rel":"interests","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/05d6479d86/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"}]}'
531
- http_version:
532
- recorded_at: Wed, 01 Jul 2015 17:09:25 GMT
533
- - request:
534
- method: post
535
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories
536
- body:
537
- encoding: UTF-8
538
- string: '{"title":"Sex","type":"radio"}'
539
- headers:
540
- Accept:
541
- - "*/*; q=0.5, application/xml"
542
- Accept-Encoding:
543
- - gzip, deflate
544
- Authorization:
545
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
546
- User-Agent:
547
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
548
- Content-Length:
549
- - '30'
550
- response:
551
- status:
552
- code: 200
553
- message: OK
554
- headers:
555
- Server:
556
- - nginx
557
- Content-Type:
558
- - application/json; charset=utf-8
559
- Content-Length:
560
- - '1204'
561
- X-Request-Id:
562
- - f95fbb7a-0790-4d2b-a861-ca9197b9769c
563
- Link:
564
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json>;
565
- rel="describedBy"
566
- Vary:
567
- - Accept-Encoding
568
- Date:
569
- - Wed, 01 Jul 2015 17:52:47 GMT
570
- Connection:
571
- - keep-alive
572
- body:
573
- encoding: ASCII-8BIT
574
- string: '{"list_id":"e73f5910ca","id":"3b3d29c068","title":"Sex","display_order":3,"type":"radio","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/3b3d29c068","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/3b3d29c068","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/3b3d29c068","method":"DELETE"},{"rel":"interests","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/3b3d29c068/interests","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"}]}'
575
- http_version:
576
- recorded_at: Wed, 01 Jul 2015 17:52:47 GMT
577
- - request:
578
- method: post
579
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/2ce011eb68/interests
580
- body:
581
- encoding: UTF-8
582
- string: '{"name":"Green"}'
583
- headers:
584
- Accept:
585
- - "*/*; q=0.5, application/xml"
586
- Accept-Encoding:
587
- - gzip, deflate
588
- Authorization:
589
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
590
- User-Agent:
591
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
592
- Content-Length:
593
- - '16'
594
- response:
595
- status:
596
- code: 200
597
- message: OK
598
- headers:
599
- Server:
600
- - nginx
601
- Content-Type:
602
- - application/json; charset=utf-8
603
- Content-Length:
604
- - '1037'
605
- X-Request-Id:
606
- - 57a7c751-1ae0-4348-8c7b-0815e390d6e3
607
- Link:
608
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
609
- rel="describedBy"
610
- Vary:
611
- - Accept-Encoding
612
- Date:
613
- - Wed, 01 Jul 2015 17:55:08 GMT
614
- Connection:
615
- - keep-alive
616
- body:
617
- encoding: ASCII-8BIT
618
- string: '{"category_id":"2ce011eb68","list_id":"e73f5910ca","id":"471d85abc5","name":"Green","display_order":2,"_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/2ce011eb68/interests/471d85abc5","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/2ce011eb68/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/2ce011eb68/interests/471d85abc5","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/2ce011eb68/interests/471d85abc5","method":"DELETE"}]}'
619
- http_version:
620
- recorded_at: Wed, 01 Jul 2015 17:55:08 GMT
621
- - request:
622
- method: post
623
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/2ce011eb68/interests
624
- body:
625
- encoding: UTF-8
626
- string: '{"name":"Red"}'
627
- headers:
628
- Accept:
629
- - "*/*; q=0.5, application/xml"
630
- Accept-Encoding:
631
- - gzip, deflate
632
- Authorization:
633
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
634
- User-Agent:
635
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
636
- Content-Length:
637
- - '14'
638
- response:
639
- status:
640
- code: 400
641
- message: Bad Request
642
- headers:
643
- Server:
644
- - nginx
645
- Content-Type:
646
- - application/problem+json; charset=utf-8
647
- Content-Length:
648
- - '229'
649
- X-Request-Id:
650
- - 35491639-b29c-4e09-94db-e5e70da78e35
651
- Link:
652
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
653
- Vary:
654
- - Accept-Encoding
655
- Date:
656
- - Wed, 01 Jul 2015 17:58:45 GMT
657
- Connection:
658
- - close
659
- body:
660
- encoding: ASCII-8BIT
661
- string: '{"type":"http://kb.mailchimp.com/api/error-docs/400-invalid-resource","title":"Invalid
662
- Resource","status":400,"detail":"Cannot add \"Red\" because it already exists
663
- on the list.","instance":"35491639-b29c-4e09-94db-e5e70da78e35"}'
664
- http_version:
665
- recorded_at: Wed, 01 Jul 2015 17:58:45 GMT
666
- - request:
667
- method: post
668
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/2ce011eb68/interests
669
- body:
670
- encoding: UTF-8
671
- string: '{"name":"Amber"}'
672
- headers:
673
- Accept:
674
- - "*/*; q=0.5, application/xml"
675
- Accept-Encoding:
676
- - gzip, deflate
677
- Authorization:
678
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
679
- User-Agent:
680
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
681
- Content-Length:
682
- - '16'
683
- response:
684
- status:
685
- code: 200
686
- message: OK
687
- headers:
688
- Server:
689
- - nginx
690
- Content-Type:
691
- - application/json; charset=utf-8
692
- Content-Length:
693
- - '1037'
694
- X-Request-Id:
695
- - 7d342240-f154-4bc6-8f29-246859e237e4
696
- Link:
697
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json>;
698
- rel="describedBy"
699
- Vary:
700
- - Accept-Encoding
701
- Date:
702
- - Wed, 01 Jul 2015 18:05:09 GMT
703
- Connection:
704
- - keep-alive
705
- body:
706
- encoding: ASCII-8BIT
707
- string: '{"category_id":"2ce011eb68","list_id":"e73f5910ca","id":"25f9dcf0db","name":"Amber","display_order":3,"_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/2ce011eb68/interests/25f9dcf0db","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/2ce011eb68/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/2ce011eb68/interests/25f9dcf0db","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/2ce011eb68/interests/25f9dcf0db","method":"DELETE"}]}'
708
- http_version:
709
- recorded_at: Wed, 01 Jul 2015 18:05:09 GMT
710
- - request:
711
- method: get
712
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151
713
- body:
714
- encoding: US-ASCII
715
- string: ''
716
- headers:
717
- Accept:
718
- - "*/*; q=0.5, application/xml"
719
- Accept-Encoding:
720
- - gzip, deflate
721
- Authorization:
722
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
723
- User-Agent:
724
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
725
- response:
726
- status:
727
- code: 200
728
- message: OK
729
- headers:
730
- Server:
731
- - nginx
732
- Content-Type:
733
- - application/json; charset=utf-8
734
- Content-Length:
735
- - '2120'
736
- X-Request-Id:
737
- - 1966fb5b-92a6-472f-920a-930ef211965a
738
- Link:
739
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json>; rel="describedBy"
740
- Vary:
741
- - Accept-Encoding
742
- Date:
743
- - Thu, 02 Jul 2015 14:48:54 GMT
744
- Connection:
745
- - keep-alive
746
- body:
747
- encoding: ASCII-8BIT
748
- string: '{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Ann","LNAME":"Example"},"interests":{"3fbb48c043":false,"471d85abc5":false,"25f9dcf0db":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27
749
- 14:50:15","member_rating":2,"last_changed":"2015-06-27T14:50:15+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151","method":"PATCH","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151","method":"DELETE"},{"rel":"activity","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151/activity","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Activity/Collection.json"},{"rel":"goals","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151/goals","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Goals/Collection.json"},{"rel":"notes","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151/notes","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Notes/Collection.json"}]}'
750
- http_version:
751
- recorded_at: Thu, 02 Jul 2015 14:48:54 GMT
752
- - request:
753
- method: get
754
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists?count=500&exclude_fields=lists._links&offset=0
755
- body:
756
- encoding: US-ASCII
757
- string: ''
758
- headers:
759
- Accept:
760
- - "*/*; q=0.5, application/xml"
761
- Accept-Encoding:
762
- - gzip, deflate
763
- Authorization:
764
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
765
- User-Agent:
766
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
767
- response:
768
- status:
769
- code: 200
770
- message: OK
771
- headers:
772
- Server:
773
- - nginx
774
- Content-Type:
775
- - application/json; charset=utf-8
776
- Content-Length:
777
- - '1647'
778
- X-Request-Id:
779
- - a41e3809-c50e-42ea-9759-c2ad93d5e576
780
- Link:
781
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Collection.json>; rel="describedBy"
782
- Vary:
783
- - Accept-Encoding
784
- Date:
785
- - Fri, 03 Jul 2015 09:29:17 GMT
786
- Connection:
787
- - keep-alive
788
- body:
789
- encoding: ASCII-8BIT
790
- string: '{"lists":[{"id":"e73f5910ca","name":"My first list","contact":{"company":"InSite
791
- Arts","address1":"300 Burdett Road","address2":"London","city":"London","state":"","zip":"E14
792
- 7DQ","country":"262","phone":"07917153555"},"permission_reminder":"Opt-in
793
- 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":""}}],"_links":[{"rel":"self","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":"parent","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":"create","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists","method":"POST","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Instance.json"}],"total_items":1}'
794
- http_version:
795
- recorded_at: Fri, 03 Jul 2015 09:29:17 GMT
796
- - request:
797
- method: get
798
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members?count=500&exclude_fields=members._links&offset=0
799
- body:
800
- encoding: US-ASCII
801
- string: ''
802
- headers:
803
- Accept:
804
- - "*/*; q=0.5, application/xml"
805
- Accept-Encoding:
806
- - gzip, deflate
807
- Authorization:
808
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
809
- User-Agent:
810
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
811
- response:
812
- status:
813
- code: 200
814
- message: OK
815
- headers:
816
- Server:
817
- - nginx
818
- Content-Type:
819
- - application/json; charset=utf-8
820
- Content-Length:
821
- - '1878'
822
- X-Request-Id:
823
- - bdf89ef3-6878-412c-8670-be4195645a4c
824
- Link:
825
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json>;
826
- rel="describedBy"
827
- Vary:
828
- - Accept-Encoding
829
- Date:
830
- - Fri, 03 Jul 2015 09:29:18 GMT
831
- Connection:
832
- - keep-alive
833
- body:
834
- encoding: ASCII-8BIT
835
- string: '{"members":[{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Ann","LNAME":"Bonkers"},"interests":{"3fbb48c043":false,"471d85abc5":false,"25f9dcf0db":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27
836
- 14:50:15","member_rating":2,"last_changed":"2015-07-03T09:02:36+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"},{"id":"a81216d35b4cbfa18632867228be02da","email_address":"bob@sayers.cc","unique_email_id":"3f73c23e26","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Bob","LNAME":"Example"},"interests":{"3fbb48c043":false,"471d85abc5":false,"25f9dcf0db":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27
837
- 14:50:39","member_rating":2,"last_changed":"2015-06-27T14:50:39+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca"}],"list_id":"e73f5910ca","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Instance.json"},{"rel":"create","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members","method":"POST","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"}],"total_items":2}'
838
- http_version:
839
- recorded_at: Fri, 03 Jul 2015 09:29:18 GMT
840
- - request:
841
- method: patch
842
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151
843
- body:
844
- encoding: UTF-8
845
- string: '{"merge_fields":{"FNAME":"Billy","LNAME":"Bonkers"}}'
846
- headers:
847
- Accept:
848
- - "*/*; q=0.5, application/xml"
849
- Accept-Encoding:
850
- - gzip, deflate
851
- Authorization:
852
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
853
- User-Agent:
854
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
855
- Content-Length:
856
- - '52'
857
- response:
858
- status:
859
- code: 200
860
- message: OK
861
- headers:
862
- Server:
863
- - nginx
864
- Content-Type:
865
- - application/json; charset=utf-8
866
- Content-Length:
867
- - '2122'
868
- X-Request-Id:
869
- - b7eb72bc-7f46-43ac-93ad-fb91dc3178e3
870
- Link:
871
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json>; rel="describedBy"
872
- Vary:
873
- - Accept-Encoding
874
- Date:
875
- - Fri, 03 Jul 2015 09:29:18 GMT
876
- Connection:
877
- - keep-alive
878
- body:
879
- encoding: ASCII-8BIT
880
- string: '{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Billy","LNAME":"Bonkers"},"interests":{"3fbb48c043":false,"471d85abc5":false,"25f9dcf0db":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27
881
- 14:50:15","member_rating":2,"last_changed":"2015-07-03T09:29:18+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151","method":"PATCH","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151","method":"DELETE"},{"rel":"activity","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151/activity","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Activity/Collection.json"},{"rel":"goals","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151/goals","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Goals/Collection.json"},{"rel":"notes","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151/notes","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Notes/Collection.json"}]}'
882
- http_version:
883
- recorded_at: Fri, 03 Jul 2015 09:29:18 GMT
884
- - request:
885
- method: patch
886
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151
887
- body:
888
- encoding: UTF-8
889
- string: '{"merge_fields":{"FNAME":"Ann","LNAME":"Example"}}'
890
- headers:
891
- Accept:
892
- - "*/*; q=0.5, application/xml"
893
- Accept-Encoding:
894
- - gzip, deflate
895
- Authorization:
896
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
897
- User-Agent:
898
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
899
- Content-Length:
900
- - '50'
901
- response:
902
- status:
903
- code: 200
904
- message: OK
905
- headers:
906
- Server:
907
- - nginx
908
- Content-Type:
909
- - application/json; charset=utf-8
910
- Content-Length:
911
- - '2120'
912
- X-Request-Id:
913
- - 01a597b8-0076-4755-81b1-145d538a7161
914
- Link:
915
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json>; rel="describedBy"
916
- Vary:
917
- - Accept-Encoding
918
- Date:
919
- - Fri, 03 Jul 2015 09:59:32 GMT
920
- Connection:
921
- - keep-alive
922
- body:
923
- encoding: ASCII-8BIT
924
- string: '{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Ann","LNAME":"Example"},"interests":{"3fbb48c043":false,"471d85abc5":false,"25f9dcf0db":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27
925
- 14:50:15","member_rating":2,"last_changed":"2015-07-03T09:59:32+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151","method":"PATCH","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151","method":"DELETE"},{"rel":"activity","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151/activity","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Activity/Collection.json"},{"rel":"goals","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151/goals","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Goals/Collection.json"},{"rel":"notes","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151/notes","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Notes/Collection.json"}]}'
926
- http_version:
927
- recorded_at: Fri, 03 Jul 2015 09:59:32 GMT
928
- - request:
929
- method: patch
930
- uri: https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151
931
- body:
932
- encoding: UTF-8
933
- string: '{"merge_fields":{"FNAME":"William"}}'
934
- headers:
935
- Accept:
936
- - "*/*; q=0.5, application/xml"
937
- Accept-Encoding:
938
- - gzip, deflate
939
- Authorization:
940
- - apikey <%= ENV['MAILCHIMP_API_KEY'] %>
941
- User-Agent:
942
- - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
943
- Content-Length:
944
- - '36'
945
- response:
946
- status:
947
- code: 200
948
- message: OK
949
- headers:
950
- Server:
951
- - nginx
952
- Content-Type:
953
- - application/json; charset=utf-8
954
- Content-Length:
955
- - '2124'
956
- X-Request-Id:
957
- - bc9d3db2-e0c1-4a1d-824d-c726f90c925c
958
- Link:
959
- - <https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json>; rel="describedBy"
960
- Vary:
961
- - Accept-Encoding
962
- Date:
963
- - Fri, 03 Jul 2015 09:59:32 GMT
964
- Connection:
965
- - keep-alive
966
- body:
967
- encoding: ASCII-8BIT
968
- string: '{"id":"140b91c107d2058dee730e75be0b1151","email_address":"ann@sayers.cc","unique_email_id":"37a55cdc48","email_type":"html","status":"subscribed","merge_fields":{"FNAME":"William","LNAME":"Bonkers"},"interests":{"3fbb48c043":false,"471d85abc5":false,"25f9dcf0db":false},"stats":{"avg_open_rate":0,"avg_click_rate":0},"ip_signup":"","timestamp_signup":"","ip_opt":"86.163.13.133","timestamp_opt":"2015-06-27
969
- 14:50:15","member_rating":2,"last_changed":"2015-07-03T09:59:32+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"list_id":"e73f5910ca","_links":[{"rel":"self","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"parent","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json"},{"rel":"update","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151","method":"PATCH","schema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Instance.json"},{"rel":"delete","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151","method":"DELETE"},{"rel":"activity","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151/activity","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Activity/Collection.json"},{"rel":"goals","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151/goals","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Goals/Collection.json"},{"rel":"notes","href":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/3.0/lists/e73f5910ca/members/140b91c107d2058dee730e75be0b1151/notes","method":"GET","targetSchema":"https://<%= ENV['MAILCHIMP_DC'] %>.api.mailchimp.com/schema/3.0/Lists/Members/Notes/Collection.json"}]}'
89
+ 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"}]}'
970
90
  http_version:
971
- recorded_at: Fri, 03 Jul 2015 09:59:32 GMT
91
+ recorded_at: Tue, 07 Jul 2015 12:02:22 GMT
972
92
  recorded_with: VCR 2.9.3