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,45 @@
|
|
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="wrong"
|
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: 401
|
22
|
+
message: Unauthorized
|
23
|
+
headers:
|
24
|
+
Cache-Control:
|
25
|
+
- no-cache
|
26
|
+
Content-Type:
|
27
|
+
- application/vnd.collection+json; charset=utf-8
|
28
|
+
Server:
|
29
|
+
- thin 1.4.1 codename Chromeo
|
30
|
+
Www-Authenticate:
|
31
|
+
- Token realm="CloudApp"
|
32
|
+
X-Runtime:
|
33
|
+
- '0.005517'
|
34
|
+
X-Ua-Compatible:
|
35
|
+
- IE=Edge,chrome=1
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
Connection:
|
39
|
+
- keep-alive
|
40
|
+
body:
|
41
|
+
encoding: US-ASCII
|
42
|
+
string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/account/token","links":[{"rel":"root","href":"https://api.getcloudapp.com/"}],"template":{"data":[{"name":"email","value":null},{"name":"password","value":null}]}}}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Tue, 11 Sep 2012 15:46:50 GMT
|
45
|
+
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,345 @@
|
|
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.004511'
|
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:46:46 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
|
+
- ! '"e99f62e3f2bdb84c23f5e4072ad6d53a"'
|
72
|
+
Server:
|
73
|
+
- thin 1.4.1 codename Chromeo
|
74
|
+
X-Runtime:
|
75
|
+
- '0.017125'
|
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/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"}]}]}}'
|
85
|
+
http_version:
|
86
|
+
recorded_at: Tue, 11 Sep 2012 15:46:47 GMT
|
87
|
+
- request:
|
88
|
+
method: post
|
89
|
+
uri: https://api.getcloudapp.com/drops
|
90
|
+
body:
|
91
|
+
encoding: UTF-8
|
92
|
+
string: ! '{"name":null,"private":true,"trash":false,"bookmark_url":"http://cl.ly","file_size":null}'
|
93
|
+
headers:
|
94
|
+
Authorization:
|
95
|
+
- Token token="abc123"
|
96
|
+
Content-Type:
|
97
|
+
- application/json
|
98
|
+
Accept:
|
99
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
100
|
+
text/plain
|
101
|
+
User-Agent:
|
102
|
+
- Ruby
|
103
|
+
response:
|
104
|
+
status:
|
105
|
+
code: 201
|
106
|
+
message: Created
|
107
|
+
headers:
|
108
|
+
Cache-Control:
|
109
|
+
- max-age=0, private, must-revalidate
|
110
|
+
Content-Type:
|
111
|
+
- application/vnd.collection+json; charset=utf-8
|
112
|
+
Etag:
|
113
|
+
- ! '"b13aa78888368a98925d875d2f2cbc75"'
|
114
|
+
Server:
|
115
|
+
- thin 1.4.1 codename Chromeo
|
116
|
+
Set-Cookie:
|
117
|
+
- _engine_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTM5YTFiNjI3OTQyYmVlMDQxMmUyNzQ0MGI2MTBiMTg5BjsAVA%3D%3D--64a4655adf7a7b23c293457de9fb1e0a9157f714;
|
118
|
+
path=/; HttpOnly
|
119
|
+
X-Runtime:
|
120
|
+
- '0.077083'
|
121
|
+
X-Ua-Compatible:
|
122
|
+
- IE=Edge,chrome=1
|
123
|
+
Content-Length:
|
124
|
+
- '995'
|
125
|
+
Connection:
|
126
|
+
- keep-alive
|
127
|
+
body:
|
128
|
+
encoding: US-ASCII
|
129
|
+
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/21907681","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/3B0p1l3t0y2D"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907681},{"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:48Z"}]}]}}'
|
130
|
+
http_version:
|
131
|
+
recorded_at: Tue, 11 Sep 2012 15:46:47 GMT
|
132
|
+
- request:
|
133
|
+
method: get
|
134
|
+
uri: https://api.getcloudapp.com/drops/21907681
|
135
|
+
body:
|
136
|
+
encoding: US-ASCII
|
137
|
+
string: ''
|
138
|
+
headers:
|
139
|
+
Authorization:
|
140
|
+
- Token token="abc123"
|
141
|
+
Accept:
|
142
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
143
|
+
text/plain
|
144
|
+
Accept-Encoding:
|
145
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
146
|
+
User-Agent:
|
147
|
+
- Ruby
|
148
|
+
response:
|
149
|
+
status:
|
150
|
+
code: 200
|
151
|
+
message: OK
|
152
|
+
headers:
|
153
|
+
Cache-Control:
|
154
|
+
- max-age=0, private, must-revalidate
|
155
|
+
Content-Type:
|
156
|
+
- application/vnd.collection+json; charset=utf-8
|
157
|
+
Etag:
|
158
|
+
- ! '"b13aa78888368a98925d875d2f2cbc75"'
|
159
|
+
Server:
|
160
|
+
- thin 1.4.1 codename Chromeo
|
161
|
+
X-Runtime:
|
162
|
+
- '0.031874'
|
163
|
+
X-Ua-Compatible:
|
164
|
+
- IE=Edge,chrome=1
|
165
|
+
Content-Length:
|
166
|
+
- '995'
|
167
|
+
Connection:
|
168
|
+
- keep-alive
|
169
|
+
body:
|
170
|
+
encoding: US-ASCII
|
171
|
+
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/21907681","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/3B0p1l3t0y2D"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907681},{"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:48Z"}]}]}}'
|
172
|
+
http_version:
|
173
|
+
recorded_at: Tue, 11 Sep 2012 15:46:47 GMT
|
174
|
+
- request:
|
175
|
+
method: put
|
176
|
+
uri: https://api.getcloudapp.com/drops/21907681
|
177
|
+
body:
|
178
|
+
encoding: UTF-8
|
179
|
+
string: ! '{"name":"http://cl.ly","private":true,"trash":true,"bookmark_url":null,"file_size":null}'
|
180
|
+
headers:
|
181
|
+
Authorization:
|
182
|
+
- Token token="abc123"
|
183
|
+
Content-Type:
|
184
|
+
- application/json
|
185
|
+
Accept:
|
186
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
187
|
+
text/plain
|
188
|
+
User-Agent:
|
189
|
+
- Ruby
|
190
|
+
response:
|
191
|
+
status:
|
192
|
+
code: 200
|
193
|
+
message: OK
|
194
|
+
headers:
|
195
|
+
Cache-Control:
|
196
|
+
- max-age=0, private, must-revalidate
|
197
|
+
Content-Type:
|
198
|
+
- application/vnd.collection+json; charset=utf-8
|
199
|
+
Etag:
|
200
|
+
- ! '"1a912201dab25bca025dd0075aba458a"'
|
201
|
+
Server:
|
202
|
+
- thin 1.4.1 codename Chromeo
|
203
|
+
Set-Cookie:
|
204
|
+
- _engine_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTMyNDZjNDA2OWRhZGIzNzI2ODJlMGE3YWQ0ZWIyOTkxBjsAVA%3D%3D--c59de0617bbdd496ed25bc12ade593f06bcc0cc0;
|
205
|
+
path=/; HttpOnly
|
206
|
+
X-Runtime:
|
207
|
+
- '0.047180'
|
208
|
+
X-Ua-Compatible:
|
209
|
+
- IE=Edge,chrome=1
|
210
|
+
Content-Length:
|
211
|
+
- '994'
|
212
|
+
Connection:
|
213
|
+
- keep-alive
|
214
|
+
body:
|
215
|
+
encoding: US-ASCII
|
216
|
+
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/21907681","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/3B0p1l3t0y2D"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907681},{"name":"name","value":"http://cl.ly"},{"name":"private","value":true},{"name":"trash","value":true},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:48Z"}]}]}}'
|
217
|
+
http_version:
|
218
|
+
recorded_at: Tue, 11 Sep 2012 15:46:48 GMT
|
219
|
+
- request:
|
220
|
+
method: get
|
221
|
+
uri: https://api.getcloudapp.com/
|
222
|
+
body:
|
223
|
+
encoding: US-ASCII
|
224
|
+
string: ''
|
225
|
+
headers:
|
226
|
+
Authorization:
|
227
|
+
- Token token="abc123"
|
228
|
+
Accept:
|
229
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
230
|
+
text/plain
|
231
|
+
Accept-Encoding:
|
232
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
233
|
+
User-Agent:
|
234
|
+
- Ruby
|
235
|
+
response:
|
236
|
+
status:
|
237
|
+
code: 200
|
238
|
+
message: OK
|
239
|
+
headers:
|
240
|
+
Cache-Control:
|
241
|
+
- max-age=0, private, must-revalidate
|
242
|
+
Content-Type:
|
243
|
+
- application/vnd.collection+json; charset=utf-8
|
244
|
+
Etag:
|
245
|
+
- ! '"44e8e003e0f1b5e38f7ca916ff4497d7"'
|
246
|
+
Server:
|
247
|
+
- thin 1.4.1 codename Chromeo
|
248
|
+
X-Runtime:
|
249
|
+
- '0.005515'
|
250
|
+
X-Ua-Compatible:
|
251
|
+
- IE=Edge,chrome=1
|
252
|
+
Transfer-Encoding:
|
253
|
+
- chunked
|
254
|
+
Connection:
|
255
|
+
- keep-alive
|
256
|
+
body:
|
257
|
+
encoding: US-ASCII
|
258
|
+
string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/","links":[{"rel":"drops","href":"https://api.getcloudapp.com/drops"}]}}'
|
259
|
+
http_version:
|
260
|
+
recorded_at: Tue, 11 Sep 2012 15:46:48 GMT
|
261
|
+
- request:
|
262
|
+
method: get
|
263
|
+
uri: https://api.getcloudapp.com/drops
|
264
|
+
body:
|
265
|
+
encoding: US-ASCII
|
266
|
+
string: ''
|
267
|
+
headers:
|
268
|
+
Authorization:
|
269
|
+
- Token token="abc123"
|
270
|
+
Accept:
|
271
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
272
|
+
text/plain
|
273
|
+
Accept-Encoding:
|
274
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
275
|
+
User-Agent:
|
276
|
+
- Ruby
|
277
|
+
response:
|
278
|
+
status:
|
279
|
+
code: 200
|
280
|
+
message: OK
|
281
|
+
headers:
|
282
|
+
Cache-Control:
|
283
|
+
- max-age=0, private, must-revalidate
|
284
|
+
Content-Type:
|
285
|
+
- application/vnd.collection+json; charset=utf-8
|
286
|
+
Etag:
|
287
|
+
- ! '"e99f62e3f2bdb84c23f5e4072ad6d53a"'
|
288
|
+
Server:
|
289
|
+
- thin 1.4.1 codename Chromeo
|
290
|
+
X-Runtime:
|
291
|
+
- '0.020142'
|
292
|
+
X-Ua-Compatible:
|
293
|
+
- IE=Edge,chrome=1
|
294
|
+
Transfer-Encoding:
|
295
|
+
- chunked
|
296
|
+
Connection:
|
297
|
+
- keep-alive
|
298
|
+
body:
|
299
|
+
encoding: US-ASCII
|
300
|
+
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/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"}]}]}}'
|
301
|
+
http_version:
|
302
|
+
recorded_at: Tue, 11 Sep 2012 15:46:48 GMT
|
303
|
+
- request:
|
304
|
+
method: get
|
305
|
+
uri: https://api.getcloudapp.com/drops?filter=trash&limit=20
|
306
|
+
body:
|
307
|
+
encoding: US-ASCII
|
308
|
+
string: ''
|
309
|
+
headers:
|
310
|
+
Authorization:
|
311
|
+
- Token token="abc123"
|
312
|
+
Accept:
|
313
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
314
|
+
text/plain
|
315
|
+
Accept-Encoding:
|
316
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
317
|
+
User-Agent:
|
318
|
+
- Ruby
|
319
|
+
response:
|
320
|
+
status:
|
321
|
+
code: 200
|
322
|
+
message: OK
|
323
|
+
headers:
|
324
|
+
Cache-Control:
|
325
|
+
- max-age=0, private, must-revalidate
|
326
|
+
Content-Type:
|
327
|
+
- application/vnd.collection+json; charset=utf-8
|
328
|
+
Etag:
|
329
|
+
- ! '"1a912201dab25bca025dd0075aba458a"'
|
330
|
+
Server:
|
331
|
+
- thin 1.4.1 codename Chromeo
|
332
|
+
X-Runtime:
|
333
|
+
- '0.036041'
|
334
|
+
X-Ua-Compatible:
|
335
|
+
- IE=Edge,chrome=1
|
336
|
+
Transfer-Encoding:
|
337
|
+
- chunked
|
338
|
+
Connection:
|
339
|
+
- keep-alive
|
340
|
+
body:
|
341
|
+
encoding: US-ASCII
|
342
|
+
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/21907681","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/3B0p1l3t0y2D"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21907681},{"name":"name","value":"http://cl.ly"},{"name":"private","value":true},{"name":"trash","value":true},{"name":"views","value":0},{"name":"created","value":"2012-09-11T15:46:48Z"}]}]}}'
|
343
|
+
http_version:
|
344
|
+
recorded_at: Tue, 11 Sep 2012 15:46:49 GMT
|
345
|
+
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,129 @@
|
|
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.018590'
|
34
|
+
X-Ua-Compatible:
|
35
|
+
- IE=Edge,chrome=1
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
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:46:49 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
|
+
- ! '"e99f62e3f2bdb84c23f5e4072ad6d53a"'
|
72
|
+
Server:
|
73
|
+
- thin 1.4.1 codename Chromeo
|
74
|
+
X-Runtime:
|
75
|
+
- '0.026844'
|
76
|
+
X-Ua-Compatible:
|
77
|
+
- IE=Edge,chrome=1
|
78
|
+
Content-Length:
|
79
|
+
- '1620'
|
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/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"}]}]}}'
|
85
|
+
http_version:
|
86
|
+
recorded_at: Tue, 11 Sep 2012 15:46:50 GMT
|
87
|
+
- request:
|
88
|
+
method: get
|
89
|
+
uri: https://api.getcloudapp.com/drops?filter=active&limit=1
|
90
|
+
body:
|
91
|
+
encoding: US-ASCII
|
92
|
+
string: ''
|
93
|
+
headers:
|
94
|
+
Authorization:
|
95
|
+
- Token token="abc123"
|
96
|
+
Accept:
|
97
|
+
- application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
|
98
|
+
text/plain
|
99
|
+
Accept-Encoding:
|
100
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
101
|
+
User-Agent:
|
102
|
+
- Ruby
|
103
|
+
response:
|
104
|
+
status:
|
105
|
+
code: 200
|
106
|
+
message: OK
|
107
|
+
headers:
|
108
|
+
Cache-Control:
|
109
|
+
- max-age=0, private, must-revalidate
|
110
|
+
Content-Type:
|
111
|
+
- application/vnd.collection+json; charset=utf-8
|
112
|
+
Etag:
|
113
|
+
- ! '"06b437b17a15dd371c5d421434c752ea"'
|
114
|
+
Server:
|
115
|
+
- thin 1.4.1 codename Chromeo
|
116
|
+
X-Runtime:
|
117
|
+
- '0.018111'
|
118
|
+
X-Ua-Compatible:
|
119
|
+
- IE=Edge,chrome=1
|
120
|
+
Content-Length:
|
121
|
+
- '1085'
|
122
|
+
Connection:
|
123
|
+
- keep-alive
|
124
|
+
body:
|
125
|
+
encoding: US-ASCII
|
126
|
+
string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"},{"rel":"next","href":"https://api.getcloudapp.com/drops?filter=active&page=2&per_page=1"}],"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/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"}]}]}}'
|
127
|
+
http_version:
|
128
|
+
recorded_at: Tue, 11 Sep 2012 15:46:50 GMT
|
129
|
+
recorded_with: VCR 2.0.1
|