mailchimp_api_v3 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +38 -0
  3. data/.hound.yml +4 -0
  4. data/.rspec +2 -0
  5. data/.rubocop.yml +26 -0
  6. data/CODE_OF_CONDUCT.md +15 -0
  7. data/Gemfile +2 -0
  8. data/Guardfile +16 -0
  9. data/LICENSE +29 -0
  10. data/README.md +44 -0
  11. data/lib/mailchimp.rb +8 -0
  12. data/lib/mailchimp/account.rb +14 -0
  13. data/lib/mailchimp/client.rb +44 -0
  14. data/lib/mailchimp/client/remote.rb +79 -0
  15. data/lib/mailchimp/collection.rb +45 -0
  16. data/lib/mailchimp/collection/paging.rb +70 -0
  17. data/lib/mailchimp/exception.rb +40 -0
  18. data/lib/mailchimp/instance.rb +31 -0
  19. data/lib/mailchimp/interest.rb +9 -0
  20. data/lib/mailchimp/interest_categories.rb +23 -0
  21. data/lib/mailchimp/interest_category.rb +19 -0
  22. data/lib/mailchimp/interests.rb +25 -0
  23. data/lib/mailchimp/list.rb +20 -0
  24. data/lib/mailchimp/lists.rb +21 -0
  25. data/lib/mailchimp/member.rb +15 -0
  26. data/lib/mailchimp/members.rb +23 -0
  27. data/lib/mailchimp/version.rb +3 -0
  28. data/mailchimp_api_v3.gemspec +34 -0
  29. data/spec/fixtures/cassettes/mailchimp.yml +710 -0
  30. data/spec/fixtures/cassettes/members.yml +266 -0
  31. data/spec/mailchimp/account_spec.rb +17 -0
  32. data/spec/mailchimp/client_spec.rb +56 -0
  33. data/spec/mailchimp/exception_spec.rb +45 -0
  34. data/spec/mailchimp/interest_categories_spec.rb +55 -0
  35. data/spec/mailchimp/interest_category_spec.rb +27 -0
  36. data/spec/mailchimp/interest_spec.rb +22 -0
  37. data/spec/mailchimp/interests_spec.rb +49 -0
  38. data/spec/mailchimp/list_spec.rb +36 -0
  39. data/spec/mailchimp/lists_spec.rb +15 -0
  40. data/spec/mailchimp/member_spec.rb +21 -0
  41. data/spec/mailchimp/members_spec.rb +34 -0
  42. data/spec/mailchimp_spec.rb +20 -0
  43. data/spec/spec_helper.rb +29 -0
  44. data/spec/support/api_key.rb +7 -0
  45. data/spec/support/vcr_setup.rb +14 -0
  46. metadata +288 -0
@@ -0,0 +1,40 @@
1
+ module Mailchimp
2
+ module Exception
3
+ def self.parse_invalid_resource_exception(data)
4
+ if data['detail'].include? 'already exists'
5
+ fail Duplicate, data
6
+ else
7
+ fail BadRequest, data
8
+ end
9
+ end
10
+
11
+ module DataException
12
+ def initialize(data)
13
+ @data = data
14
+ super name || title
15
+ end
16
+
17
+ def method_missing(symbol)
18
+ @data[symbol.id2name]
19
+ end
20
+ end
21
+
22
+ class APIKeyError < RuntimeError
23
+ include DataException
24
+ end
25
+
26
+ class Duplicate < RuntimeError
27
+ include DataException
28
+ end
29
+
30
+ class BadRequest < RuntimeError
31
+ include DataException
32
+ end
33
+
34
+ class UnknownAttribute < RuntimeError
35
+ end
36
+
37
+ class MissingId < RuntimeError
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,31 @@
1
+ module Mailchimp
2
+ module Instance
3
+ def initialize(client, data, collection_path = '')
4
+ @client = client
5
+ @collection_path = collection_path
6
+ @data = data
7
+ #- puts @data # debug
8
+ end
9
+
10
+ def path
11
+ @path ||= "#{@collection_path}/#{@data['id']}"
12
+ end
13
+
14
+ def method_missing(symbol, options = {})
15
+ key = symbol.id2name
16
+ fail_unless_exists key, options
17
+ @data[key]
18
+ end
19
+
20
+ def fail_unless_exists(key, options = {})
21
+ return if @data.key? key
22
+ message = options == {} ? key : "#{key}: #{options}"
23
+ fail Mailchimp::Exception::UnknownAttribute, message
24
+ end
25
+
26
+ def fail_unless_id_in(data = {})
27
+ return if data.key? 'id'
28
+ fail Mailchimp::Exception::MissingId, data
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,9 @@
1
+ module Mailchimp
2
+ class List
3
+ class InterestCategory
4
+ class Interest
5
+ include Instance
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,23 @@
1
+ require 'mailchimp/interest_category'
2
+
3
+ module Mailchimp
4
+ class List
5
+ class InterestCategories < Array
6
+ class << self
7
+ def path_key
8
+ 'interest-categories'
9
+ end
10
+
11
+ def data_key
12
+ 'categories'
13
+ end
14
+
15
+ def child_class
16
+ InterestCategory
17
+ end
18
+ end
19
+
20
+ include Collection
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,19 @@
1
+ require 'mailchimp/interests'
2
+
3
+ module Mailchimp
4
+ class List
5
+ class InterestCategory
6
+ VALID_TYPES = %w(checkboxes dropdown radio hidden)
7
+ include Instance
8
+
9
+ def interests
10
+ Interests.new @client, path
11
+ end
12
+
13
+ def update(data, options = { check_id: true })
14
+ fail_unless_id_in data if options[:check_id]
15
+ @client.post path, data
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,25 @@
1
+ require 'mailchimp/interest'
2
+
3
+ module Mailchimp
4
+ class List
5
+ class InterestCategory
6
+ class Interests < Array
7
+ class << self
8
+ def path_key
9
+ 'interests'
10
+ end
11
+
12
+ def data_key
13
+ 'interests'
14
+ end
15
+
16
+ def child_class
17
+ Interest
18
+ end
19
+ end
20
+
21
+ include Collection
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,20 @@
1
+ require 'mailchimp/members'
2
+ require 'mailchimp/interest_categories'
3
+
4
+ module Mailchimp
5
+ class List
6
+ include Instance
7
+
8
+ def members(options = {})
9
+ Members.new @client, path, options
10
+ end
11
+
12
+ def interest_categories(options = {})
13
+ InterestCategories.new @client, path, options
14
+ end
15
+
16
+ def id_and_name
17
+ "#{id}___#{name}"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,21 @@
1
+ require 'mailchimp/list'
2
+
3
+ module Mailchimp
4
+ class Lists < Array
5
+ class << self
6
+ def path_key
7
+ 'lists'
8
+ end
9
+
10
+ def data_key
11
+ 'lists'
12
+ end
13
+
14
+ def child_class
15
+ List
16
+ end
17
+ end
18
+
19
+ include Collection
20
+ end
21
+ end
@@ -0,0 +1,15 @@
1
+ module Mailchimp
2
+ class List
3
+ class Member
4
+ include Instance
5
+
6
+ def name
7
+ return @name if @name
8
+ fname = merge_fields['FNAME']
9
+ lname = merge_fields['LNAME']
10
+ delim = fname && lname ? ' ' : ''
11
+ @name = "#{fname}#{delim}#{lname}"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,23 @@
1
+ require 'mailchimp/member'
2
+
3
+ module Mailchimp
4
+ class List
5
+ class Members < Array
6
+ class << self
7
+ def path_key
8
+ 'members'
9
+ end
10
+
11
+ def data_key
12
+ 'members'
13
+ end
14
+
15
+ def child_class
16
+ Member
17
+ end
18
+ end
19
+
20
+ include Collection
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,3 @@
1
+ module Mailchimp
2
+ VERSION = '0.0.0'
3
+ end
@@ -0,0 +1,34 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'mailchimp/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'mailchimp_api_v3'
7
+ spec.version = Mailchimp::VERSION
8
+ spec.authors = ['Xenapto']
9
+ spec.email = ['developers@xenapto.com']
10
+ spec.description = 'A simple gem to interact with Mailchimp through their API v3'
11
+ spec.summary = 'Example: Mailchimp.new(mc_key).lists'
12
+ spec.homepage = 'https://github.com/Xenapto/mailchimp_api_v3'
13
+ spec.license = 'BSD'
14
+
15
+ spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
16
+ spec.executables = spec.files.grep(%r{^bin\/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features|coverage)\/})
18
+ spec.require_paths = ['lib']
19
+
20
+ spec.add_runtime_dependency 'rest-client', '> 1.6'
21
+
22
+ spec.add_development_dependency 'bundler', '> 1.8'
23
+ spec.add_development_dependency 'rspec', '~> 3.3'
24
+ spec.add_development_dependency 'rspec_junit_formatter', '~> 0.2'
25
+ spec.add_development_dependency 'gem-release', '~> 0.7'
26
+ spec.add_development_dependency 'simplecov', '~> 0.10'
27
+ spec.add_development_dependency 'coveralls', '~> 0.8'
28
+ spec.add_development_dependency 'vcr', '~> 2.9'
29
+ spec.add_development_dependency 'webmock', '~> 1.21'
30
+ spec.add_development_dependency 'guard', '~> 2.12'
31
+ spec.add_development_dependency 'guard-rspec', '~> 4.5'
32
+ spec.add_development_dependency 'guard-rubocop', '~> 1.2'
33
+ spec.add_development_dependency 'rubocop', '~> 0.32'
34
+ end
@@ -0,0 +1,710 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://us11.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 df8658fb18403e29ef4a8437a8eb3705-us11
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://us11.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://us11.api.mailchimp.com/3.0/lists","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Collection.json"},{"rel":"parent","href":"https://us11.api.mailchimp.com/3.0/","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Root.json"},{"rel":"create","href":"https://us11.api.mailchimp.com/3.0/lists","method":"POST","schema":"https://us11.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://us11.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 df8658fb18403e29ef4a8437a8eb3705-us11
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://us11.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://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"},{"rel":"parent","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Instance.json"},{"rel":"create","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories","method":"POST","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"}],"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://us11.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 df8658fb18403e29ef4a8437a8eb3705-us11
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://us11.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://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Members/Collection.json"},{"rel":"parent","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Instance.json"},{"rel":"create","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/members","method":"POST","schema":"https://us11.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://us11.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 df8658fb18403e29ef4a8437a8eb3705-us11
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://us11.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://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/2ce011eb68/interests","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"},{"rel":"parent","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/2ce011eb68","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"},{"rel":"create","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/2ce011eb68/interests","method":"POST","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"}],"total_items":1}'
174
+ http_version:
175
+ recorded_at: Wed, 01 Jul 2015 17:08:47 GMT
176
+ - request:
177
+ method: get
178
+ uri: https://us11.api.mailchimp.com/3.0
179
+ body:
180
+ encoding: US-ASCII
181
+ string: ''
182
+ headers:
183
+ Accept:
184
+ - "*/*; q=0.5, application/xml"
185
+ Accept-Encoding:
186
+ - gzip, deflate
187
+ Authorization:
188
+ - apikey df8658fb18403e29ef4a8437a8eb3705-us11
189
+ User-Agent:
190
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
191
+ response:
192
+ status:
193
+ code: 301
194
+ message: Moved Permanently
195
+ headers:
196
+ Server:
197
+ - nginx
198
+ Content-Type:
199
+ - text/html; charset=iso-8859-1
200
+ Content-Length:
201
+ - '242'
202
+ Location:
203
+ - http://us11.api.mailchimp.com/3.0/
204
+ Date:
205
+ - Wed, 01 Jul 2015 17:08:47 GMT
206
+ Connection:
207
+ - keep-alive
208
+ body:
209
+ encoding: UTF-8
210
+ string: |
211
+ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
212
+ <html><head>
213
+ <title>301 Moved Permanently</title>
214
+ </head><body>
215
+ <h1>Moved Permanently</h1>
216
+ <p>The document has moved <a href="http://us11.api.mailchimp.com/3.0/">here</a>.</p>
217
+ </body></html>
218
+ http_version:
219
+ recorded_at: Wed, 01 Jul 2015 17:08:47 GMT
220
+ - request:
221
+ method: get
222
+ uri: http://us11.api.mailchimp.com/3.0/
223
+ body:
224
+ encoding: US-ASCII
225
+ string: ''
226
+ headers:
227
+ Accept:
228
+ - "*/*; q=0.5, application/xml"
229
+ Accept-Encoding:
230
+ - gzip, deflate
231
+ Authorization:
232
+ - apikey df8658fb18403e29ef4a8437a8eb3705-us11
233
+ User-Agent:
234
+ - Mailchimp API v3 Ruby gem https://rubygems.org/gems/mailchimp_api_v3
235
+ Cookie:
236
+ - ''
237
+ response:
238
+ status:
239
+ code: 200
240
+ message: OK
241
+ headers:
242
+ Server:
243
+ - nginx
244
+ Content-Type:
245
+ - application/json; charset=utf-8
246
+ Content-Length:
247
+ - '2003'
248
+ X-Request-Id:
249
+ - d02004c8-9ec6-4ce1-b041-540b59ea05b9
250
+ Link:
251
+ - <https://us11.api.mailchimp.com/schema/3.0/Root.json>; rel="describedBy"
252
+ Vary:
253
+ - Accept-Encoding
254
+ Date:
255
+ - Wed, 01 Jul 2015 17:08:47 GMT
256
+ Connection:
257
+ - keep-alive
258
+ body:
259
+ encoding: ASCII-8BIT
260
+ string: '{"account_id":"1dbca289fd41b54838bcbb501","account_name":"InSite Arts","contact":{"company":"InSite
261
+ 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://us11.api.mailchimp.com/3.0/","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Root.json"},{"rel":"lists","href":"https://us11.api.mailchimp.com/3.0/lists","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Collection.json"},{"rel":"reports","href":"https://us11.api.mailchimp.com/3.0/reports","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Reports/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Reports.json"},{"rel":"conversations","href":"https://us11.api.mailchimp.com/3.0/conversations","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Conversations/Collection.json"},{"rel":"campaigns","href":"https://us11.api.mailchimp.com/3.0/campaigns","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Campaigns/Collection.json","schema":"https://us11.api.mailchimp.com/schema/3.0/CollectionLinks/Campaigns.json"},{"rel":"automations","href":"https://us11.api.mailchimp.com/3.0/automations","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Automations/Collection.json"},{"rel":"templates","href":"https://us11.api.mailchimp.com/3.0/templates","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Templates/Collection.json"},{"rel":"file-manager","href":"https://us11.api.mailchimp.com/3.0/file-manager","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/FileManager/Namespace.json"},{"rel":"authorized-apps","href":"https://us11.api.mailchimp.com/3.0/authorized-apps","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/AuthorizedApps/Collection.json"}]}'
263
+ http_version:
264
+ recorded_at: Wed, 01 Jul 2015 17:08:47 GMT
265
+ - request:
266
+ method: get
267
+ uri: https://us11.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://us11.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://us11.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://us11.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://us11.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://us11.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 df8658fb18403e29ef4a8437a8eb3705-us11
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://us11.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://us11.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 df8658fb18403e29ef4a8437a8eb3705-us11
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://us11.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://us11.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 df8658fb18403e29ef4a8437a8eb3705-us11
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://us11.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://us11.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 df8658fb18403e29ef4a8437a8eb3705-us11
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://us11.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://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/05d6479d86","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"},{"rel":"update","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/05d6479d86","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/05d6479d86","method":"DELETE"},{"rel":"interests","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/05d6479d86/interests","method":"GET","targetSchema":"https://us11.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://us11.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 df8658fb18403e29ef4a8437a8eb3705-us11
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://us11.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://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/3b3d29c068","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"},{"rel":"update","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/3b3d29c068","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/3b3d29c068","method":"DELETE"},{"rel":"interests","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/3b3d29c068/interests","method":"GET","targetSchema":"https://us11.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://us11.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 df8658fb18403e29ef4a8437a8eb3705-us11
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://us11.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://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/2ce011eb68/interests/471d85abc5","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/2ce011eb68/interests","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"},{"rel":"update","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/2ce011eb68/interests/471d85abc5","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/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://us11.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 df8658fb18403e29ef4a8437a8eb3705-us11
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://us11.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://us11.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 df8658fb18403e29ef4a8437a8eb3705-us11
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://us11.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://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/2ce011eb68/interests/25f9dcf0db","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/2ce011eb68/interests","method":"GET","targetSchema":"https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"},{"rel":"update","href":"https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/2ce011eb68/interests/25f9dcf0db","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/2ce011eb68/interests/25f9dcf0db","method":"DELETE"}]}'
708
+ http_version:
709
+ recorded_at: Wed, 01 Jul 2015 18:05:09 GMT
710
+ recorded_with: VCR 2.9.3