fog-dropbox 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/.rubocop.yml +20 -0
- data/.ruby-env.example +1 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/CONTRIBUTING.md +18 -0
- data/CONTRIBUTORS.md +47 -0
- data/Gemfile +4 -0
- data/LICENSE.md +20 -0
- data/README.md +73 -0
- data/Rakefile +12 -0
- data/fog-dropbox.gemspec +33 -0
- data/lib/fog/bin/dropbox.rb +70 -0
- data/lib/fog/dropbox.rb +17 -0
- data/lib/fog/dropbox/models/storage/directories.rb +26 -0
- data/lib/fog/dropbox/models/storage/directory.rb +40 -0
- data/lib/fog/dropbox/models/storage/file.rb +78 -0
- data/lib/fog/dropbox/models/storage/files.rb +41 -0
- data/lib/fog/dropbox/storage.rb +44 -0
- data/lib/fog/dropbox/version.rb +5 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/directories/all.yml +170 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/directories/get.yml +207 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/directory/destroy.yml +171 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/directory/files.yml +262 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/directory/save.yml +208 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/destroy.yml +287 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/large_file.yml +278 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/small_file.yml +239 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/file/string.yml +519 -0
- data/spec/fixtures/vcr_cassettes/fog/storage/dropbox/files.yml +554 -0
- data/spec/fog/dropbox/models/storage/directories_spec.rb +49 -0
- data/spec/fog/dropbox/models/storage/directory_spec.rb +65 -0
- data/spec/fog/dropbox/models/storage/file_spec.rb +106 -0
- data/spec/fog/dropbox/models/storage/files_spec.rb +90 -0
- data/spec/fog/dropbox/storage_spec.rb +15 -0
- data/spec/spec_helper.rb +8 -0
- metadata +210 -0
@@ -0,0 +1,554 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.dropbox.com/1/metadata/auto/The-Devil-Is-a-Lie?file_limit=25000&include_deleted=false&list=true
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- OfficialDropboxRubySDK/1.6.4
|
16
|
+
Authorization:
|
17
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 404
|
21
|
+
message: Not Found
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Fri, 03 Apr 2015 23:19:18 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"error": "Path ''/The-Devil-Is-a-Lie'' not found"}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Fri, 03 Apr 2015 23:19:18 GMT
|
38
|
+
- request:
|
39
|
+
method: get
|
40
|
+
uri: https://api.dropbox.com/1/metadata/auto/Mastermind/d5a390943e76f38222c67db514490720?file_limit=25000&include_deleted=false&list=true
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ''
|
44
|
+
headers:
|
45
|
+
Accept-Encoding:
|
46
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
47
|
+
Accept:
|
48
|
+
- "*/*"
|
49
|
+
User-Agent:
|
50
|
+
- OfficialDropboxRubySDK/1.6.4
|
51
|
+
Authorization:
|
52
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 404
|
56
|
+
message: Not Found
|
57
|
+
headers:
|
58
|
+
Server:
|
59
|
+
- nginx
|
60
|
+
Date:
|
61
|
+
- Fri, 03 Apr 2015 23:21:30 GMT
|
62
|
+
Content-Type:
|
63
|
+
- application/json
|
64
|
+
Transfer-Encoding:
|
65
|
+
- chunked
|
66
|
+
Connection:
|
67
|
+
- keep-alive
|
68
|
+
body:
|
69
|
+
encoding: UTF-8
|
70
|
+
string: '{"error": "Path ''/Mastermind/d5a390943e76f38222c67db514490720'' not
|
71
|
+
found"}'
|
72
|
+
http_version:
|
73
|
+
recorded_at: Fri, 03 Apr 2015 23:21:30 GMT
|
74
|
+
- request:
|
75
|
+
method: get
|
76
|
+
uri: https://api.dropbox.com/1/metadata/auto/Mastermind/b60a1c19083eb3cc393bb2814e82c0ca?file_limit=25000&include_deleted=false&list=true
|
77
|
+
body:
|
78
|
+
encoding: US-ASCII
|
79
|
+
string: ''
|
80
|
+
headers:
|
81
|
+
Accept-Encoding:
|
82
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
+
Accept:
|
84
|
+
- "*/*"
|
85
|
+
User-Agent:
|
86
|
+
- OfficialDropboxRubySDK/1.6.4
|
87
|
+
Authorization:
|
88
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
89
|
+
response:
|
90
|
+
status:
|
91
|
+
code: 404
|
92
|
+
message: Not Found
|
93
|
+
headers:
|
94
|
+
Server:
|
95
|
+
- nginx
|
96
|
+
Date:
|
97
|
+
- Fri, 03 Apr 2015 23:22:27 GMT
|
98
|
+
Content-Type:
|
99
|
+
- application/json
|
100
|
+
Transfer-Encoding:
|
101
|
+
- chunked
|
102
|
+
Connection:
|
103
|
+
- keep-alive
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: '{"error": "Path ''/Mastermind/b60a1c19083eb3cc393bb2814e82c0ca'' not
|
107
|
+
found"}'
|
108
|
+
http_version:
|
109
|
+
recorded_at: Fri, 03 Apr 2015 23:22:27 GMT
|
110
|
+
- request:
|
111
|
+
method: get
|
112
|
+
uri: https://api.dropbox.com/1/metadata/auto/Mastermind/5dd81d3a832f8f69243b38d50d7d6199?file_limit=25000&include_deleted=false&list=true
|
113
|
+
body:
|
114
|
+
encoding: US-ASCII
|
115
|
+
string: ''
|
116
|
+
headers:
|
117
|
+
Accept-Encoding:
|
118
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
119
|
+
Accept:
|
120
|
+
- "*/*"
|
121
|
+
User-Agent:
|
122
|
+
- OfficialDropboxRubySDK/1.6.4
|
123
|
+
Authorization:
|
124
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
125
|
+
response:
|
126
|
+
status:
|
127
|
+
code: 404
|
128
|
+
message: Not Found
|
129
|
+
headers:
|
130
|
+
Server:
|
131
|
+
- nginx
|
132
|
+
Date:
|
133
|
+
- Fri, 03 Apr 2015 23:23:07 GMT
|
134
|
+
Content-Type:
|
135
|
+
- application/json
|
136
|
+
Transfer-Encoding:
|
137
|
+
- chunked
|
138
|
+
Connection:
|
139
|
+
- keep-alive
|
140
|
+
body:
|
141
|
+
encoding: UTF-8
|
142
|
+
string: '{"error": "Path ''/Mastermind/5dd81d3a832f8f69243b38d50d7d6199'' not
|
143
|
+
found"}'
|
144
|
+
http_version:
|
145
|
+
recorded_at: Fri, 03 Apr 2015 23:23:07 GMT
|
146
|
+
- request:
|
147
|
+
method: get
|
148
|
+
uri: https://api.dropbox.com/1/metadata/auto/Mastermind/d49c79b06f48a576d16a32950b7a3ae5?file_limit=25000&include_deleted=false&list=true
|
149
|
+
body:
|
150
|
+
encoding: US-ASCII
|
151
|
+
string: ''
|
152
|
+
headers:
|
153
|
+
Accept-Encoding:
|
154
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
155
|
+
Accept:
|
156
|
+
- "*/*"
|
157
|
+
User-Agent:
|
158
|
+
- OfficialDropboxRubySDK/1.6.4
|
159
|
+
Authorization:
|
160
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
161
|
+
response:
|
162
|
+
status:
|
163
|
+
code: 404
|
164
|
+
message: Not Found
|
165
|
+
headers:
|
166
|
+
Server:
|
167
|
+
- nginx
|
168
|
+
Date:
|
169
|
+
- Fri, 03 Apr 2015 23:23:08 GMT
|
170
|
+
Content-Type:
|
171
|
+
- application/json
|
172
|
+
Transfer-Encoding:
|
173
|
+
- chunked
|
174
|
+
Connection:
|
175
|
+
- keep-alive
|
176
|
+
body:
|
177
|
+
encoding: UTF-8
|
178
|
+
string: '{"error": "Path ''/Mastermind/d49c79b06f48a576d16a32950b7a3ae5'' not
|
179
|
+
found"}'
|
180
|
+
http_version:
|
181
|
+
recorded_at: Fri, 03 Apr 2015 23:23:08 GMT
|
182
|
+
- request:
|
183
|
+
method: put
|
184
|
+
uri: https://api-content.dropbox.com/1/files_put/auto/Mastermind/The-Devil-Is-a-Lie?overwrite=true
|
185
|
+
body:
|
186
|
+
encoding: UTF-8
|
187
|
+
string: Bellaire Rose
|
188
|
+
headers:
|
189
|
+
Content-Type:
|
190
|
+
- application/octet-stream
|
191
|
+
Accept-Encoding:
|
192
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
193
|
+
Accept:
|
194
|
+
- "*/*"
|
195
|
+
User-Agent:
|
196
|
+
- OfficialDropboxRubySDK/1.6.4
|
197
|
+
Content-Length:
|
198
|
+
- 13
|
199
|
+
Authorization:
|
200
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
201
|
+
response:
|
202
|
+
status:
|
203
|
+
code: 200
|
204
|
+
message: OK
|
205
|
+
headers:
|
206
|
+
Server:
|
207
|
+
- nginx
|
208
|
+
Date:
|
209
|
+
- Fri, 03 Apr 2015 23:24:26 GMT
|
210
|
+
Content-Type:
|
211
|
+
- text/javascript
|
212
|
+
Transfer-Encoding:
|
213
|
+
- chunked
|
214
|
+
Connection:
|
215
|
+
- keep-alive
|
216
|
+
X-Server-Response-Time:
|
217
|
+
- '587'
|
218
|
+
X-Dropbox-Request-Id:
|
219
|
+
- a08f57b5b87046f8c915800c8b66d430
|
220
|
+
Pragma:
|
221
|
+
- no-cache
|
222
|
+
Cache-Control:
|
223
|
+
- no-cache
|
224
|
+
X-Robots-Tag:
|
225
|
+
- noindex, nofollow, noimageindex
|
226
|
+
body:
|
227
|
+
encoding: UTF-8
|
228
|
+
string: '{"revision": 151, "bytes": 13, "thumb_exists": false, "rev": "97341cc98e",
|
229
|
+
"modified": "Fri, 03 Apr 2015 23:24:25 +0000", "mime_type": "application/octet-stream",
|
230
|
+
"path": "/Mastermind/The-Devil-Is-a-Lie", "is_dir": false, "size": "13 bytes",
|
231
|
+
"root": "app_folder", "client_mtime": "Fri, 03 Apr 2015 23:24:25 +0000", "icon":
|
232
|
+
"page_white"}'
|
233
|
+
http_version:
|
234
|
+
recorded_at: Fri, 03 Apr 2015 23:24:26 GMT
|
235
|
+
- request:
|
236
|
+
method: put
|
237
|
+
uri: https://api-content.dropbox.com/1/files_put/auto/Mastermind/War-Ready?overwrite=true
|
238
|
+
body:
|
239
|
+
encoding: UTF-8
|
240
|
+
string: Bellaire Rose
|
241
|
+
headers:
|
242
|
+
Content-Type:
|
243
|
+
- application/octet-stream
|
244
|
+
Accept-Encoding:
|
245
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
246
|
+
Accept:
|
247
|
+
- "*/*"
|
248
|
+
User-Agent:
|
249
|
+
- OfficialDropboxRubySDK/1.6.4
|
250
|
+
Content-Length:
|
251
|
+
- 13
|
252
|
+
Authorization:
|
253
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
254
|
+
response:
|
255
|
+
status:
|
256
|
+
code: 200
|
257
|
+
message: OK
|
258
|
+
headers:
|
259
|
+
Server:
|
260
|
+
- nginx
|
261
|
+
Date:
|
262
|
+
- Fri, 03 Apr 2015 23:24:27 GMT
|
263
|
+
Content-Type:
|
264
|
+
- text/javascript
|
265
|
+
Transfer-Encoding:
|
266
|
+
- chunked
|
267
|
+
Connection:
|
268
|
+
- keep-alive
|
269
|
+
X-Server-Response-Time:
|
270
|
+
- '561'
|
271
|
+
X-Dropbox-Request-Id:
|
272
|
+
- dec955de79b268590508d64f922e7b92
|
273
|
+
Pragma:
|
274
|
+
- no-cache
|
275
|
+
Cache-Control:
|
276
|
+
- no-cache
|
277
|
+
X-Robots-Tag:
|
278
|
+
- noindex, nofollow, noimageindex
|
279
|
+
body:
|
280
|
+
encoding: UTF-8
|
281
|
+
string: '{"revision": 153, "bytes": 13, "thumb_exists": false, "rev": "99341cc98e",
|
282
|
+
"modified": "Fri, 03 Apr 2015 23:24:26 +0000", "mime_type": "application/octet-stream",
|
283
|
+
"path": "/Mastermind/War-Ready", "is_dir": false, "size": "13 bytes", "root":
|
284
|
+
"app_folder", "client_mtime": "Fri, 03 Apr 2015 23:24:26 +0000", "icon": "page_white"}'
|
285
|
+
http_version:
|
286
|
+
recorded_at: Fri, 03 Apr 2015 23:24:27 GMT
|
287
|
+
- request:
|
288
|
+
method: put
|
289
|
+
uri: https://api-content.dropbox.com/1/files_put/auto/Mastermind/Thug-Cry?overwrite=true
|
290
|
+
body:
|
291
|
+
encoding: UTF-8
|
292
|
+
string: Bellaire Rose
|
293
|
+
headers:
|
294
|
+
Content-Type:
|
295
|
+
- application/octet-stream
|
296
|
+
Accept-Encoding:
|
297
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
298
|
+
Accept:
|
299
|
+
- "*/*"
|
300
|
+
User-Agent:
|
301
|
+
- OfficialDropboxRubySDK/1.6.4
|
302
|
+
Content-Length:
|
303
|
+
- 13
|
304
|
+
Authorization:
|
305
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
306
|
+
response:
|
307
|
+
status:
|
308
|
+
code: 200
|
309
|
+
message: OK
|
310
|
+
headers:
|
311
|
+
Server:
|
312
|
+
- nginx
|
313
|
+
Date:
|
314
|
+
- Fri, 03 Apr 2015 23:24:27 GMT
|
315
|
+
Content-Type:
|
316
|
+
- text/javascript
|
317
|
+
Transfer-Encoding:
|
318
|
+
- chunked
|
319
|
+
Connection:
|
320
|
+
- keep-alive
|
321
|
+
X-Server-Response-Time:
|
322
|
+
- '483'
|
323
|
+
X-Dropbox-Request-Id:
|
324
|
+
- 0298b84af969a246e53586ae052aa44b
|
325
|
+
Pragma:
|
326
|
+
- no-cache
|
327
|
+
Cache-Control:
|
328
|
+
- no-cache
|
329
|
+
X-Robots-Tag:
|
330
|
+
- noindex, nofollow, noimageindex
|
331
|
+
body:
|
332
|
+
encoding: UTF-8
|
333
|
+
string: '{"revision": 154, "bytes": 13, "thumb_exists": false, "rev": "9a341cc98e",
|
334
|
+
"modified": "Fri, 03 Apr 2015 23:24:27 +0000", "mime_type": "application/octet-stream",
|
335
|
+
"path": "/Mastermind/Thug-Cry", "is_dir": false, "size": "13 bytes", "root":
|
336
|
+
"app_folder", "client_mtime": "Fri, 03 Apr 2015 23:24:27 +0000", "icon": "page_white"}'
|
337
|
+
http_version:
|
338
|
+
recorded_at: Fri, 03 Apr 2015 23:24:27 GMT
|
339
|
+
- request:
|
340
|
+
method: get
|
341
|
+
uri: https://api.dropbox.com/1/metadata/auto/Mastermind/The-Devil-Is-a-Lie?file_limit=25000&include_deleted=false&list=true
|
342
|
+
body:
|
343
|
+
encoding: US-ASCII
|
344
|
+
string: ''
|
345
|
+
headers:
|
346
|
+
Accept-Encoding:
|
347
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
348
|
+
Accept:
|
349
|
+
- "*/*"
|
350
|
+
User-Agent:
|
351
|
+
- OfficialDropboxRubySDK/1.6.4
|
352
|
+
Authorization:
|
353
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
354
|
+
response:
|
355
|
+
status:
|
356
|
+
code: 200
|
357
|
+
message: OK
|
358
|
+
headers:
|
359
|
+
Server:
|
360
|
+
- nginx
|
361
|
+
Date:
|
362
|
+
- Fri, 03 Apr 2015 23:24:28 GMT
|
363
|
+
Content-Type:
|
364
|
+
- text/javascript
|
365
|
+
Transfer-Encoding:
|
366
|
+
- chunked
|
367
|
+
Connection:
|
368
|
+
- keep-alive
|
369
|
+
X-Content-Type-Options:
|
370
|
+
- nosniff
|
371
|
+
Set-Cookie:
|
372
|
+
- gvc=MjIwOTQ4ODUzMDAxMTY5NDY4MjM1Mzk5MTQ0MDk5NzA0OTI1MTk3; expires=Wed, 01
|
373
|
+
Apr 2020 23:24:28 GMT; httponly; Path=/; secure
|
374
|
+
X-Server-Response-Time:
|
375
|
+
- '48'
|
376
|
+
X-Dropbox-Request-Id:
|
377
|
+
- bee993071756505fdbb820483930dd46
|
378
|
+
Pragma:
|
379
|
+
- no-cache
|
380
|
+
Cache-Control:
|
381
|
+
- no-cache
|
382
|
+
X-Dropbox-Http-Protocol:
|
383
|
+
- None
|
384
|
+
X-Frame-Options:
|
385
|
+
- SAMEORIGIN
|
386
|
+
body:
|
387
|
+
encoding: UTF-8
|
388
|
+
string: '{"revision": 151, "bytes": 13, "thumb_exists": false, "rev": "97341cc98e",
|
389
|
+
"modified": "Fri, 03 Apr 2015 23:24:25 +0000", "mime_type": "application/octet-stream",
|
390
|
+
"path": "/Mastermind/The-Devil-Is-a-Lie", "is_dir": false, "size": "13 bytes",
|
391
|
+
"root": "app_folder", "client_mtime": "Fri, 03 Apr 2015 23:24:25 +0000", "icon":
|
392
|
+
"page_white"}'
|
393
|
+
http_version:
|
394
|
+
recorded_at: Fri, 03 Apr 2015 23:24:28 GMT
|
395
|
+
- request:
|
396
|
+
method: get
|
397
|
+
uri: https://api.dropbox.com/1/metadata/auto/Mastermind?file_limit=25000&include_deleted=false&list=true
|
398
|
+
body:
|
399
|
+
encoding: US-ASCII
|
400
|
+
string: ''
|
401
|
+
headers:
|
402
|
+
Accept-Encoding:
|
403
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
404
|
+
Accept:
|
405
|
+
- "*/*"
|
406
|
+
User-Agent:
|
407
|
+
- OfficialDropboxRubySDK/1.6.4
|
408
|
+
Authorization:
|
409
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
410
|
+
response:
|
411
|
+
status:
|
412
|
+
code: 200
|
413
|
+
message: OK
|
414
|
+
headers:
|
415
|
+
Server:
|
416
|
+
- nginx
|
417
|
+
Date:
|
418
|
+
- Fri, 03 Apr 2015 23:24:28 GMT
|
419
|
+
Content-Type:
|
420
|
+
- text/javascript
|
421
|
+
Transfer-Encoding:
|
422
|
+
- chunked
|
423
|
+
Connection:
|
424
|
+
- keep-alive
|
425
|
+
X-Content-Type-Options:
|
426
|
+
- nosniff
|
427
|
+
Set-Cookie:
|
428
|
+
- gvc=MjQ3NjM0NTc1MDUzODQ5MDEyODYyMTc4NDY4Nzc5MDg3MDUwMTgz; expires=Wed, 01
|
429
|
+
Apr 2020 23:24:28 GMT; httponly; Path=/; secure
|
430
|
+
X-Server-Response-Time:
|
431
|
+
- '58'
|
432
|
+
X-Dropbox-Request-Id:
|
433
|
+
- ab0af062f78f2bdbfddd83c4cb096e2e
|
434
|
+
Pragma:
|
435
|
+
- no-cache
|
436
|
+
Cache-Control:
|
437
|
+
- no-cache
|
438
|
+
X-Dropbox-Http-Protocol:
|
439
|
+
- None
|
440
|
+
X-Frame-Options:
|
441
|
+
- SAMEORIGIN
|
442
|
+
body:
|
443
|
+
encoding: UTF-8
|
444
|
+
string: '{"size": "0 bytes", "hash": "b6ba59dfcc88a1146e3112573c4bd6b8", "rev":
|
445
|
+
"98341cc98e", "thumb_exists": false, "bytes": 0, "modified": "Fri, 03 Apr
|
446
|
+
2015 23:24:25 +0000", "path": "/Mastermind", "is_dir": true, "icon": "folder",
|
447
|
+
"root": "app_folder", "contents": [{"rev": "97341cc98e", "thumb_exists": false,
|
448
|
+
"path": "/Mastermind/The-Devil-Is-a-Lie", "is_dir": false, "client_mtime":
|
449
|
+
"Fri, 03 Apr 2015 23:24:25 +0000", "icon": "page_white", "bytes": 13, "modified":
|
450
|
+
"Fri, 03 Apr 2015 23:24:25 +0000", "size": "13 bytes", "root": "app_folder",
|
451
|
+
"mime_type": "application/octet-stream", "revision": 151}, {"rev": "9a341cc98e",
|
452
|
+
"thumb_exists": false, "path": "/Mastermind/Thug-Cry", "is_dir": false, "client_mtime":
|
453
|
+
"Fri, 03 Apr 2015 23:24:27 +0000", "icon": "page_white", "bytes": 13, "modified":
|
454
|
+
"Fri, 03 Apr 2015 23:24:27 +0000", "size": "13 bytes", "root": "app_folder",
|
455
|
+
"mime_type": "application/octet-stream", "revision": 154}, {"rev": "99341cc98e",
|
456
|
+
"thumb_exists": false, "path": "/Mastermind/War-Ready", "is_dir": false, "client_mtime":
|
457
|
+
"Fri, 03 Apr 2015 23:24:26 +0000", "icon": "page_white", "bytes": 13, "modified":
|
458
|
+
"Fri, 03 Apr 2015 23:24:26 +0000", "size": "13 bytes", "root": "app_folder",
|
459
|
+
"mime_type": "application/octet-stream", "revision": 153}], "revision": 152}'
|
460
|
+
http_version:
|
461
|
+
recorded_at: Fri, 03 Apr 2015 23:24:28 GMT
|
462
|
+
- request:
|
463
|
+
method: get
|
464
|
+
uri: https://api.dropbox.com/1/metadata/auto/Mastermind/not-a-rick-ross-single?file_limit=25000&include_deleted=false&list=true
|
465
|
+
body:
|
466
|
+
encoding: US-ASCII
|
467
|
+
string: ''
|
468
|
+
headers:
|
469
|
+
Accept-Encoding:
|
470
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
471
|
+
Accept:
|
472
|
+
- "*/*"
|
473
|
+
User-Agent:
|
474
|
+
- OfficialDropboxRubySDK/1.6.4
|
475
|
+
Authorization:
|
476
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
477
|
+
response:
|
478
|
+
status:
|
479
|
+
code: 404
|
480
|
+
message: Not Found
|
481
|
+
headers:
|
482
|
+
Server:
|
483
|
+
- nginx
|
484
|
+
Date:
|
485
|
+
- Fri, 03 Apr 2015 23:24:29 GMT
|
486
|
+
Content-Type:
|
487
|
+
- application/json
|
488
|
+
Transfer-Encoding:
|
489
|
+
- chunked
|
490
|
+
Connection:
|
491
|
+
- keep-alive
|
492
|
+
body:
|
493
|
+
encoding: UTF-8
|
494
|
+
string: '{"error": "Path ''/Mastermind/not-a-rick-ross-single'' not found"}'
|
495
|
+
http_version:
|
496
|
+
recorded_at: Fri, 03 Apr 2015 23:24:29 GMT
|
497
|
+
- request:
|
498
|
+
method: post
|
499
|
+
uri: https://api.dropbox.com/1/fileops/delete
|
500
|
+
body:
|
501
|
+
encoding: US-ASCII
|
502
|
+
string: root=auto&path=%2FMastermind
|
503
|
+
headers:
|
504
|
+
Accept-Encoding:
|
505
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
506
|
+
Accept:
|
507
|
+
- "*/*"
|
508
|
+
User-Agent:
|
509
|
+
- OfficialDropboxRubySDK/1.6.4
|
510
|
+
Content-Type:
|
511
|
+
- application/x-www-form-urlencoded
|
512
|
+
Authorization:
|
513
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
514
|
+
response:
|
515
|
+
status:
|
516
|
+
code: 200
|
517
|
+
message: OK
|
518
|
+
headers:
|
519
|
+
Server:
|
520
|
+
- nginx
|
521
|
+
Date:
|
522
|
+
- Fri, 03 Apr 2015 23:24:29 GMT
|
523
|
+
Content-Type:
|
524
|
+
- text/javascript
|
525
|
+
Transfer-Encoding:
|
526
|
+
- chunked
|
527
|
+
Connection:
|
528
|
+
- keep-alive
|
529
|
+
X-Content-Type-Options:
|
530
|
+
- nosniff
|
531
|
+
Set-Cookie:
|
532
|
+
- gvc=MjcyNzE0NjU3Mzg4NDMxNDIyNTc3MDE2MTg2NTMzNjgyMDYyNDM5; expires=Wed, 01
|
533
|
+
Apr 2020 23:24:29 GMT; httponly; Path=/; secure
|
534
|
+
X-Server-Response-Time:
|
535
|
+
- '311'
|
536
|
+
X-Dropbox-Request-Id:
|
537
|
+
- 5da8595b5ac1e2b31562515a8322066a
|
538
|
+
Pragma:
|
539
|
+
- no-cache
|
540
|
+
Cache-Control:
|
541
|
+
- no-cache
|
542
|
+
X-Dropbox-Http-Protocol:
|
543
|
+
- None
|
544
|
+
X-Frame-Options:
|
545
|
+
- SAMEORIGIN
|
546
|
+
body:
|
547
|
+
encoding: UTF-8
|
548
|
+
string: '{"is_deleted": true, "revision": 158, "bytes": 0, "thumb_exists": false,
|
549
|
+
"rev": "9e341cc98e", "modified": "Fri, 03 Apr 2015 23:24:29 +0000", "path":
|
550
|
+
"/Mastermind", "is_dir": true, "icon": "folder_gray", "root": "app_folder",
|
551
|
+
"size": "0 bytes"}'
|
552
|
+
http_version:
|
553
|
+
recorded_at: Fri, 03 Apr 2015 23:24:29 GMT
|
554
|
+
recorded_with: VCR 2.9.3
|