cloudapp-service 1.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +34 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +56 -0
- data/MIT-LICENSE +20 -0
- data/README.md +14 -0
- data/Rakefile +148 -0
- data/cloudapp-service.gemspec +115 -0
- data/lib/cloudapp/collection_json.rb +3 -0
- data/lib/cloudapp/collection_json/item.rb +20 -0
- data/lib/cloudapp/collection_json/representation.rb +74 -0
- data/lib/cloudapp/collection_json/template.rb +17 -0
- data/lib/cloudapp/collection_json/tint.rb +11 -0
- data/lib/cloudapp/service.rb +204 -0
- data/lib/cloudapp/service/authorized_representation.rb +17 -0
- data/lib/cloudapp/service/drop.rb +44 -0
- data/lib/cloudapp/service/drop_collection.rb +39 -0
- data/spec/cassettes/account_token.yml +88 -0
- data/spec/cassettes/create_bookmark.yml +132 -0
- data/spec/cassettes/create_bookmark_with_name.yml +133 -0
- data/spec/cassettes/create_bookmark_with_privacy.yml +133 -0
- data/spec/cassettes/delete_drop.yml +215 -0
- data/spec/cassettes/list_drops.yml +488 -0
- data/spec/cassettes/list_drops_with_bad_token.yml +45 -0
- data/spec/cassettes/list_drops_with_filter.yml +345 -0
- data/spec/cassettes/list_drops_with_limit.yml +129 -0
- data/spec/cassettes/privatize_drop.yml +222 -0
- data/spec/cassettes/publicize_drop.yml +222 -0
- data/spec/cassettes/purge_drops.yml +764 -0
- data/spec/cassettes/recover_drop.yml +309 -0
- data/spec/cassettes/rename_drop.yml +222 -0
- data/spec/cassettes/token_for_account.yml +88 -0
- data/spec/cassettes/token_for_account_with_bad_credentials.yml +86 -0
- data/spec/cassettes/trash_drop.yml +222 -0
- data/spec/cassettes/update_drop_bookmark_url.yml +222 -0
- data/spec/cassettes/update_file.yml +365 -0
- data/spec/cassettes/upload_file.yml +276 -0
- data/spec/cassettes/upload_file_with_name.yml +278 -0
- data/spec/cassettes/upload_file_with_privacy.yml +277 -0
- data/spec/cassettes/view_drop.yml +174 -0
- data/spec/cloudapp/authorized_representation_spec.rb +32 -0
- data/spec/cloudapp/collection_json/item_spec.rb +45 -0
- data/spec/cloudapp/collection_json/representation_spec.rb +118 -0
- data/spec/cloudapp/collection_json/template_spec.rb +53 -0
- data/spec/cloudapp/drop_collection_spec.rb +148 -0
- data/spec/cloudapp/drop_spec.rb +186 -0
- data/spec/cloudapp/service_spec.rb +321 -0
- data/spec/helper.rb +8 -0
- data/spec/integration_spec.rb +77 -0
- data/spec/support/files/favicon.ico +0 -0
- data/spec/support/stub_class_or_module.rb +22 -0
- data/spec/support/vcr.rb +24 -0
- metadata +194 -0
@@ -0,0 +1,309 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.getcloudapp.com/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Token token="abc123"
|
12
|
+
Accept:
|
13
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
14
|
+
text/plain
|
15
|
+
Accept-Encoding:
|
16
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
17
|
+
User-Agent:
|
18
|
+
- Ruby
|
19
|
+
response:
|
20
|
+
status:
|
21
|
+
code: 200
|
22
|
+
message: OK
|
23
|
+
headers:
|
24
|
+
Cache-Control:
|
25
|
+
- max-age=0, private, must-revalidate
|
26
|
+
Content-Type:
|
27
|
+
- application/vnd.collection+json; charset=utf-8
|
28
|
+
Etag:
|
29
|
+
- ! '"44e8e003e0f1b5e38f7ca916ff4497d7"'
|
30
|
+
Server:
|
31
|
+
- thin 1.4.1 codename Chromeo
|
32
|
+
X-Runtime:
|
33
|
+
- '0.007918'
|
34
|
+
X-Ua-Compatible:
|
35
|
+
- IE=Edge,chrome=1
|
36
|
+
Content-Length:
|
37
|
+
- '139'
|
38
|
+
Connection:
|
39
|
+
- keep-alive
|
40
|
+
body:
|
41
|
+
encoding: US-ASCII
|
42
|
+
string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/","links":[{"rel":"drops","href":"https://api.getcloudapp.com/drops"}]}}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Tue, 11 Sep 2012 15:47:12 GMT
|
45
|
+
- request:
|
46
|
+
method: get
|
47
|
+
uri: https://api.getcloudapp.com/drops
|
48
|
+
body:
|
49
|
+
encoding: US-ASCII
|
50
|
+
string: ''
|
51
|
+
headers:
|
52
|
+
Authorization:
|
53
|
+
- Token token="abc123"
|
54
|
+
Accept:
|
55
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
56
|
+
text/plain
|
57
|
+
Accept-Encoding:
|
58
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
59
|
+
User-Agent:
|
60
|
+
- Ruby
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Cache-Control:
|
67
|
+
- max-age=0, private, must-revalidate
|
68
|
+
Content-Type:
|
69
|
+
- application/vnd.collection+json; charset=utf-8
|
70
|
+
Etag:
|
71
|
+
- ! '"f9afa92f138bd050b4fbc69e7cb517bc"'
|
72
|
+
Server:
|
73
|
+
- thin 1.4.1 codename Chromeo
|
74
|
+
X-Runtime:
|
75
|
+
- '0.042458'
|
76
|
+
X-Ua-Compatible:
|
77
|
+
- IE=Edge,chrome=1
|
78
|
+
Transfer-Encoding:
|
79
|
+
- chunked
|
80
|
+
Connection:
|
81
|
+
- keep-alive
|
82
|
+
body:
|
83
|
+
encoding: US-ASCII
|
84
|
+
string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21907698","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/JOI3"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907698},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":false},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:47:11Z"}]},{"href":"https://api.getcloudapp.com/drops/21907697","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/3U1Q170u0g2b"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907697},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:47:09Z"}]},{"href":"https://api.getcloudapp.com/drops/21907695","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/image/3Q313d440a3B"},{"rel":"icon","href":"https://thumbs.getcloudapp.com/3Q313d440a3B"},{"rel":"embed","href":"http://cl.ly/image/3Q313d440a3B/favicon.ico"},{"rel":"download","href":"http://cl.ly/image/3Q313d440a3B/download/favicon.ico"}],"data":[{"name":"id","value":21907695},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:47:06Z"}]},{"href":"https://api.getcloudapp.com/drops/21907694","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/02073a0O3m0F"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907694},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:47:04Z"}]},{"href":"https://api.getcloudapp.com/drops/21907693","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/JNym"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907693},{"name":"name","value":"New
|
85
|
+
Drop Name"},{"name":"private","value":false},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:47:02Z"}]},{"href":"https://api.getcloudapp.com/drops/21907691","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/JNxB"},{"rel":"icon","href":"https://thumbs.getcloudapp.com/JNxB"},{"rel":"embed","href":"http://cl.ly/JNxB/favicon.ico"},{"rel":"download","href":"http://cl.ly/JNxB/download/favicon.ico"}],"data":[{"name":"id","value":21907691},{"name":"name","value":"favicon.ico"},{"name":"private","value":false},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:47:01Z"}]},{"href":"https://api.getcloudapp.com/drops/21907690","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/image/1o3e271l1G0n"},{"rel":"icon","href":"https://thumbs.getcloudapp.com/1o3e271l1G0n"},{"rel":"embed","href":"http://cl.ly/image/1o3e271l1G0n/favicon.ico"},{"rel":"download","href":"http://cl.ly/image/1o3e271l1G0n/download/favicon.ico"}],"data":[{"name":"id","value":21907690},{"name":"name","value":"New
|
86
|
+
File"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:59Z"}]},{"href":"https://api.getcloudapp.com/drops/21907688","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/image/0o2S0W1n2L30"},{"rel":"icon","href":"https://thumbs.getcloudapp.com/0o2S0W1n2L30"},{"rel":"embed","href":"http://cl.ly/image/0o2S0W1n2L30/favicon.ico"},{"rel":"download","href":"http://cl.ly/image/0o2S0W1n2L30/download/favicon.ico"}],"data":[{"name":"id","value":21907688},{"name":"name","value":"favicon.ico"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:57Z"}]},{"href":"https://api.getcloudapp.com/drops/21907686","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/JNXA"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907686},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":false},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:56Z"}]},{"href":"https://api.getcloudapp.com/drops/21907685","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/2k1L0G2U2z0I"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907685},{"name":"name","value":"New
|
87
|
+
Bookmark"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:55Z"}]},{"href":"https://api.getcloudapp.com/drops/21907683","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/0e0E2w0w0T0U"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907683},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:54Z"}]},{"href":"https://api.getcloudapp.com/drops/21907682","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/2x3S331L1a3o"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907682},{"name":"name","value":"http://cl.ly"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:52Z"}]},{"href":"https://api.getcloudapp.com/drops/21907679","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/1G282W04401a"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907679},{"name":"name","value":"http://cl.ly"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:47Z"}]},{"href":"https://api.getcloudapp.com/drops/21907678","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/image/1u232n412l14"},{"rel":"icon","href":"https://thumbs.getcloudapp.com/1u232n412l14"},{"rel":"embed","href":"http://cl.ly/image/1u232n412l14/favicon.ico"},{"rel":"download","href":"http://cl.ly/image/1u232n412l14/download/favicon.ico"}],"data":[{"name":"id","value":21907678},{"name":"name","value":"favicon.ico"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:45Z"}]}]}}'
|
88
|
+
http_version:
|
89
|
+
recorded_at: Tue, 11 Sep 2012 15:47:13 GMT
|
90
|
+
- request:
|
91
|
+
method: post
|
92
|
+
uri: https://api.getcloudapp.com/drops
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: ! '{"name":null,"private":true,"trash":false,"bookmark_url":"http://getcloudapp.com","file_size":null}'
|
96
|
+
headers:
|
97
|
+
Authorization:
|
98
|
+
- Token token="abc123"
|
99
|
+
Content-Type:
|
100
|
+
- application/json
|
101
|
+
Accept:
|
102
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
103
|
+
text/plain
|
104
|
+
User-Agent:
|
105
|
+
- Ruby
|
106
|
+
response:
|
107
|
+
status:
|
108
|
+
code: 201
|
109
|
+
message: Created
|
110
|
+
headers:
|
111
|
+
Cache-Control:
|
112
|
+
- max-age=0, private, must-revalidate
|
113
|
+
Content-Type:
|
114
|
+
- application/vnd.collection+json; charset=utf-8
|
115
|
+
Etag:
|
116
|
+
- ! '"914027b963d82d484cfe62776d606cea"'
|
117
|
+
Server:
|
118
|
+
- thin 1.4.1 codename Chromeo
|
119
|
+
Set-Cookie:
|
120
|
+
- _engine_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTAzYWJjZGFkYjNlOGQzZGE3NGQzNzQ5OWQ5NDM2MTA3BjsAVA%3D%3D--0c609c3e5abb56d97385bb4c9820a373cded58b3;
|
121
|
+
path=/; HttpOnly
|
122
|
+
X-Runtime:
|
123
|
+
- '0.089885'
|
124
|
+
X-Ua-Compatible:
|
125
|
+
- IE=Edge,chrome=1
|
126
|
+
Transfer-Encoding:
|
127
|
+
- chunked
|
128
|
+
Connection:
|
129
|
+
- keep-alive
|
130
|
+
body:
|
131
|
+
encoding: US-ASCII
|
132
|
+
string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21907702","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/1N291V302m2S"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907702},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:47:15Z"}]}]}}'
|
133
|
+
http_version:
|
134
|
+
recorded_at: Tue, 11 Sep 2012 15:47:13 GMT
|
135
|
+
- request:
|
136
|
+
method: get
|
137
|
+
uri: https://api.getcloudapp.com/drops/21907702
|
138
|
+
body:
|
139
|
+
encoding: US-ASCII
|
140
|
+
string: ''
|
141
|
+
headers:
|
142
|
+
Authorization:
|
143
|
+
- Token token="abc123"
|
144
|
+
Accept:
|
145
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
146
|
+
text/plain
|
147
|
+
Accept-Encoding:
|
148
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
149
|
+
User-Agent:
|
150
|
+
- Ruby
|
151
|
+
response:
|
152
|
+
status:
|
153
|
+
code: 200
|
154
|
+
message: OK
|
155
|
+
headers:
|
156
|
+
Cache-Control:
|
157
|
+
- max-age=0, private, must-revalidate
|
158
|
+
Content-Type:
|
159
|
+
- application/vnd.collection+json; charset=utf-8
|
160
|
+
Etag:
|
161
|
+
- ! '"914027b963d82d484cfe62776d606cea"'
|
162
|
+
Server:
|
163
|
+
- thin 1.4.1 codename Chromeo
|
164
|
+
X-Runtime:
|
165
|
+
- '0.028473'
|
166
|
+
X-Ua-Compatible:
|
167
|
+
- IE=Edge,chrome=1
|
168
|
+
Transfer-Encoding:
|
169
|
+
- chunked
|
170
|
+
Connection:
|
171
|
+
- keep-alive
|
172
|
+
body:
|
173
|
+
encoding: US-ASCII
|
174
|
+
string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21907702","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/1N291V302m2S"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907702},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:47:15Z"}]}]}}'
|
175
|
+
http_version:
|
176
|
+
recorded_at: Tue, 11 Sep 2012 15:47:14 GMT
|
177
|
+
- request:
|
178
|
+
method: put
|
179
|
+
uri: https://api.getcloudapp.com/drops/21907702
|
180
|
+
body:
|
181
|
+
encoding: UTF-8
|
182
|
+
string: ! '{"name":"http://getcloudapp.com","private":true,"trash":true,"bookmark_url":null,"file_size":null}'
|
183
|
+
headers:
|
184
|
+
Authorization:
|
185
|
+
- Token token="abc123"
|
186
|
+
Content-Type:
|
187
|
+
- application/json
|
188
|
+
Accept:
|
189
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
190
|
+
text/plain
|
191
|
+
User-Agent:
|
192
|
+
- Ruby
|
193
|
+
response:
|
194
|
+
status:
|
195
|
+
code: 200
|
196
|
+
message: OK
|
197
|
+
headers:
|
198
|
+
Cache-Control:
|
199
|
+
- max-age=0, private, must-revalidate
|
200
|
+
Content-Type:
|
201
|
+
- application/vnd.collection+json; charset=utf-8
|
202
|
+
Etag:
|
203
|
+
- ! '"b45b7e33e9884cee04aa8e5ddf54f851"'
|
204
|
+
Server:
|
205
|
+
- thin 1.4.1 codename Chromeo
|
206
|
+
Set-Cookie:
|
207
|
+
- _engine_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTk3NzI5NTg3ZmMzYzI0ZDg4NjQ0N2QwNjljMWU4YjExBjsAVA%3D%3D--e7c77bdb87f98aea280d1cc92e70099b7536b51f;
|
208
|
+
path=/; HttpOnly
|
209
|
+
X-Runtime:
|
210
|
+
- '0.124712'
|
211
|
+
X-Ua-Compatible:
|
212
|
+
- IE=Edge,chrome=1
|
213
|
+
Transfer-Encoding:
|
214
|
+
- chunked
|
215
|
+
Connection:
|
216
|
+
- keep-alive
|
217
|
+
body:
|
218
|
+
encoding: US-ASCII
|
219
|
+
string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21907702","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/1N291V302m2S"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907702},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":true},{"name":"trash","value":true},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:47:15Z"}]}]}}'
|
220
|
+
http_version:
|
221
|
+
recorded_at: Tue, 11 Sep 2012 15:47:14 GMT
|
222
|
+
- request:
|
223
|
+
method: get
|
224
|
+
uri: https://api.getcloudapp.com/drops/21907702
|
225
|
+
body:
|
226
|
+
encoding: US-ASCII
|
227
|
+
string: ''
|
228
|
+
headers:
|
229
|
+
Authorization:
|
230
|
+
- Token token="abc123"
|
231
|
+
Accept:
|
232
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
233
|
+
text/plain
|
234
|
+
Accept-Encoding:
|
235
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
236
|
+
User-Agent:
|
237
|
+
- Ruby
|
238
|
+
response:
|
239
|
+
status:
|
240
|
+
code: 200
|
241
|
+
message: OK
|
242
|
+
headers:
|
243
|
+
Cache-Control:
|
244
|
+
- max-age=0, private, must-revalidate
|
245
|
+
Content-Type:
|
246
|
+
- application/vnd.collection+json; charset=utf-8
|
247
|
+
Etag:
|
248
|
+
- ! '"b45b7e33e9884cee04aa8e5ddf54f851"'
|
249
|
+
Server:
|
250
|
+
- thin 1.4.1 codename Chromeo
|
251
|
+
X-Runtime:
|
252
|
+
- '0.014547'
|
253
|
+
X-Ua-Compatible:
|
254
|
+
- IE=Edge,chrome=1
|
255
|
+
Transfer-Encoding:
|
256
|
+
- chunked
|
257
|
+
Connection:
|
258
|
+
- keep-alive
|
259
|
+
body:
|
260
|
+
encoding: US-ASCII
|
261
|
+
string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21907702","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/1N291V302m2S"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907702},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":true},{"name":"trash","value":true},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:47:15Z"}]}]}}'
|
262
|
+
http_version:
|
263
|
+
recorded_at: Tue, 11 Sep 2012 15:47:14 GMT
|
264
|
+
- request:
|
265
|
+
method: put
|
266
|
+
uri: https://api.getcloudapp.com/drops/21907702
|
267
|
+
body:
|
268
|
+
encoding: UTF-8
|
269
|
+
string: ! '{"name":"http://getcloudapp.com","private":true,"trash":false,"bookmark_url":null,"file_size":null}'
|
270
|
+
headers:
|
271
|
+
Authorization:
|
272
|
+
- Token token="abc123"
|
273
|
+
Content-Type:
|
274
|
+
- application/json
|
275
|
+
Accept:
|
276
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
277
|
+
text/plain
|
278
|
+
User-Agent:
|
279
|
+
- Ruby
|
280
|
+
response:
|
281
|
+
status:
|
282
|
+
code: 200
|
283
|
+
message: OK
|
284
|
+
headers:
|
285
|
+
Cache-Control:
|
286
|
+
- max-age=0, private, must-revalidate
|
287
|
+
Content-Type:
|
288
|
+
- application/vnd.collection+json; charset=utf-8
|
289
|
+
Etag:
|
290
|
+
- ! '"914027b963d82d484cfe62776d606cea"'
|
291
|
+
Server:
|
292
|
+
- thin 1.4.1 codename Chromeo
|
293
|
+
Set-Cookie:
|
294
|
+
- _engine_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWIzMDhhOTRiNzllNzczNjc1YWJiNmM3ZjRhNDYyY2ViBjsAVA%3D%3D--090cb6826296c2cafbbc8f4d75107b51da732847;
|
295
|
+
path=/; HttpOnly
|
296
|
+
X-Runtime:
|
297
|
+
- '0.095984'
|
298
|
+
X-Ua-Compatible:
|
299
|
+
- IE=Edge,chrome=1
|
300
|
+
Transfer-Encoding:
|
301
|
+
- chunked
|
302
|
+
Connection:
|
303
|
+
- keep-alive
|
304
|
+
body:
|
305
|
+
encoding: US-ASCII
|
306
|
+
string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21907702","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/1N291V302m2S"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907702},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:47:15Z"}]}]}}'
|
307
|
+
http_version:
|
308
|
+
recorded_at: Tue, 11 Sep 2012 15:47:15 GMT
|
309
|
+
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,222 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.getcloudapp.com/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Token token="abc123"
|
12
|
+
Accept:
|
13
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
14
|
+
text/plain
|
15
|
+
Accept-Encoding:
|
16
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
17
|
+
User-Agent:
|
18
|
+
- Ruby
|
19
|
+
response:
|
20
|
+
status:
|
21
|
+
code: 200
|
22
|
+
message: OK
|
23
|
+
headers:
|
24
|
+
Cache-Control:
|
25
|
+
- max-age=0, private, must-revalidate
|
26
|
+
Content-Type:
|
27
|
+
- application/vnd.collection+json; charset=utf-8
|
28
|
+
Etag:
|
29
|
+
- ! '"44e8e003e0f1b5e38f7ca916ff4497d7"'
|
30
|
+
Server:
|
31
|
+
- thin 1.4.1 codename Chromeo
|
32
|
+
X-Runtime:
|
33
|
+
- '0.007158'
|
34
|
+
X-Ua-Compatible:
|
35
|
+
- IE=Edge,chrome=1
|
36
|
+
Content-Length:
|
37
|
+
- '139'
|
38
|
+
Connection:
|
39
|
+
- keep-alive
|
40
|
+
body:
|
41
|
+
encoding: US-ASCII
|
42
|
+
string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/","links":[{"rel":"drops","href":"https://api.getcloudapp.com/drops"}]}}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Tue, 11 Sep 2012 15:47:00 GMT
|
45
|
+
- request:
|
46
|
+
method: get
|
47
|
+
uri: https://api.getcloudapp.com/drops
|
48
|
+
body:
|
49
|
+
encoding: US-ASCII
|
50
|
+
string: ''
|
51
|
+
headers:
|
52
|
+
Authorization:
|
53
|
+
- Token token="abc123"
|
54
|
+
Accept:
|
55
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
56
|
+
text/plain
|
57
|
+
Accept-Encoding:
|
58
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
59
|
+
User-Agent:
|
60
|
+
- Ruby
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Cache-Control:
|
67
|
+
- max-age=0, private, must-revalidate
|
68
|
+
Content-Type:
|
69
|
+
- application/vnd.collection+json; charset=utf-8
|
70
|
+
Etag:
|
71
|
+
- ! '"9a69fafdf3a27abe7552e91969aeb2a5"'
|
72
|
+
Server:
|
73
|
+
- thin 1.4.1 codename Chromeo
|
74
|
+
X-Runtime:
|
75
|
+
- '0.036683'
|
76
|
+
X-Ua-Compatible:
|
77
|
+
- IE=Edge,chrome=1
|
78
|
+
Transfer-Encoding:
|
79
|
+
- chunked
|
80
|
+
Connection:
|
81
|
+
- keep-alive
|
82
|
+
body:
|
83
|
+
encoding: US-ASCII
|
84
|
+
string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21907691","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/JNxB"},{"rel":"icon","href":"https://thumbs.getcloudapp.com/JNxB"},{"rel":"embed","href":"http://cl.ly/JNxB/favicon.ico"},{"rel":"download","href":"http://cl.ly/JNxB/download/favicon.ico"}],"data":[{"name":"id","value":21907691},{"name":"name","value":"favicon.ico"},{"name":"private","value":false},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:47:01Z"}]},{"href":"https://api.getcloudapp.com/drops/21907690","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/image/1o3e271l1G0n"},{"rel":"icon","href":"https://thumbs.getcloudapp.com/1o3e271l1G0n"},{"rel":"embed","href":"http://cl.ly/image/1o3e271l1G0n/favicon.ico"},{"rel":"download","href":"http://cl.ly/image/1o3e271l1G0n/download/favicon.ico"}],"data":[{"name":"id","value":21907690},{"name":"name","value":"New
|
85
|
+
File"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:59Z"}]},{"href":"https://api.getcloudapp.com/drops/21907688","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/image/0o2S0W1n2L30"},{"rel":"icon","href":"https://thumbs.getcloudapp.com/0o2S0W1n2L30"},{"rel":"embed","href":"http://cl.ly/image/0o2S0W1n2L30/favicon.ico"},{"rel":"download","href":"http://cl.ly/image/0o2S0W1n2L30/download/favicon.ico"}],"data":[{"name":"id","value":21907688},{"name":"name","value":"favicon.ico"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:57Z"}]},{"href":"https://api.getcloudapp.com/drops/21907686","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/JNXA"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907686},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":false},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:56Z"}]},{"href":"https://api.getcloudapp.com/drops/21907685","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/2k1L0G2U2z0I"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907685},{"name":"name","value":"New
|
86
|
+
Bookmark"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:55Z"}]},{"href":"https://api.getcloudapp.com/drops/21907683","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/0e0E2w0w0T0U"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907683},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:54Z"}]},{"href":"https://api.getcloudapp.com/drops/21907682","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/2x3S331L1a3o"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907682},{"name":"name","value":"http://cl.ly"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:52Z"}]},{"href":"https://api.getcloudapp.com/drops/21907679","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/1G282W04401a"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907679},{"name":"name","value":"http://cl.ly"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:47Z"}]},{"href":"https://api.getcloudapp.com/drops/21907678","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/image/1u232n412l14"},{"rel":"icon","href":"https://thumbs.getcloudapp.com/1u232n412l14"},{"rel":"embed","href":"http://cl.ly/image/1u232n412l14/favicon.ico"},{"rel":"download","href":"http://cl.ly/image/1u232n412l14/download/favicon.ico"}],"data":[{"name":"id","value":21907678},{"name":"name","value":"favicon.ico"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:45Z"}]}]}}'
|
87
|
+
http_version:
|
88
|
+
recorded_at: Tue, 11 Sep 2012 15:47:00 GMT
|
89
|
+
- request:
|
90
|
+
method: post
|
91
|
+
uri: https://api.getcloudapp.com/drops
|
92
|
+
body:
|
93
|
+
encoding: UTF-8
|
94
|
+
string: ! '{"name":null,"private":true,"trash":false,"bookmark_url":"http://getcloudapp.com","file_size":null}'
|
95
|
+
headers:
|
96
|
+
Authorization:
|
97
|
+
- Token token="abc123"
|
98
|
+
Content-Type:
|
99
|
+
- application/json
|
100
|
+
Accept:
|
101
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
102
|
+
text/plain
|
103
|
+
User-Agent:
|
104
|
+
- Ruby
|
105
|
+
response:
|
106
|
+
status:
|
107
|
+
code: 201
|
108
|
+
message: Created
|
109
|
+
headers:
|
110
|
+
Cache-Control:
|
111
|
+
- max-age=0, private, must-revalidate
|
112
|
+
Content-Type:
|
113
|
+
- application/vnd.collection+json; charset=utf-8
|
114
|
+
Etag:
|
115
|
+
- ! '"a94bd5fd088243ea5ed7f4738b8c954c"'
|
116
|
+
Server:
|
117
|
+
- thin 1.4.1 codename Chromeo
|
118
|
+
Set-Cookie:
|
119
|
+
- _engine_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWE2MDhkMDdhZGVlYjQxMDc1ZTc4ZGUzOWU4ZjEyMWVmBjsAVA%3D%3D--10651a7dece15b2e229465475ad460657d1c0a81;
|
120
|
+
path=/; HttpOnly
|
121
|
+
X-Runtime:
|
122
|
+
- '0.081506'
|
123
|
+
X-Ua-Compatible:
|
124
|
+
- IE=Edge,chrome=1
|
125
|
+
Content-Length:
|
126
|
+
- '1005'
|
127
|
+
Connection:
|
128
|
+
- keep-alive
|
129
|
+
body:
|
130
|
+
encoding: US-ASCII
|
131
|
+
string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21907693","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/1S3r1O211H0a"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907693},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:47:02Z"}]}]}}'
|
132
|
+
http_version:
|
133
|
+
recorded_at: Tue, 11 Sep 2012 15:47:01 GMT
|
134
|
+
- request:
|
135
|
+
method: get
|
136
|
+
uri: https://api.getcloudapp.com/drops/21907693
|
137
|
+
body:
|
138
|
+
encoding: US-ASCII
|
139
|
+
string: ''
|
140
|
+
headers:
|
141
|
+
Authorization:
|
142
|
+
- Token token="abc123"
|
143
|
+
Accept:
|
144
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
145
|
+
text/plain
|
146
|
+
Accept-Encoding:
|
147
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
148
|
+
User-Agent:
|
149
|
+
- Ruby
|
150
|
+
response:
|
151
|
+
status:
|
152
|
+
code: 200
|
153
|
+
message: OK
|
154
|
+
headers:
|
155
|
+
Cache-Control:
|
156
|
+
- max-age=0, private, must-revalidate
|
157
|
+
Content-Type:
|
158
|
+
- application/vnd.collection+json; charset=utf-8
|
159
|
+
Etag:
|
160
|
+
- ! '"a94bd5fd088243ea5ed7f4738b8c954c"'
|
161
|
+
Server:
|
162
|
+
- thin 1.4.1 codename Chromeo
|
163
|
+
X-Runtime:
|
164
|
+
- '0.031064'
|
165
|
+
X-Ua-Compatible:
|
166
|
+
- IE=Edge,chrome=1
|
167
|
+
Content-Length:
|
168
|
+
- '1005'
|
169
|
+
Connection:
|
170
|
+
- keep-alive
|
171
|
+
body:
|
172
|
+
encoding: US-ASCII
|
173
|
+
string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21907693","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/1S3r1O211H0a"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907693},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:47:02Z"}]}]}}'
|
174
|
+
http_version:
|
175
|
+
recorded_at: Tue, 11 Sep 2012 15:47:01 GMT
|
176
|
+
- request:
|
177
|
+
method: put
|
178
|
+
uri: https://api.getcloudapp.com/drops/21907693
|
179
|
+
body:
|
180
|
+
encoding: UTF-8
|
181
|
+
string: ! '{"name":"New Drop Name","private":false,"trash":false,"bookmark_url":null,"file_size":null}'
|
182
|
+
headers:
|
183
|
+
Authorization:
|
184
|
+
- Token token="abc123"
|
185
|
+
Content-Type:
|
186
|
+
- application/json
|
187
|
+
Accept:
|
188
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
189
|
+
text/plain
|
190
|
+
User-Agent:
|
191
|
+
- Ruby
|
192
|
+
response:
|
193
|
+
status:
|
194
|
+
code: 200
|
195
|
+
message: OK
|
196
|
+
headers:
|
197
|
+
Cache-Control:
|
198
|
+
- max-age=0, private, must-revalidate
|
199
|
+
Content-Type:
|
200
|
+
- application/vnd.collection+json; charset=utf-8
|
201
|
+
Etag:
|
202
|
+
- ! '"46cbd487d7022a1f2111d7464a0c2613"'
|
203
|
+
Server:
|
204
|
+
- thin 1.4.1 codename Chromeo
|
205
|
+
Set-Cookie:
|
206
|
+
- _engine_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJThhNWNiNmE3Y2IxNzVlZjY0NDk2NzEwYjZlZDJkZWVjBjsAVA%3D%3D--7c0236d97b6b13501476d0857716f72aaf6c7209;
|
207
|
+
path=/; HttpOnly
|
208
|
+
X-Runtime:
|
209
|
+
- '0.057877'
|
210
|
+
X-Ua-Compatible:
|
211
|
+
- IE=Edge,chrome=1
|
212
|
+
Transfer-Encoding:
|
213
|
+
- chunked
|
214
|
+
Connection:
|
215
|
+
- keep-alive
|
216
|
+
body:
|
217
|
+
encoding: US-ASCII
|
218
|
+
string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21907693","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/JNym"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907693},{"name":"name","value":"New
|
219
|
+
Drop Name"},{"name":"private","value":false},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:47:02Z"}]}]}}'
|
220
|
+
http_version:
|
221
|
+
recorded_at: Tue, 11 Sep 2012 15:47:02 GMT
|
222
|
+
recorded_with: VCR 2.0.1
|