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,115 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api-content.dropbox.com/1/files_put/dropbox/qux.txt
6
+ body:
7
+ encoding: UTF-8
8
+ string: spec 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:37 GMT
31
+ Content-Type:
32
+ - text/javascript
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ X-Server-Response-Time:
38
+ - '351'
39
+ X-Dropbox-Request-Id:
40
+ - 2d9f2fa379fe7c252768a27fb198c0d2
41
+ Pragma:
42
+ - no-cache
43
+ Cache-Control:
44
+ - no-cache
45
+ X-Requestid:
46
+ - 9522be9cbb96d01b92cbeccf547d8574
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"revision": 55, "rev": "371f47d8b3", "thumb_exists": false, "bytes":
50
+ 9, "modified": "Mon, 10 Feb 2014 19:16:34 +0000", "client_mtime": "Mon, 10
51
+ Feb 2014 19:16:34 +0000", "path": "/qux.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:38 GMT
55
+ - request:
56
+ method: post
57
+ uri: https://api.dropbox.com/1/fileops/copy
58
+ body:
59
+ encoding: US-ASCII
60
+ string: from_path=qux.txt&root=dropbox&to_path=qux.txt.copied
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
+ Content-Length:
69
+ - '0'
70
+ Content-Type:
71
+ - application/x-www-form-urlencoded
72
+ Authorization:
73
+ - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
74
+ response:
75
+ status:
76
+ code: 200
77
+ message: OK
78
+ headers:
79
+ Server:
80
+ - nginx
81
+ Date:
82
+ - Mon, 10 Feb 2014 20:29:38 GMT
83
+ Content-Type:
84
+ - text/javascript
85
+ Transfer-Encoding:
86
+ - chunked
87
+ Connection:
88
+ - keep-alive
89
+ Set-Cookie:
90
+ - gvc=NTAyMDIyMDE5NjE5NDgxNzM0NzM4ODA3Mzc0Nzc1NTI1ODIxMDA%3D; expires=Sat, 09
91
+ Feb 2019 20:29:38 GMT; Path=/; httponly
92
+ X-Server-Response-Time:
93
+ - '165'
94
+ X-Dropbox-Request-Id:
95
+ - d9d69046d8cfb319e4f7c00bae16c11a
96
+ Pragma:
97
+ - no-cache
98
+ Cache-Control:
99
+ - no-cache
100
+ X-Dropbox-Http-Protocol:
101
+ - None
102
+ X-Frame-Options:
103
+ - SAMEORIGIN
104
+ X-Requestid:
105
+ - aa92bc03876004789fee72263e3c39fe
106
+ body:
107
+ encoding: UTF-8
108
+ string: '{"revision": 60, "rev": "3c1f47d8b3", "thumb_exists": false, "bytes":
109
+ 9, "modified": "Mon, 10 Feb 2014 20:29:38 +0000", "client_mtime": "Mon, 10
110
+ Feb 2014 19:16:34 +0000", "path": "/qux.txt.copied", "is_dir": false, "icon":
111
+ "page_white", "root": "dropbox", "mime_type": "application/octet-stream",
112
+ "size": "9 bytes"}'
113
+ http_version:
114
+ recorded_at: Mon, 10 Feb 2014 20:29:39 GMT
115
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,104 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api-content.dropbox.com/1/files_put/dropbox/qux.txt
6
+ body:
7
+ encoding: UTF-8
8
+ string: spec 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:30:09 GMT
31
+ Content-Type:
32
+ - text/javascript
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ X-Server-Response-Time:
38
+ - '358'
39
+ X-Dropbox-Request-Id:
40
+ - e6de16e59e06cd60d0ee9234844d4e9d
41
+ Pragma:
42
+ - no-cache
43
+ Cache-Control:
44
+ - no-cache
45
+ X-Requestid:
46
+ - de8d3b1804fc09155b3f16aea7ae0eee
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"revision": 66, "rev": "421f47d8b3", "thumb_exists": false, "bytes":
50
+ 9, "modified": "Mon, 10 Feb 2014 20:30:04 +0000", "client_mtime": "Mon, 10
51
+ Feb 2014 20:29:58 +0000", "path": "/qux.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:30:10 GMT
55
+ - request:
56
+ method: get
57
+ uri: https://api.dropbox.com/1/copy_ref/dropbox/qux.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:30:10 GMT
79
+ Content-Type:
80
+ - text/javascript
81
+ Transfer-Encoding:
82
+ - chunked
83
+ Connection:
84
+ - keep-alive
85
+ X-Server-Response-Time:
86
+ - '48'
87
+ X-Dropbox-Request-Id:
88
+ - 7f928c93e5173ce73eb77e66f75126b0
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
+ - 7767ca27923a446c60b0706e925b62b9
99
+ body:
100
+ encoding: UTF-8
101
+ string: '{"expires": "Wed, 03 Feb 2044 20:30:10 +0000", "copy_ref": "H0fYszZvbmp1MmxpOGQ3bg"}'
102
+ http_version:
103
+ recorded_at: Mon, 10 Feb 2014 20:30:11 GMT
104
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,115 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api-content.dropbox.com/1/files_put/dropbox/qux.txt
6
+ body:
7
+ encoding: UTF-8
8
+ string: spec 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:42 GMT
31
+ Content-Type:
32
+ - text/javascript
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ X-Server-Response-Time:
38
+ - '814'
39
+ X-Dropbox-Request-Id:
40
+ - 80000885ce9ef0c6f61c0756caf19b1a
41
+ Pragma:
42
+ - no-cache
43
+ Cache-Control:
44
+ - no-cache
45
+ X-Requestid:
46
+ - 0179fea410b0885b514566a90da36559
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"revision": 55, "rev": "371f47d8b3", "thumb_exists": false, "bytes":
50
+ 9, "modified": "Mon, 10 Feb 2014 19:16:34 +0000", "client_mtime": "Mon, 10
51
+ Feb 2014 19:16:34 +0000", "path": "/qux.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:43 GMT
55
+ - request:
56
+ method: post
57
+ uri: https://api.dropbox.com/1/fileops/delete
58
+ body:
59
+ encoding: US-ASCII
60
+ string: path=qux.txt&root=dropbox
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
+ Content-Length:
69
+ - '0'
70
+ Content-Type:
71
+ - application/x-www-form-urlencoded
72
+ Authorization:
73
+ - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
74
+ response:
75
+ status:
76
+ code: 200
77
+ message: OK
78
+ headers:
79
+ Server:
80
+ - nginx
81
+ Date:
82
+ - Mon, 10 Feb 2014 20:29:49 GMT
83
+ Content-Type:
84
+ - text/javascript
85
+ Transfer-Encoding:
86
+ - chunked
87
+ Connection:
88
+ - keep-alive
89
+ Set-Cookie:
90
+ - gvc=ODgzODcyOTk3MjYwODA0NjMzNDA5NTM0ODg5MDQyNzkwODI4MDQ%3D; expires=Sat, 09
91
+ Feb 2019 20:29:49 GMT; Path=/; httponly
92
+ X-Server-Response-Time:
93
+ - '152'
94
+ X-Dropbox-Request-Id:
95
+ - 12e6f56f24aceb3b2c31e3dad294acc4
96
+ Pragma:
97
+ - no-cache
98
+ Cache-Control:
99
+ - no-cache
100
+ X-Dropbox-Http-Protocol:
101
+ - None
102
+ X-Frame-Options:
103
+ - SAMEORIGIN
104
+ X-Requestid:
105
+ - 5def9f1a36b71cd041ce71427b8b335d
106
+ body:
107
+ encoding: UTF-8
108
+ string: '{"is_deleted": true, "revision": 61, "rev": "3d1f47d8b3", "thumb_exists":
109
+ false, "bytes": 0, "modified": "Mon, 10 Feb 2014 20:29:49 +0000", "client_mtime":
110
+ "Wed, 31 Dec 1969 23:59:59 +0000", "path": "/qux.txt", "is_dir": false, "icon":
111
+ "page_white_text", "root": "dropbox", "mime_type": "text/plain", "size": "0
112
+ bytes"}'
113
+ http_version:
114
+ recorded_at: Mon, 10 Feb 2014 20:29:50 GMT
115
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,109 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api-content.dropbox.com/1/files_put/dropbox/qux.txt
6
+ body:
7
+ encoding: UTF-8
8
+ string: spec 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:30:11 GMT
31
+ Content-Type:
32
+ - text/javascript
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ X-Server-Response-Time:
38
+ - '251'
39
+ X-Dropbox-Request-Id:
40
+ - f10b03a80c580cd9ca588be427fed55b
41
+ Pragma:
42
+ - no-cache
43
+ Cache-Control:
44
+ - no-cache
45
+ X-Requestid:
46
+ - 5203140ae76a85df40a114435260f0da
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"revision": 66, "rev": "421f47d8b3", "thumb_exists": false, "bytes":
50
+ 9, "modified": "Mon, 10 Feb 2014 20:30:04 +0000", "client_mtime": "Mon, 10
51
+ Feb 2014 20:29:58 +0000", "path": "/qux.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:30:12 GMT
55
+ - request:
56
+ method: post
57
+ uri: https://api.dropbox.com/1/media/dropbox/qux.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
+ Content-Length:
69
+ - '0'
70
+ Content-Type:
71
+ - application/x-www-form-urlencoded
72
+ Authorization:
73
+ - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
74
+ response:
75
+ status:
76
+ code: 200
77
+ message: OK
78
+ headers:
79
+ Server:
80
+ - nginx
81
+ Date:
82
+ - Mon, 10 Feb 2014 20:30:12 GMT
83
+ Content-Type:
84
+ - text/javascript
85
+ Transfer-Encoding:
86
+ - chunked
87
+ Connection:
88
+ - keep-alive
89
+ X-Server-Response-Time:
90
+ - '74'
91
+ X-Dropbox-Request-Id:
92
+ - 70e9b340268a336de1f9391c7b5f2721
93
+ Pragma:
94
+ - no-cache
95
+ Cache-Control:
96
+ - no-cache
97
+ X-Dropbox-Http-Protocol:
98
+ - None
99
+ X-Frame-Options:
100
+ - SAMEORIGIN
101
+ X-Requestid:
102
+ - 123bcb924ed261b3853682b4c6363118
103
+ body:
104
+ encoding: UTF-8
105
+ string: '{"url": "https://dl.dropboxusercontent.com/1/view/nx00e9hb9jdyf9a/qux.txt",
106
+ "expires": "Tue, 11 Feb 2014 00:30:11 +0000"}'
107
+ http_version:
108
+ recorded_at: Mon, 10 Feb 2014 20:30:12 GMT
109
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,109 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api-content.dropbox.com/1/files_put/dropbox/qux.txt
6
+ body:
7
+ encoding: UTF-8
8
+ string: spec 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:30:12 GMT
31
+ Content-Type:
32
+ - text/javascript
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ X-Server-Response-Time:
38
+ - '274'
39
+ X-Dropbox-Request-Id:
40
+ - 7f03b1ef2e20765aec5eb22371084a6b
41
+ Pragma:
42
+ - no-cache
43
+ Cache-Control:
44
+ - no-cache
45
+ X-Requestid:
46
+ - bee355a295929344deb74e440afbebac
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"revision": 66, "rev": "421f47d8b3", "thumb_exists": false, "bytes":
50
+ 9, "modified": "Mon, 10 Feb 2014 20:30:04 +0000", "client_mtime": "Mon, 10
51
+ Feb 2014 20:29:58 +0000", "path": "/qux.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:30:13 GMT
55
+ - request:
56
+ method: get
57
+ uri: https://api-content.dropbox.com/1/files/dropbox/qux.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:30:16 GMT
79
+ Content-Type:
80
+ - text/plain; charset=ascii
81
+ Content-Length:
82
+ - '9'
83
+ Connection:
84
+ - keep-alive
85
+ Accept-Ranges:
86
+ - bytes
87
+ X-Dropbox-Metadata:
88
+ - '{"revision": 66, "rev": "421f47d8b3", "thumb_exists": false, "bytes": 9,
89
+ "modified": "Mon, 10 Feb 2014 20:30:04 +0000", "client_mtime": "Mon, 10 Feb
90
+ 2014 20:29:58 +0000", "path": "/qux.txt", "is_dir": false, "icon": "page_white_text",
91
+ "root": "dropbox", "mime_type": "text/plain", "size": "9 bytes"}'
92
+ X-Server-Response-Time:
93
+ - '283'
94
+ Etag:
95
+ - 66n
96
+ X-Dropbox-Request-Id:
97
+ - af02146afa09ed190a67d75713d6930e
98
+ Pragma:
99
+ - public
100
+ Cache-Control:
101
+ - max-age=0
102
+ X-Requestid:
103
+ - cc2871845ad31a0809ac0dc9b78f64f7
104
+ body:
105
+ encoding: UTF-8
106
+ string: spec file
107
+ http_version:
108
+ recorded_at: Mon, 10 Feb 2014 20:30:17 GMT
109
+ recorded_with: VCR 2.8.0