dropbox-api-petems 0.4.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +5 -0
- data/README.markdown +13 -8
- data/Rakefile +5 -0
- data/dropbox-api.gemspec +9 -8
- data/lib/dropbox-api.rb +1 -0
- data/lib/dropbox-api/objects/dir.rb +5 -0
- data/lib/dropbox-api/objects/file.rb +5 -10
- data/lib/dropbox-api/objects/fileops.rb +5 -0
- data/lib/dropbox-api/tasks.rb +2 -2
- data/lib/dropbox-api/version.rb +1 -1
- data/spec/connection.offline.yml +5 -0
- data/spec/lib/dropbox-api/client_spec.rb +96 -68
- data/spec/lib/dropbox-api/connection_spec.rb +1 -1
- data/spec/lib/dropbox-api/dir_spec.rb +12 -6
- data/spec/lib/dropbox-api/file_spec.rb +7 -11
- data/spec/lib/dropbox-api/oauth_spec.rb +22 -1
- data/spec/lib/dropbox-api/thumbnail_spec.rb +4 -4
- data/spec/spec_helper.rb +13 -4
- data/spec/support/config.rb +5 -1
- data/spec/vcr/cassettes/Dropbox_API_Client/_account/retrieves_the_account_object.yml +54 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_chunked_upload/puts_a_5MB_file_in_dropbox.yml +150 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_chunked_upload/yields_current_offset_and_upload_id.yml +150 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_copy_from_copy_ref/copies_a_file_from_a_copy_ref.yml +271 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_delta/returns_a_cursor_and_list_of_files.yml +184 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_delta/returns_the_files_that_have_changed_since_the_cursor_was_made.yml +361 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_download/a_file/downloads_a_file.yml +58 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_download/a_non-existant_file/raises_a_404.yml +38 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_find/returns_a_single_directory.yml +63 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_find/returns_a_single_file.yml +55 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_ls/a_directory/returns_an_item_array_of_directory_contents.yml +107 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_ls/a_single_file/returns_a_single_item_array_of_if_we_ls_a_file.yml +107 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_ls/no_value/returns_an_array_of_files_and_dirs.yml +115 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_mkdir/creates_dirs_with_tricky_characters.yml +61 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_mkdir/creates_dirs_with_utf8_characters.yml +61 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_mkdir/returns_an_array_of_files_and_dirs.yml +61 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_search/no_path_given/finds_the_file_if_in_root.yml +55 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_search/path_with_leading_slash/finds_the_file.yml +56 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_search/with_path/finds_a_file.yml +56 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_upload/a_file_with_tricky_characters/is_uploaded.yml +56 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_upload/a_file_with_utf8/is_uploaded.yml +56 -0
- data/spec/vcr/cassettes/Dropbox_API_Client/_upload/a_simple_file/is_uploaded.yml +55 -0
- data/spec/vcr/cassettes/Dropbox_API_Dir/_copy/copies_the_dir_properly.yml +120 -0
- data/spec/vcr/cassettes/Dropbox_API_Dir/_destroy/destroys_the_dir_properly.yml +120 -0
- data/spec/vcr/cassettes/Dropbox_API_Dir/_direct_url/gives_the_direct_url.yml +115 -0
- data/spec/vcr/cassettes/Dropbox_API_Dir/_move/moves_the_dir_properly.yml +120 -0
- data/spec/vcr/cassettes/Dropbox_API_File/_copy/copies_the_file_properly.yml +115 -0
- data/spec/vcr/cassettes/Dropbox_API_File/_copy_ref/returns_a_copy_ref_object.yml +104 -0
- data/spec/vcr/cassettes/Dropbox_API_File/_destroy/destroys_the_file_properly.yml +115 -0
- data/spec/vcr/cassettes/Dropbox_API_File/_direct_url/returns_an_Url_object.yml +109 -0
- data/spec/vcr/cassettes/Dropbox_API_File/_download/should_download_the_file.yml +109 -0
- data/spec/vcr/cassettes/Dropbox_API_File/_move/moves_the_file_properly.yml +115 -0
- data/spec/vcr/cassettes/Dropbox_API_File/_restore/restores_the_file_to_a_specific_revision.yml +270 -0
- data/spec/vcr/cassettes/Dropbox_API_File/_revisions/retrieves_all_revisions_as_an_Array_of_File_objects.yml +166 -0
- data/spec/vcr/cassettes/Dropbox_API_File/_share_url/returns_an_Url_object.yml +109 -0
- data/spec/vcr/cassettes/Dropbox_API_File/_thumbnail/downloads_a_thumbnail.yml +427 -0
- data/spec/vcr/cassettes/Dropbox_API_OAuth/_consumer/provides_an_oauth_method.yml +105 -0
- metadata +127 -41
- data/.ruby-version +0 -1
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.dropbox.com/1/metadata/dropbox/awesome-tests
|
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
|
+
- OAuth gem v0.4.7
|
16
|
+
Authorization:
|
17
|
+
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Mon, 10 Feb 2014 20:28:54 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/javascript
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Server-Response-Time:
|
34
|
+
- '66'
|
35
|
+
X-Dropbox-Request-Id:
|
36
|
+
- d48a1407965af2fac7bcde2a4b98264f
|
37
|
+
Pragma:
|
38
|
+
- no-cache
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
X-Dropbox-Http-Protocol:
|
42
|
+
- None
|
43
|
+
X-Frame-Options:
|
44
|
+
- SAMEORIGIN
|
45
|
+
X-Requestid:
|
46
|
+
- a72535ed413810a975912dde6d331f95
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"hash": "70cab8639ace85f6298de226225c5fe5", "revision": 2, "rev":
|
50
|
+
"21f47d8b3", "thumb_exists": false, "bytes": 0, "modified": "Mon, 10 Feb 2014
|
51
|
+
18:11:20 +0000", "path": "/awesome-tests", "is_dir": true, "icon": "folder",
|
52
|
+
"root": "dropbox", "contents": [{"revision": 50, "rev": "321f47d8b3", "thumb_exists":
|
53
|
+
false, "bytes": 12, "modified": "Mon, 10 Feb 2014 19:03:51 +0000", "client_mtime":
|
54
|
+
"Mon, 10 Feb 2014 19:03:51 +0000", "path": "/awesome-tests/delta-test-bar.txt",
|
55
|
+
"is_dir": false, "icon": "page_white_text", "root": "dropbox", "mime_type":
|
56
|
+
"text/plain", "size": "12 bytes"}, {"revision": 47, "rev": "2f1f47d8b3", "thumb_exists":
|
57
|
+
false, "bytes": 9, "modified": "Mon, 10 Feb 2014 19:03:45 +0000", "client_mtime":
|
58
|
+
"Mon, 10 Feb 2014 19:03:45 +0000", "path": "/awesome-tests/delta-test-foo.txt",
|
59
|
+
"is_dir": false, "icon": "page_white_text", "root": "dropbox", "mime_type":
|
60
|
+
"text/plain", "size": "9 bytes"}], "size": "0 bytes"}'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Mon, 10 Feb 2014 20:28:54 GMT
|
63
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.dropbox.com/1/metadata/dropbox/baz.txt
|
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
|
+
- OAuth gem v0.4.7
|
16
|
+
Authorization:
|
17
|
+
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Mon, 10 Feb 2014 20:28:52 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/javascript
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Server-Response-Time:
|
34
|
+
- '48'
|
35
|
+
X-Dropbox-Request-Id:
|
36
|
+
- b5f8955be8f9120b6d069336b5b14265
|
37
|
+
Pragma:
|
38
|
+
- no-cache
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
X-Dropbox-Http-Protocol:
|
42
|
+
- None
|
43
|
+
X-Frame-Options:
|
44
|
+
- SAMEORIGIN
|
45
|
+
X-Requestid:
|
46
|
+
- 5e1d369db52c923798d2902ef863c677
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"revision": 43, "rev": "2b1f47d8b3", "thumb_exists": false, "bytes":
|
50
|
+
15, "modified": "Mon, 10 Feb 2014 18:28:30 +0000", "client_mtime": "Mon, 10
|
51
|
+
Feb 2014 18:28:30 +0000", "path": "/baz.txt", "is_dir": false, "icon": "page_white_text",
|
52
|
+
"root": "dropbox", "mime_type": "text/plain", "size": "15 bytes"}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 10 Feb 2014 20:28:53 GMT
|
55
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,107 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.dropbox.com/1/metadata/dropbox/foo.txt
|
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
|
+
- OAuth gem v0.4.7
|
16
|
+
Authorization:
|
17
|
+
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Mon, 10 Feb 2014 20:28:59 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/javascript
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Server-Response-Time:
|
34
|
+
- '45'
|
35
|
+
X-Dropbox-Request-Id:
|
36
|
+
- af418d15edaa4e0adaac578b767a73aa
|
37
|
+
Pragma:
|
38
|
+
- no-cache
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
X-Dropbox-Http-Protocol:
|
42
|
+
- None
|
43
|
+
X-Frame-Options:
|
44
|
+
- SAMEORIGIN
|
45
|
+
X-Requestid:
|
46
|
+
- b4ea7ca833ec946ec2cacd6e92a0aef2
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"revision": 13, "rev": "d1f47d8b3", "thumb_exists": false, "bytes":
|
50
|
+
9, "modified": "Mon, 10 Feb 2014 18:14:12 +0000", "client_mtime": "Mon, 10
|
51
|
+
Feb 2014 18:12:21 +0000", "path": "/foo.txt", "is_dir": false, "icon": "page_white_text",
|
52
|
+
"root": "dropbox", "mime_type": "text/plain", "size": "9 bytes"}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 10 Feb 2014 20:29:00 GMT
|
55
|
+
- request:
|
56
|
+
method: get
|
57
|
+
uri: https://api.dropbox.com/1/metadata/dropbox/foo.txt
|
58
|
+
body:
|
59
|
+
encoding: US-ASCII
|
60
|
+
string: ''
|
61
|
+
headers:
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- '*/*'
|
66
|
+
User-Agent:
|
67
|
+
- OAuth gem v0.4.7
|
68
|
+
Authorization:
|
69
|
+
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
70
|
+
response:
|
71
|
+
status:
|
72
|
+
code: 200
|
73
|
+
message: OK
|
74
|
+
headers:
|
75
|
+
Server:
|
76
|
+
- nginx
|
77
|
+
Date:
|
78
|
+
- Mon, 10 Feb 2014 20:28:59 GMT
|
79
|
+
Content-Type:
|
80
|
+
- text/javascript
|
81
|
+
Transfer-Encoding:
|
82
|
+
- chunked
|
83
|
+
Connection:
|
84
|
+
- keep-alive
|
85
|
+
X-Server-Response-Time:
|
86
|
+
- '38'
|
87
|
+
X-Dropbox-Request-Id:
|
88
|
+
- 9ab0bf710e1602b76e66cb536b0f13b4
|
89
|
+
Pragma:
|
90
|
+
- no-cache
|
91
|
+
Cache-Control:
|
92
|
+
- no-cache
|
93
|
+
X-Dropbox-Http-Protocol:
|
94
|
+
- None
|
95
|
+
X-Frame-Options:
|
96
|
+
- SAMEORIGIN
|
97
|
+
X-Requestid:
|
98
|
+
- 31d9b89f7f2e64b0a0478cd766c2cc8d
|
99
|
+
body:
|
100
|
+
encoding: UTF-8
|
101
|
+
string: '{"revision": 13, "rev": "d1f47d8b3", "thumb_exists": false, "bytes":
|
102
|
+
9, "modified": "Mon, 10 Feb 2014 18:14:12 +0000", "client_mtime": "Mon, 10
|
103
|
+
Feb 2014 18:12:21 +0000", "path": "/foo.txt", "is_dir": false, "icon": "page_white_text",
|
104
|
+
"root": "dropbox", "mime_type": "text/plain", "size": "9 bytes"}'
|
105
|
+
http_version:
|
106
|
+
recorded_at: Mon, 10 Feb 2014 20:29:00 GMT
|
107
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,107 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.dropbox.com/1/metadata/dropbox/foo.txt
|
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
|
+
- OAuth gem v0.4.7
|
16
|
+
Authorization:
|
17
|
+
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Mon, 10 Feb 2014 20:28:55 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/javascript
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Server-Response-Time:
|
34
|
+
- '36'
|
35
|
+
X-Dropbox-Request-Id:
|
36
|
+
- ca7840d7b768f35c785adee68e47e5c1
|
37
|
+
Pragma:
|
38
|
+
- no-cache
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
X-Dropbox-Http-Protocol:
|
42
|
+
- None
|
43
|
+
X-Frame-Options:
|
44
|
+
- SAMEORIGIN
|
45
|
+
X-Requestid:
|
46
|
+
- 099af021884d26daa3aaa94296bff26b
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"revision": 13, "rev": "d1f47d8b3", "thumb_exists": false, "bytes":
|
50
|
+
9, "modified": "Mon, 10 Feb 2014 18:14:12 +0000", "client_mtime": "Mon, 10
|
51
|
+
Feb 2014 18:12:21 +0000", "path": "/foo.txt", "is_dir": false, "icon": "page_white_text",
|
52
|
+
"root": "dropbox", "mime_type": "text/plain", "size": "9 bytes"}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 10 Feb 2014 20:28:56 GMT
|
55
|
+
- request:
|
56
|
+
method: get
|
57
|
+
uri: https://api.dropbox.com/1/metadata/dropbox/foo.txt
|
58
|
+
body:
|
59
|
+
encoding: US-ASCII
|
60
|
+
string: ''
|
61
|
+
headers:
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- '*/*'
|
66
|
+
User-Agent:
|
67
|
+
- OAuth gem v0.4.7
|
68
|
+
Authorization:
|
69
|
+
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
70
|
+
response:
|
71
|
+
status:
|
72
|
+
code: 200
|
73
|
+
message: OK
|
74
|
+
headers:
|
75
|
+
Server:
|
76
|
+
- nginx
|
77
|
+
Date:
|
78
|
+
- Mon, 10 Feb 2014 20:28:57 GMT
|
79
|
+
Content-Type:
|
80
|
+
- text/javascript
|
81
|
+
Transfer-Encoding:
|
82
|
+
- chunked
|
83
|
+
Connection:
|
84
|
+
- keep-alive
|
85
|
+
X-Server-Response-Time:
|
86
|
+
- '42'
|
87
|
+
X-Dropbox-Request-Id:
|
88
|
+
- 9fb5f475323222ded37d612640f85d4b
|
89
|
+
Pragma:
|
90
|
+
- no-cache
|
91
|
+
Cache-Control:
|
92
|
+
- no-cache
|
93
|
+
X-Dropbox-Http-Protocol:
|
94
|
+
- None
|
95
|
+
X-Frame-Options:
|
96
|
+
- SAMEORIGIN
|
97
|
+
X-Requestid:
|
98
|
+
- 890f801f428207fd4b12909bd324da8f
|
99
|
+
body:
|
100
|
+
encoding: UTF-8
|
101
|
+
string: '{"revision": 13, "rev": "d1f47d8b3", "thumb_exists": false, "bytes":
|
102
|
+
9, "modified": "Mon, 10 Feb 2014 18:14:12 +0000", "client_mtime": "Mon, 10
|
103
|
+
Feb 2014 18:12:21 +0000", "path": "/foo.txt", "is_dir": false, "icon": "page_white_text",
|
104
|
+
"root": "dropbox", "mime_type": "text/plain", "size": "9 bytes"}'
|
105
|
+
http_version:
|
106
|
+
recorded_at: Mon, 10 Feb 2014 20:28:58 GMT
|
107
|
+
recorded_with: VCR 2.8.0
|
data/spec/vcr/cassettes/Dropbox_API_Client/_ls/no_value/returns_an_array_of_files_and_dirs.yml
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.dropbox.com/1/metadata/dropbox/
|
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
|
+
- OAuth gem v0.4.7
|
16
|
+
Authorization:
|
17
|
+
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Mon, 10 Feb 2014 20:28:54 GMT
|
27
|
+
Content-Type:
|
28
|
+
- text/javascript
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Server-Response-Time:
|
34
|
+
- '53'
|
35
|
+
X-Dropbox-Request-Id:
|
36
|
+
- 0bcf9c3b0548735a574ffdeb6a84b99f
|
37
|
+
Pragma:
|
38
|
+
- no-cache
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
X-Dropbox-Http-Protocol:
|
42
|
+
- None
|
43
|
+
X-Frame-Options:
|
44
|
+
- SAMEORIGIN
|
45
|
+
X-Requestid:
|
46
|
+
- df5b9aade54268043c26c675f528c42a
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"hash": "d4154720cf2df1a7450b4a9614532ebc", "thumb_exists": false,
|
50
|
+
"bytes": 0, "path": "/", "is_dir": true, "size": "0 bytes", "root": "dropbox",
|
51
|
+
"contents": [{"revision": 2, "rev": "21f47d8b3", "thumb_exists": false, "bytes":
|
52
|
+
0, "modified": "Mon, 10 Feb 2014 18:11:20 +0000", "path": "/awesome-tests",
|
53
|
+
"is_dir": true, "icon": "folder", "root": "dropbox", "size": "0 bytes"}, {"revision":
|
54
|
+
3, "rev": "31f47d8b3", "thumb_exists": false, "bytes": 0, "modified": "Mon,
|
55
|
+
10 Feb 2014 18:11:21 +0000", "path": "/awesome-tests-!@#$%^&{b}[].;''.,",
|
56
|
+
"is_dir": true, "icon": "folder", "root": "dropbox", "size": "0 bytes"}, {"revision":
|
57
|
+
4, "rev": "41f47d8b3", "thumb_exists": false, "bytes": 0, "modified": "Mon,
|
58
|
+
10 Feb 2014 18:11:22 +0000", "path": "/awesome-tests-\u0142\u00f3\u0142\u0105",
|
59
|
+
"is_dir": true, "icon": "folder", "root": "dropbox", "size": "0 bytes"}, {"revision":
|
60
|
+
43, "rev": "2b1f47d8b3", "thumb_exists": false, "bytes": 15, "modified": "Mon,
|
61
|
+
10 Feb 2014 18:28:30 +0000", "client_mtime": "Mon, 10 Feb 2014 18:28:30 +0000",
|
62
|
+
"path": "/baz.txt", "is_dir": false, "icon": "page_white_text", "root": "dropbox",
|
63
|
+
"mime_type": "text/plain", "size": "15 bytes"}, {"revision": 57, "rev": "391f47d8b3",
|
64
|
+
"thumb_exists": false, "bytes": 0, "modified": "Mon, 10 Feb 2014 19:18:29
|
65
|
+
+0000", "path": "/dir-spec-tests", "is_dir": true, "icon": "folder", "root":
|
66
|
+
"dropbox", "size": "0 bytes"}, {"revision": 13, "rev": "d1f47d8b3", "thumb_exists":
|
67
|
+
false, "bytes": 9, "modified": "Mon, 10 Feb 2014 18:14:12 +0000", "client_mtime":
|
68
|
+
"Mon, 10 Feb 2014 18:12:21 +0000", "path": "/foo.txt", "is_dir": false, "icon":
|
69
|
+
"page_white_text", "root": "dropbox", "mime_type": "text/plain", "size": "9
|
70
|
+
bytes"}, {"revision": 1, "rev": "11f47d8b3", "thumb_exists": false, "bytes":
|
71
|
+
249159, "modified": "Mon, 10 Feb 2014 17:46:48 +0000", "client_mtime": "Mon,
|
72
|
+
10 Feb 2014 17:46:48 +0000", "path": "/Getting Started.pdf", "is_dir": false,
|
73
|
+
"icon": "page_white_acrobat", "root": "dropbox", "mime_type": "application/pdf",
|
74
|
+
"size": "243.3 KB"}, {"revision": 55, "rev": "371f47d8b3", "thumb_exists":
|
75
|
+
false, "bytes": 9, "modified": "Mon, 10 Feb 2014 19:16:34 +0000", "client_mtime":
|
76
|
+
"Mon, 10 Feb 2014 19:16:34 +0000", "path": "/qux.txt", "is_dir": false, "icon":
|
77
|
+
"page_white_text", "root": "dropbox", "mime_type": "text/plain", "size": "9
|
78
|
+
bytes"}, {"revision": 46, "rev": "2e1f47d8b3", "thumb_exists": true, "bytes":
|
79
|
+
12582, "modified": "Mon, 10 Feb 2014 19:01:24 +0000", "client_mtime": "Mon,
|
80
|
+
10 Feb 2014 19:01:24 +0000", "path": "/spec-test-1392058752.jpg", "is_dir":
|
81
|
+
false, "icon": "page_white_picture", "root": "dropbox", "mime_type": "image/jpeg",
|
82
|
+
"size": "12.3 KB"}, {"revision": 52, "rev": "341f47d8b3", "thumb_exists":
|
83
|
+
false, "bytes": 0, "modified": "Mon, 10 Feb 2014 19:06:53 +0000", "path":
|
84
|
+
"/test", "is_dir": true, "icon": "folder", "root": "dropbox", "size": "0 bytes"},
|
85
|
+
{"revision": 6, "rev": "61f47d8b3", "thumb_exists": false, "bytes": 9, "modified":
|
86
|
+
"Mon, 10 Feb 2014 18:11:25 +0000", "client_mtime": "Mon, 10 Feb 2014 18:11:25
|
87
|
+
+0000", "path": "/test ,|!@#$%^&*{b}[].;''.,<>?:-1392055876.txt", "is_dir":
|
88
|
+
false, "icon": "page_white_text", "root": "dropbox", "mime_type": "text/plain",
|
89
|
+
"size": "9 bytes"}, {"revision": 10, "rev": "a1f47d8b3", "thumb_exists": false,
|
90
|
+
"bytes": 9, "modified": "Mon, 10 Feb 2014 18:14:03 +0000", "client_mtime":
|
91
|
+
"Mon, 10 Feb 2014 18:14:03 +0000", "path": "/test ,|!@#$%^&*{b}[].;''.,<>?:.txt",
|
92
|
+
"is_dir": false, "icon": "page_white_text", "root": "dropbox", "mime_type":
|
93
|
+
"text/plain", "size": "9 bytes"}, {"revision": 7, "rev": "71f47d8b3", "thumb_exists":
|
94
|
+
false, "bytes": 9, "modified": "Mon, 10 Feb 2014 18:11:26 +0000", "client_mtime":
|
95
|
+
"Mon, 10 Feb 2014 18:11:26 +0000", "path": "/test \u0142o\u0142\u0105\u00f3-1392055876.txt",
|
96
|
+
"is_dir": false, "icon": "page_white_text", "root": "dropbox", "mime_type":
|
97
|
+
"text/plain", "size": "9 bytes"}, {"revision": 11, "rev": "b1f47d8b3", "thumb_exists":
|
98
|
+
false, "bytes": 9, "modified": "Mon, 10 Feb 2014 18:14:04 +0000", "client_mtime":
|
99
|
+
"Mon, 10 Feb 2014 18:14:04 +0000", "path": "/test \u0142o\u0142\u0105\u00f3.txt",
|
100
|
+
"is_dir": false, "icon": "page_white_text", "root": "dropbox", "mime_type":
|
101
|
+
"text/plain", "size": "9 bytes"}, {"revision": 5, "rev": "51f47d8b3", "thumb_exists":
|
102
|
+
false, "bytes": 9, "modified": "Mon, 10 Feb 2014 18:11:24 +0000", "client_mtime":
|
103
|
+
"Mon, 10 Feb 2014 18:11:24 +0000", "path": "/test-1392055876.txt", "is_dir":
|
104
|
+
false, "icon": "page_white_text", "root": "dropbox", "mime_type": "text/plain",
|
105
|
+
"size": "9 bytes"}, {"revision": 45, "rev": "2d1f47d8b3", "thumb_exists":
|
106
|
+
false, "bytes": 0, "modified": "Mon, 10 Feb 2014 18:59:13 +0000", "path":
|
107
|
+
"/test-1392058752", "is_dir": true, "icon": "folder", "root": "dropbox", "size":
|
108
|
+
"0 bytes"}, {"revision": 9, "rev": "91f47d8b3", "thumb_exists": false, "bytes":
|
109
|
+
9, "modified": "Mon, 10 Feb 2014 18:14:02 +0000", "client_mtime": "Mon, 10
|
110
|
+
Feb 2014 18:14:02 +0000", "path": "/test.txt", "is_dir": false, "icon": "page_white_text",
|
111
|
+
"root": "dropbox", "mime_type": "text/plain", "size": "9 bytes"}], "icon":
|
112
|
+
"folder"}'
|
113
|
+
http_version:
|
114
|
+
recorded_at: Mon, 10 Feb 2014 20:28:55 GMT
|
115
|
+
recorded_with: VCR 2.8.0
|