dropbox-api-petems 0.4.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +5 -0
  3. data/README.markdown +13 -8
  4. data/Rakefile +5 -0
  5. data/dropbox-api.gemspec +9 -8
  6. data/lib/dropbox-api.rb +1 -0
  7. data/lib/dropbox-api/objects/dir.rb +5 -0
  8. data/lib/dropbox-api/objects/file.rb +5 -10
  9. data/lib/dropbox-api/objects/fileops.rb +5 -0
  10. data/lib/dropbox-api/tasks.rb +2 -2
  11. data/lib/dropbox-api/version.rb +1 -1
  12. data/spec/connection.offline.yml +5 -0
  13. data/spec/lib/dropbox-api/client_spec.rb +96 -68
  14. data/spec/lib/dropbox-api/connection_spec.rb +1 -1
  15. data/spec/lib/dropbox-api/dir_spec.rb +12 -6
  16. data/spec/lib/dropbox-api/file_spec.rb +7 -11
  17. data/spec/lib/dropbox-api/oauth_spec.rb +22 -1
  18. data/spec/lib/dropbox-api/thumbnail_spec.rb +4 -4
  19. data/spec/spec_helper.rb +13 -4
  20. data/spec/support/config.rb +5 -1
  21. data/spec/vcr/cassettes/Dropbox_API_Client/_account/retrieves_the_account_object.yml +54 -0
  22. data/spec/vcr/cassettes/Dropbox_API_Client/_chunked_upload/puts_a_5MB_file_in_dropbox.yml +150 -0
  23. data/spec/vcr/cassettes/Dropbox_API_Client/_chunked_upload/yields_current_offset_and_upload_id.yml +150 -0
  24. data/spec/vcr/cassettes/Dropbox_API_Client/_copy_from_copy_ref/copies_a_file_from_a_copy_ref.yml +271 -0
  25. data/spec/vcr/cassettes/Dropbox_API_Client/_delta/returns_a_cursor_and_list_of_files.yml +184 -0
  26. data/spec/vcr/cassettes/Dropbox_API_Client/_delta/returns_the_files_that_have_changed_since_the_cursor_was_made.yml +361 -0
  27. data/spec/vcr/cassettes/Dropbox_API_Client/_download/a_file/downloads_a_file.yml +58 -0
  28. data/spec/vcr/cassettes/Dropbox_API_Client/_download/a_non-existant_file/raises_a_404.yml +38 -0
  29. data/spec/vcr/cassettes/Dropbox_API_Client/_find/returns_a_single_directory.yml +63 -0
  30. data/spec/vcr/cassettes/Dropbox_API_Client/_find/returns_a_single_file.yml +55 -0
  31. data/spec/vcr/cassettes/Dropbox_API_Client/_ls/a_directory/returns_an_item_array_of_directory_contents.yml +107 -0
  32. 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
  33. data/spec/vcr/cassettes/Dropbox_API_Client/_ls/no_value/returns_an_array_of_files_and_dirs.yml +115 -0
  34. data/spec/vcr/cassettes/Dropbox_API_Client/_mkdir/creates_dirs_with_tricky_characters.yml +61 -0
  35. data/spec/vcr/cassettes/Dropbox_API_Client/_mkdir/creates_dirs_with_utf8_characters.yml +61 -0
  36. data/spec/vcr/cassettes/Dropbox_API_Client/_mkdir/returns_an_array_of_files_and_dirs.yml +61 -0
  37. data/spec/vcr/cassettes/Dropbox_API_Client/_search/no_path_given/finds_the_file_if_in_root.yml +55 -0
  38. data/spec/vcr/cassettes/Dropbox_API_Client/_search/path_with_leading_slash/finds_the_file.yml +56 -0
  39. data/spec/vcr/cassettes/Dropbox_API_Client/_search/with_path/finds_a_file.yml +56 -0
  40. data/spec/vcr/cassettes/Dropbox_API_Client/_upload/a_file_with_tricky_characters/is_uploaded.yml +56 -0
  41. data/spec/vcr/cassettes/Dropbox_API_Client/_upload/a_file_with_utf8/is_uploaded.yml +56 -0
  42. data/spec/vcr/cassettes/Dropbox_API_Client/_upload/a_simple_file/is_uploaded.yml +55 -0
  43. data/spec/vcr/cassettes/Dropbox_API_Dir/_copy/copies_the_dir_properly.yml +120 -0
  44. data/spec/vcr/cassettes/Dropbox_API_Dir/_destroy/destroys_the_dir_properly.yml +120 -0
  45. data/spec/vcr/cassettes/Dropbox_API_Dir/_direct_url/gives_the_direct_url.yml +115 -0
  46. data/spec/vcr/cassettes/Dropbox_API_Dir/_move/moves_the_dir_properly.yml +120 -0
  47. data/spec/vcr/cassettes/Dropbox_API_File/_copy/copies_the_file_properly.yml +115 -0
  48. data/spec/vcr/cassettes/Dropbox_API_File/_copy_ref/returns_a_copy_ref_object.yml +104 -0
  49. data/spec/vcr/cassettes/Dropbox_API_File/_destroy/destroys_the_file_properly.yml +115 -0
  50. data/spec/vcr/cassettes/Dropbox_API_File/_direct_url/returns_an_Url_object.yml +109 -0
  51. data/spec/vcr/cassettes/Dropbox_API_File/_download/should_download_the_file.yml +109 -0
  52. data/spec/vcr/cassettes/Dropbox_API_File/_move/moves_the_file_properly.yml +115 -0
  53. data/spec/vcr/cassettes/Dropbox_API_File/_restore/restores_the_file_to_a_specific_revision.yml +270 -0
  54. data/spec/vcr/cassettes/Dropbox_API_File/_revisions/retrieves_all_revisions_as_an_Array_of_File_objects.yml +166 -0
  55. data/spec/vcr/cassettes/Dropbox_API_File/_share_url/returns_an_Url_object.yml +109 -0
  56. data/spec/vcr/cassettes/Dropbox_API_File/_thumbnail/downloads_a_thumbnail.yml +427 -0
  57. data/spec/vcr/cassettes/Dropbox_API_OAuth/_consumer/provides_an_oauth_method.yml +105 -0
  58. metadata +127 -41
  59. data/.ruby-version +0 -1
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api-content.dropbox.com/1/files_put/dropbox/test.txt
6
+ body:
7
+ encoding: UTF-8
8
+ string: Some file
9
+ headers:
10
+ Content-Type:
11
+ - application/octet-stream
12
+ Content-Length:
13
+ - '9'
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - '*/*'
18
+ User-Agent:
19
+ - OAuth gem v0.4.7
20
+ Authorization:
21
+ - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Server:
28
+ - nginx
29
+ Date:
30
+ - Mon, 10 Feb 2014 20:29:08 GMT
31
+ Content-Type:
32
+ - text/javascript
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ X-Server-Response-Time:
38
+ - '348'
39
+ X-Dropbox-Request-Id:
40
+ - 8278c3d831d6d9eeb8074ea20568cb1d
41
+ Pragma:
42
+ - no-cache
43
+ Cache-Control:
44
+ - no-cache
45
+ X-Requestid:
46
+ - 3ac7b6770cc8649f49c34eeb184abd47
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"revision": 9, "rev": "91f47d8b3", "thumb_exists": false, "bytes":
50
+ 9, "modified": "Mon, 10 Feb 2014 18:14:02 +0000", "client_mtime": "Mon, 10
51
+ Feb 2014 18:14:02 +0000", "path": "/test.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:09 GMT
55
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,120 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.dropbox.com/1/fileops/create_folder
6
+ body:
7
+ encoding: US-ASCII
8
+ string: path=dir-spec-tests&root=dropbox
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
+ Content-Length:
17
+ - '0'
18
+ Content-Type:
19
+ - application/x-www-form-urlencoded
20
+ Authorization:
21
+ - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Server:
28
+ - nginx
29
+ Date:
30
+ - Mon, 10 Feb 2014 20:37:22 GMT
31
+ Content-Type:
32
+ - text/javascript
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Set-Cookie:
38
+ - gvc=MzE2NTc5OTM2MzA2OTE1ODg2OTg5MzI1MzgyMDI2OTUzNjcyNjE5; expires=Sat, 09
39
+ Feb 2019 20:37:22 GMT; Path=/; httponly
40
+ X-Server-Response-Time:
41
+ - '153'
42
+ X-Dropbox-Request-Id:
43
+ - 95cbfc456c60378dbdfaec1d909de1fc
44
+ Pragma:
45
+ - no-cache
46
+ Cache-Control:
47
+ - no-cache
48
+ X-Dropbox-Http-Protocol:
49
+ - None
50
+ X-Frame-Options:
51
+ - SAMEORIGIN
52
+ X-Requestid:
53
+ - 257d9be8ba8e942474336393f387588d
54
+ body:
55
+ encoding: UTF-8
56
+ string: '{"revision": 82, "rev": "521f47d8b3", "thumb_exists": false, "bytes":
57
+ 0, "modified": "Mon, 10 Feb 2014 20:37:22 +0000", "path": "/dir-spec-tests",
58
+ "is_dir": true, "icon": "folder", "root": "dropbox", "size": "0 bytes"}'
59
+ http_version:
60
+ recorded_at: Mon, 10 Feb 2014 20:37:23 GMT
61
+ - request:
62
+ method: post
63
+ uri: https://api.dropbox.com/1/fileops/copy
64
+ body:
65
+ encoding: US-ASCII
66
+ string: from_path=dir-spec-tests&root=dropbox&to_path=dir-spec-tests-copied
67
+ headers:
68
+ Accept-Encoding:
69
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
70
+ Accept:
71
+ - '*/*'
72
+ User-Agent:
73
+ - OAuth gem v0.4.7
74
+ Content-Length:
75
+ - '0'
76
+ Content-Type:
77
+ - application/x-www-form-urlencoded
78
+ Authorization:
79
+ - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
80
+ response:
81
+ status:
82
+ code: 200
83
+ message: OK
84
+ headers:
85
+ Server:
86
+ - nginx
87
+ Date:
88
+ - Mon, 10 Feb 2014 20:37:24 GMT
89
+ Content-Type:
90
+ - text/javascript
91
+ Transfer-Encoding:
92
+ - chunked
93
+ Connection:
94
+ - keep-alive
95
+ Set-Cookie:
96
+ - gvc=MzA4NTE4MTg1Njk4MzAxMjk3NzUxMjg0MTM2Mjc1MDc4MTQwODQw; expires=Sat, 09
97
+ Feb 2019 20:37:24 GMT; Path=/; httponly
98
+ X-Server-Response-Time:
99
+ - '180'
100
+ X-Dropbox-Request-Id:
101
+ - 09bf5b1581be09fb737543f8daa425e0
102
+ Pragma:
103
+ - no-cache
104
+ Cache-Control:
105
+ - no-cache
106
+ X-Dropbox-Http-Protocol:
107
+ - None
108
+ X-Frame-Options:
109
+ - SAMEORIGIN
110
+ X-Requestid:
111
+ - 22606741968394a8560f6590e540364f
112
+ body:
113
+ encoding: UTF-8
114
+ string: '{"hash": "5d4b6dc8922c366e70cb27fbed545b64", "revision": 83, "rev":
115
+ "531f47d8b3", "thumb_exists": false, "bytes": 0, "modified": "Mon, 10 Feb
116
+ 2014 20:37:24 +0000", "path": "/dir-spec-tests-copied", "is_dir": true, "icon":
117
+ "folder", "root": "dropbox", "contents": [], "size": "0 bytes"}'
118
+ http_version:
119
+ recorded_at: Mon, 10 Feb 2014 20:37:25 GMT
120
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,120 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.dropbox.com/1/fileops/create_folder
6
+ body:
7
+ encoding: US-ASCII
8
+ string: path=dir-spec-tests&root=dropbox
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
+ Content-Length:
17
+ - '0'
18
+ Content-Type:
19
+ - application/x-www-form-urlencoded
20
+ Authorization:
21
+ - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Server:
28
+ - nginx
29
+ Date:
30
+ - Mon, 10 Feb 2014 20:39:24 GMT
31
+ Content-Type:
32
+ - text/javascript
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Set-Cookie:
38
+ - gvc=MjUyMzc3MjMxMTEzMzIyNzIwMTE5MTA3MjQzMDU0NTIwNzU1NTEy; expires=Sat, 09
39
+ Feb 2019 20:39:24 GMT; Path=/; httponly
40
+ X-Server-Response-Time:
41
+ - '148'
42
+ X-Dropbox-Request-Id:
43
+ - a2d9ad3fd9054a74eeea546f93a7b8dc
44
+ Pragma:
45
+ - no-cache
46
+ Cache-Control:
47
+ - no-cache
48
+ X-Dropbox-Http-Protocol:
49
+ - None
50
+ X-Frame-Options:
51
+ - SAMEORIGIN
52
+ X-Requestid:
53
+ - a914af33d16b493590f12f1d95401613
54
+ body:
55
+ encoding: UTF-8
56
+ string: '{"revision": 94, "rev": "5e1f47d8b3", "thumb_exists": false, "bytes":
57
+ 0, "modified": "Mon, 10 Feb 2014 20:39:24 +0000", "path": "/dir-spec-tests",
58
+ "is_dir": true, "icon": "folder", "root": "dropbox", "size": "0 bytes"}'
59
+ http_version:
60
+ recorded_at: Mon, 10 Feb 2014 20:39:25 GMT
61
+ - request:
62
+ method: post
63
+ uri: https://api.dropbox.com/1/fileops/delete
64
+ body:
65
+ encoding: US-ASCII
66
+ string: path=dir-spec-tests&root=dropbox
67
+ headers:
68
+ Accept-Encoding:
69
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
70
+ Accept:
71
+ - '*/*'
72
+ User-Agent:
73
+ - OAuth gem v0.4.7
74
+ Content-Length:
75
+ - '0'
76
+ Content-Type:
77
+ - application/x-www-form-urlencoded
78
+ Authorization:
79
+ - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
80
+ response:
81
+ status:
82
+ code: 200
83
+ message: OK
84
+ headers:
85
+ Server:
86
+ - nginx
87
+ Date:
88
+ - Mon, 10 Feb 2014 20:39:25 GMT
89
+ Content-Type:
90
+ - text/javascript
91
+ Transfer-Encoding:
92
+ - chunked
93
+ Connection:
94
+ - keep-alive
95
+ Set-Cookie:
96
+ - gvc=MjE1Mjg5NDk2NDMyNDEzODU4OTQ5ODc4NjA5NTEyODc4NTE4ODIz; expires=Sat, 09
97
+ Feb 2019 20:39:25 GMT; Path=/; httponly
98
+ X-Server-Response-Time:
99
+ - '161'
100
+ X-Dropbox-Request-Id:
101
+ - 24726638ae6b95789dd4cde5ffad8913
102
+ Pragma:
103
+ - no-cache
104
+ Cache-Control:
105
+ - no-cache
106
+ X-Dropbox-Http-Protocol:
107
+ - None
108
+ X-Frame-Options:
109
+ - SAMEORIGIN
110
+ X-Requestid:
111
+ - 04d285a7db00dc35be3c17fc76789d74
112
+ body:
113
+ encoding: UTF-8
114
+ string: '{"is_deleted": true, "revision": 95, "rev": "5f1f47d8b3", "thumb_exists":
115
+ false, "bytes": 0, "modified": "Mon, 10 Feb 2014 20:39:25 +0000", "path":
116
+ "/dir-spec-tests", "is_dir": true, "icon": "folder_gray", "root": "dropbox",
117
+ "size": "0 bytes"}'
118
+ http_version:
119
+ recorded_at: Mon, 10 Feb 2014 20:39:26 GMT
120
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,115 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.dropbox.com/1/fileops/create_folder
6
+ body:
7
+ encoding: US-ASCII
8
+ string: path=dir-spec-tests&root=dropbox
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
+ Content-Length:
17
+ - '0'
18
+ Content-Type:
19
+ - application/x-www-form-urlencoded
20
+ Authorization:
21
+ - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Server:
28
+ - nginx
29
+ Date:
30
+ - Mon, 10 Feb 2014 20:39:27 GMT
31
+ Content-Type:
32
+ - text/javascript
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Set-Cookie:
38
+ - gvc=MjEwODkzMzk4ODk0NjkxNDY2ODM4MDIxMTAwNjM0MDQ5NTczMzk2; expires=Sat, 09
39
+ Feb 2019 20:39:27 GMT; Path=/; httponly
40
+ X-Server-Response-Time:
41
+ - '155'
42
+ X-Dropbox-Request-Id:
43
+ - 91b898c7316e183f96bbeebb6ca428f2
44
+ Pragma:
45
+ - no-cache
46
+ Cache-Control:
47
+ - no-cache
48
+ X-Dropbox-Http-Protocol:
49
+ - None
50
+ X-Frame-Options:
51
+ - SAMEORIGIN
52
+ X-Requestid:
53
+ - 9f442220e058613eaec512c5cf75d96a
54
+ body:
55
+ encoding: UTF-8
56
+ string: '{"revision": 96, "rev": "601f47d8b3", "thumb_exists": false, "bytes":
57
+ 0, "modified": "Mon, 10 Feb 2014 20:39:27 +0000", "path": "/dir-spec-tests",
58
+ "is_dir": true, "icon": "folder", "root": "dropbox", "size": "0 bytes"}'
59
+ http_version:
60
+ recorded_at: Mon, 10 Feb 2014 20:39:29 GMT
61
+ - request:
62
+ method: post
63
+ uri: https://api.dropbox.com/1/shares/dropbox/dir-spec-tests
64
+ body:
65
+ encoding: US-ASCII
66
+ string: short_url=false
67
+ headers:
68
+ Accept-Encoding:
69
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
70
+ Accept:
71
+ - '*/*'
72
+ User-Agent:
73
+ - OAuth gem v0.4.7
74
+ Content-Length:
75
+ - '0'
76
+ Content-Type:
77
+ - application/x-www-form-urlencoded
78
+ Authorization:
79
+ - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
80
+ response:
81
+ status:
82
+ code: 200
83
+ message: OK
84
+ headers:
85
+ Server:
86
+ - nginx
87
+ Date:
88
+ - Mon, 10 Feb 2014 20:39:29 GMT
89
+ Content-Type:
90
+ - text/javascript
91
+ Transfer-Encoding:
92
+ - chunked
93
+ Connection:
94
+ - keep-alive
95
+ X-Server-Response-Time:
96
+ - '69'
97
+ X-Dropbox-Request-Id:
98
+ - c6a7f6c67b4184c930e664c5161312a4
99
+ Pragma:
100
+ - no-cache
101
+ Cache-Control:
102
+ - no-cache
103
+ X-Dropbox-Http-Protocol:
104
+ - None
105
+ X-Frame-Options:
106
+ - SAMEORIGIN
107
+ X-Requestid:
108
+ - 5b5979aba804f366695d9ff87a266c03
109
+ body:
110
+ encoding: UTF-8
111
+ string: '{"url": "https://www.dropbox.com/sh/y2wx4tpk9co1uqg/7wFKjUC2ep", "expires":
112
+ "Tue, 01 Jan 2030 00:00:00 +0000"}'
113
+ http_version:
114
+ recorded_at: Mon, 10 Feb 2014 20:39:30 GMT
115
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,120 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.dropbox.com/1/fileops/create_folder
6
+ body:
7
+ encoding: US-ASCII
8
+ string: path=dir-spec-tests&root=dropbox
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
+ Content-Length:
17
+ - '0'
18
+ Content-Type:
19
+ - application/x-www-form-urlencoded
20
+ Authorization:
21
+ - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Server:
28
+ - nginx
29
+ Date:
30
+ - Mon, 10 Feb 2014 20:39:20 GMT
31
+ Content-Type:
32
+ - text/javascript
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Set-Cookie:
38
+ - gvc=MTU2ODkwNDYyMzM1OTkyNDIzMzA1ODI3MTgzNjIzNTk0MjE5Nzgw; expires=Sat, 09
39
+ Feb 2019 20:39:20 GMT; Path=/; httponly
40
+ X-Server-Response-Time:
41
+ - '166'
42
+ X-Dropbox-Request-Id:
43
+ - ee06cff64bd5d150876b12ccaa1faa96
44
+ Pragma:
45
+ - no-cache
46
+ Cache-Control:
47
+ - no-cache
48
+ X-Dropbox-Http-Protocol:
49
+ - None
50
+ X-Frame-Options:
51
+ - SAMEORIGIN
52
+ X-Requestid:
53
+ - 9126ad34387e601acdeb488205d66d8b
54
+ body:
55
+ encoding: UTF-8
56
+ string: '{"revision": 91, "rev": "5b1f47d8b3", "thumb_exists": false, "bytes":
57
+ 0, "modified": "Mon, 10 Feb 2014 20:39:20 +0000", "path": "/dir-spec-tests",
58
+ "is_dir": true, "icon": "folder", "root": "dropbox", "size": "0 bytes"}'
59
+ http_version:
60
+ recorded_at: Mon, 10 Feb 2014 20:39:21 GMT
61
+ - request:
62
+ method: post
63
+ uri: https://api.dropbox.com/1/fileops/move
64
+ body:
65
+ encoding: US-ASCII
66
+ string: from_path=dir-spec-tests&root=dropbox&to_path=dir-spec-tests-copied
67
+ headers:
68
+ Accept-Encoding:
69
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
70
+ Accept:
71
+ - '*/*'
72
+ User-Agent:
73
+ - OAuth gem v0.4.7
74
+ Content-Length:
75
+ - '0'
76
+ Content-Type:
77
+ - application/x-www-form-urlencoded
78
+ Authorization:
79
+ - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
80
+ response:
81
+ status:
82
+ code: 200
83
+ message: OK
84
+ headers:
85
+ Server:
86
+ - nginx
87
+ Date:
88
+ - Mon, 10 Feb 2014 20:39:21 GMT
89
+ Content-Type:
90
+ - text/javascript
91
+ Transfer-Encoding:
92
+ - chunked
93
+ Connection:
94
+ - keep-alive
95
+ Set-Cookie:
96
+ - gvc=NDA2MzcyNDU0MTU1MDg0NDI1MDY4MzQ5NTQzNTIxMzg4NDQ0Mg%3D%3D; expires=Sat,
97
+ 09 Feb 2019 20:39:21 GMT; Path=/; httponly
98
+ X-Server-Response-Time:
99
+ - '195'
100
+ X-Dropbox-Request-Id:
101
+ - 9708668e4c0dd084d536a94f7b933a48
102
+ Pragma:
103
+ - no-cache
104
+ Cache-Control:
105
+ - no-cache
106
+ X-Dropbox-Http-Protocol:
107
+ - None
108
+ X-Frame-Options:
109
+ - SAMEORIGIN
110
+ X-Requestid:
111
+ - 4f7b247bff75d7483c0f88231d17c5e4
112
+ body:
113
+ encoding: UTF-8
114
+ string: '{"hash": "8ae13889439e1e5366c903a15c603fb2", "revision": 93, "rev":
115
+ "5d1f47d8b3", "thumb_exists": false, "bytes": 0, "modified": "Mon, 10 Feb
116
+ 2014 20:39:21 +0000", "path": "/dir-spec-tests-copied", "is_dir": true, "icon":
117
+ "folder", "root": "dropbox", "contents": [], "size": "0 bytes"}'
118
+ http_version:
119
+ recorded_at: Mon, 10 Feb 2014 20:39:23 GMT
120
+ recorded_with: VCR 2.8.0