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,171 @@
|
|
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: root=auto&path=%2FJust-to-Delete
|
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
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
Authorization:
|
19
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Fri, 03 Apr 2015 22:32:04 GMT
|
29
|
+
Content-Type:
|
30
|
+
- text/javascript
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
X-Content-Type-Options:
|
36
|
+
- nosniff
|
37
|
+
Set-Cookie:
|
38
|
+
- gvc=MjQwNjM2MzQwODczMjYxNjE3MTQ1NTg4MDk3NTQzMjgwMzMxMjQ3; expires=Wed, 01
|
39
|
+
Apr 2020 22:32:04 GMT; httponly; Path=/; secure
|
40
|
+
X-Server-Response-Time:
|
41
|
+
- '229'
|
42
|
+
X-Dropbox-Request-Id:
|
43
|
+
- 004464409fc4eb6772a6d8e52a35f48c
|
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
|
+
body:
|
53
|
+
encoding: UTF-8
|
54
|
+
string: '{"size": "0 bytes", "rev": "31341cc98e", "thumb_exists": false, "bytes":
|
55
|
+
0, "modified": "Fri, 03 Apr 2015 22:32:03 +0000", "path": "/Just-to-Delete",
|
56
|
+
"is_dir": true, "icon": "folder", "root": "app_folder", "revision": 49}'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Fri, 03 Apr 2015 22:32:04 GMT
|
59
|
+
- request:
|
60
|
+
method: post
|
61
|
+
uri: https://api.dropbox.com/1/fileops/delete
|
62
|
+
body:
|
63
|
+
encoding: US-ASCII
|
64
|
+
string: root=auto&path=%2FJust-to-Delete
|
65
|
+
headers:
|
66
|
+
Accept-Encoding:
|
67
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
68
|
+
Accept:
|
69
|
+
- "*/*"
|
70
|
+
User-Agent:
|
71
|
+
- OfficialDropboxRubySDK/1.6.4
|
72
|
+
Content-Type:
|
73
|
+
- application/x-www-form-urlencoded
|
74
|
+
Authorization:
|
75
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
76
|
+
response:
|
77
|
+
status:
|
78
|
+
code: 200
|
79
|
+
message: OK
|
80
|
+
headers:
|
81
|
+
Server:
|
82
|
+
- nginx
|
83
|
+
Date:
|
84
|
+
- Fri, 03 Apr 2015 22:32:04 GMT
|
85
|
+
Content-Type:
|
86
|
+
- text/javascript
|
87
|
+
Transfer-Encoding:
|
88
|
+
- chunked
|
89
|
+
Connection:
|
90
|
+
- keep-alive
|
91
|
+
X-Content-Type-Options:
|
92
|
+
- nosniff
|
93
|
+
Set-Cookie:
|
94
|
+
- gvc=MTIyNjAxOTI2NzkzNjcyMjkwNzE0NTM5NDEzMTk5MzA2MTM1OTA3; expires=Wed, 01
|
95
|
+
Apr 2020 22:32:04 GMT; httponly; Path=/; secure
|
96
|
+
X-Server-Response-Time:
|
97
|
+
- '248'
|
98
|
+
X-Dropbox-Request-Id:
|
99
|
+
- 3ef4d30784f98d37bd046e85d136b795
|
100
|
+
Pragma:
|
101
|
+
- no-cache
|
102
|
+
Cache-Control:
|
103
|
+
- no-cache
|
104
|
+
X-Dropbox-Http-Protocol:
|
105
|
+
- None
|
106
|
+
X-Frame-Options:
|
107
|
+
- SAMEORIGIN
|
108
|
+
body:
|
109
|
+
encoding: UTF-8
|
110
|
+
string: '{"is_deleted": true, "revision": 50, "bytes": 0, "thumb_exists": false,
|
111
|
+
"rev": "32341cc98e", "modified": "Fri, 03 Apr 2015 22:32:04 +0000", "path":
|
112
|
+
"/Just-to-Delete", "is_dir": true, "icon": "folder_gray", "root": "app_folder",
|
113
|
+
"size": "0 bytes"}'
|
114
|
+
http_version:
|
115
|
+
recorded_at: Fri, 03 Apr 2015 22:32:04 GMT
|
116
|
+
- request:
|
117
|
+
method: get
|
118
|
+
uri: https://api.dropbox.com/1/metadata/auto/Just-to-Delete?file_limit=25000&include_deleted=false&list=true
|
119
|
+
body:
|
120
|
+
encoding: US-ASCII
|
121
|
+
string: ''
|
122
|
+
headers:
|
123
|
+
Accept-Encoding:
|
124
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
125
|
+
Accept:
|
126
|
+
- "*/*"
|
127
|
+
User-Agent:
|
128
|
+
- OfficialDropboxRubySDK/1.6.4
|
129
|
+
Authorization:
|
130
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
131
|
+
response:
|
132
|
+
status:
|
133
|
+
code: 200
|
134
|
+
message: OK
|
135
|
+
headers:
|
136
|
+
Server:
|
137
|
+
- nginx
|
138
|
+
Date:
|
139
|
+
- Fri, 03 Apr 2015 22:32:04 GMT
|
140
|
+
Content-Type:
|
141
|
+
- text/javascript
|
142
|
+
Transfer-Encoding:
|
143
|
+
- chunked
|
144
|
+
Connection:
|
145
|
+
- keep-alive
|
146
|
+
X-Content-Type-Options:
|
147
|
+
- nosniff
|
148
|
+
Set-Cookie:
|
149
|
+
- gvc=MTUyMDc5OTkzMjg1NTcxNDc3NzkzMzgxNTI3NzgxODkzNTkxNDky; expires=Wed, 01
|
150
|
+
Apr 2020 22:32:04 GMT; httponly; Path=/; secure
|
151
|
+
X-Server-Response-Time:
|
152
|
+
- '63'
|
153
|
+
X-Dropbox-Request-Id:
|
154
|
+
- 97401f3091dca041dba7e289726a200d
|
155
|
+
Pragma:
|
156
|
+
- no-cache
|
157
|
+
Cache-Control:
|
158
|
+
- no-cache
|
159
|
+
X-Dropbox-Http-Protocol:
|
160
|
+
- None
|
161
|
+
X-Frame-Options:
|
162
|
+
- SAMEORIGIN
|
163
|
+
body:
|
164
|
+
encoding: UTF-8
|
165
|
+
string: '{"is_deleted": true, "revision": 50, "bytes": 0, "thumb_exists": false,
|
166
|
+
"rev": "32341cc98e", "modified": "Fri, 03 Apr 2015 22:32:04 +0000", "path":
|
167
|
+
"/Just-to-Delete", "is_dir": true, "icon": "folder_gray", "root": "app_folder",
|
168
|
+
"hash": "7c51b2f06348118ebd59ecb154dd10b0", "contents": [], "size": "0 bytes"}'
|
169
|
+
http_version:
|
170
|
+
recorded_at: Fri, 03 Apr 2015 22:32:04 GMT
|
171
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,262 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.dropbox.com/1/metadata/auto/The-Light-of-Nowheretown?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 22:31:59 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-Light-of-Nowheretown'' not found"}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Fri, 03 Apr 2015 22:31:59 GMT
|
38
|
+
- request:
|
39
|
+
method: put
|
40
|
+
uri: https://api-content.dropbox.com/1/files_put/auto/Mastermind/The-Devil-Is-a-Lie?overwrite=true
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: Bellaire Rose
|
44
|
+
headers:
|
45
|
+
Content-Type:
|
46
|
+
- application/octet-stream
|
47
|
+
Accept-Encoding:
|
48
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
49
|
+
Accept:
|
50
|
+
- "*/*"
|
51
|
+
User-Agent:
|
52
|
+
- OfficialDropboxRubySDK/1.6.4
|
53
|
+
Content-Length:
|
54
|
+
- 13
|
55
|
+
Authorization:
|
56
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
57
|
+
response:
|
58
|
+
status:
|
59
|
+
code: 200
|
60
|
+
message: OK
|
61
|
+
headers:
|
62
|
+
Server:
|
63
|
+
- nginx
|
64
|
+
Date:
|
65
|
+
- Fri, 03 Apr 2015 22:32:46 GMT
|
66
|
+
Content-Type:
|
67
|
+
- text/javascript
|
68
|
+
Transfer-Encoding:
|
69
|
+
- chunked
|
70
|
+
Connection:
|
71
|
+
- keep-alive
|
72
|
+
X-Server-Response-Time:
|
73
|
+
- '356'
|
74
|
+
X-Dropbox-Request-Id:
|
75
|
+
- a405e2ba321d2aec88af356bd0527ede
|
76
|
+
Pragma:
|
77
|
+
- no-cache
|
78
|
+
Cache-Control:
|
79
|
+
- no-cache
|
80
|
+
X-Robots-Tag:
|
81
|
+
- noindex, nofollow, noimageindex
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '{"revision": 29, "bytes": 13, "thumb_exists": false, "rev": "1d341cc98e",
|
85
|
+
"modified": "Fri, 03 Apr 2015 22:11:29 +0000", "mime_type": "application/octet-stream",
|
86
|
+
"path": "/Mastermind/The-Devil-Is-a-Lie", "is_dir": false, "size": "13 bytes",
|
87
|
+
"root": "app_folder", "client_mtime": "Fri, 03 Apr 2015 22:11:29 +0000", "icon":
|
88
|
+
"page_white"}'
|
89
|
+
http_version:
|
90
|
+
recorded_at: Fri, 03 Apr 2015 22:32:46 GMT
|
91
|
+
- request:
|
92
|
+
method: put
|
93
|
+
uri: https://api-content.dropbox.com/1/files_put/auto/Mastermind/War-Ready?overwrite=true
|
94
|
+
body:
|
95
|
+
encoding: UTF-8
|
96
|
+
string: Bellaire Rose
|
97
|
+
headers:
|
98
|
+
Content-Type:
|
99
|
+
- application/octet-stream
|
100
|
+
Accept-Encoding:
|
101
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
102
|
+
Accept:
|
103
|
+
- "*/*"
|
104
|
+
User-Agent:
|
105
|
+
- OfficialDropboxRubySDK/1.6.4
|
106
|
+
Content-Length:
|
107
|
+
- 13
|
108
|
+
Authorization:
|
109
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
110
|
+
response:
|
111
|
+
status:
|
112
|
+
code: 200
|
113
|
+
message: OK
|
114
|
+
headers:
|
115
|
+
Server:
|
116
|
+
- nginx
|
117
|
+
Date:
|
118
|
+
- Fri, 03 Apr 2015 22:32:47 GMT
|
119
|
+
Content-Type:
|
120
|
+
- text/javascript
|
121
|
+
Transfer-Encoding:
|
122
|
+
- chunked
|
123
|
+
Connection:
|
124
|
+
- keep-alive
|
125
|
+
X-Server-Response-Time:
|
126
|
+
- '705'
|
127
|
+
X-Dropbox-Request-Id:
|
128
|
+
- a7bf9adfb030d72806e2c0cb20b9df0c
|
129
|
+
Pragma:
|
130
|
+
- no-cache
|
131
|
+
Cache-Control:
|
132
|
+
- no-cache
|
133
|
+
X-Robots-Tag:
|
134
|
+
- noindex, nofollow, noimageindex
|
135
|
+
body:
|
136
|
+
encoding: UTF-8
|
137
|
+
string: '{"revision": 31, "bytes": 13, "thumb_exists": false, "rev": "1f341cc98e",
|
138
|
+
"modified": "Fri, 03 Apr 2015 22:11:30 +0000", "mime_type": "application/octet-stream",
|
139
|
+
"path": "/Mastermind/War-Ready", "is_dir": false, "size": "13 bytes", "root":
|
140
|
+
"app_folder", "client_mtime": "Fri, 03 Apr 2015 22:11:30 +0000", "icon": "page_white"}'
|
141
|
+
http_version:
|
142
|
+
recorded_at: Fri, 03 Apr 2015 22:32:47 GMT
|
143
|
+
- request:
|
144
|
+
method: put
|
145
|
+
uri: https://api-content.dropbox.com/1/files_put/auto/Mastermind/Thug-Cry?overwrite=true
|
146
|
+
body:
|
147
|
+
encoding: UTF-8
|
148
|
+
string: Bellaire Rose
|
149
|
+
headers:
|
150
|
+
Content-Type:
|
151
|
+
- application/octet-stream
|
152
|
+
Accept-Encoding:
|
153
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
154
|
+
Accept:
|
155
|
+
- "*/*"
|
156
|
+
User-Agent:
|
157
|
+
- OfficialDropboxRubySDK/1.6.4
|
158
|
+
Content-Length:
|
159
|
+
- 13
|
160
|
+
Authorization:
|
161
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
162
|
+
response:
|
163
|
+
status:
|
164
|
+
code: 200
|
165
|
+
message: OK
|
166
|
+
headers:
|
167
|
+
Server:
|
168
|
+
- nginx
|
169
|
+
Date:
|
170
|
+
- Fri, 03 Apr 2015 22:32:48 GMT
|
171
|
+
Content-Type:
|
172
|
+
- text/javascript
|
173
|
+
Transfer-Encoding:
|
174
|
+
- chunked
|
175
|
+
Connection:
|
176
|
+
- keep-alive
|
177
|
+
X-Server-Response-Time:
|
178
|
+
- '403'
|
179
|
+
X-Dropbox-Request-Id:
|
180
|
+
- f15ffd3ee5ff0ca0b8af2b2e89726765
|
181
|
+
Pragma:
|
182
|
+
- no-cache
|
183
|
+
Cache-Control:
|
184
|
+
- no-cache
|
185
|
+
X-Robots-Tag:
|
186
|
+
- noindex, nofollow, noimageindex
|
187
|
+
body:
|
188
|
+
encoding: UTF-8
|
189
|
+
string: '{"revision": 32, "bytes": 13, "thumb_exists": false, "rev": "20341cc98e",
|
190
|
+
"modified": "Fri, 03 Apr 2015 22:11:31 +0000", "mime_type": "application/octet-stream",
|
191
|
+
"path": "/Mastermind/Thug-Cry", "is_dir": false, "size": "13 bytes", "root":
|
192
|
+
"app_folder", "client_mtime": "Fri, 03 Apr 2015 22:11:31 +0000", "icon": "page_white"}'
|
193
|
+
http_version:
|
194
|
+
recorded_at: Fri, 03 Apr 2015 22:32:48 GMT
|
195
|
+
- request:
|
196
|
+
method: get
|
197
|
+
uri: https://api.dropbox.com/1/metadata/auto/Mastermind?file_limit=25000&include_deleted=false&list=true
|
198
|
+
body:
|
199
|
+
encoding: US-ASCII
|
200
|
+
string: ''
|
201
|
+
headers:
|
202
|
+
Accept-Encoding:
|
203
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
204
|
+
Accept:
|
205
|
+
- "*/*"
|
206
|
+
User-Agent:
|
207
|
+
- OfficialDropboxRubySDK/1.6.4
|
208
|
+
Authorization:
|
209
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
210
|
+
response:
|
211
|
+
status:
|
212
|
+
code: 200
|
213
|
+
message: OK
|
214
|
+
headers:
|
215
|
+
Server:
|
216
|
+
- nginx
|
217
|
+
Date:
|
218
|
+
- Fri, 03 Apr 2015 22:32:48 GMT
|
219
|
+
Content-Type:
|
220
|
+
- text/javascript
|
221
|
+
Transfer-Encoding:
|
222
|
+
- chunked
|
223
|
+
Connection:
|
224
|
+
- keep-alive
|
225
|
+
X-Content-Type-Options:
|
226
|
+
- nosniff
|
227
|
+
Set-Cookie:
|
228
|
+
- gvc=MjM2NTIzODkxMTg0MTQyMzg1MDAwNTU3MDM0MzkyNDY4NjM2OTU4; expires=Wed, 01
|
229
|
+
Apr 2020 22:32:48 GMT; httponly; Path=/; secure
|
230
|
+
X-Server-Response-Time:
|
231
|
+
- '55'
|
232
|
+
X-Dropbox-Request-Id:
|
233
|
+
- 22324163fe3790cda4900cd9b3552fa1
|
234
|
+
Pragma:
|
235
|
+
- no-cache
|
236
|
+
Cache-Control:
|
237
|
+
- no-cache
|
238
|
+
X-Dropbox-Http-Protocol:
|
239
|
+
- None
|
240
|
+
X-Frame-Options:
|
241
|
+
- SAMEORIGIN
|
242
|
+
body:
|
243
|
+
encoding: UTF-8
|
244
|
+
string: '{"size": "0 bytes", "hash": "31b7322142134f77c1e839a14b3f5344", "rev":
|
245
|
+
"1e341cc98e", "thumb_exists": false, "bytes": 0, "modified": "Fri, 03 Apr
|
246
|
+
2015 22:11:29 +0000", "path": "/Mastermind", "is_dir": true, "icon": "folder",
|
247
|
+
"root": "app_folder", "contents": [{"rev": "1d341cc98e", "thumb_exists": false,
|
248
|
+
"path": "/Mastermind/The-Devil-Is-a-Lie", "is_dir": false, "client_mtime":
|
249
|
+
"Fri, 03 Apr 2015 22:11:29 +0000", "icon": "page_white", "bytes": 13, "modified":
|
250
|
+
"Fri, 03 Apr 2015 22:11:29 +0000", "size": "13 bytes", "root": "app_folder",
|
251
|
+
"mime_type": "application/octet-stream", "revision": 29}, {"rev": "20341cc98e",
|
252
|
+
"thumb_exists": false, "path": "/Mastermind/Thug-Cry", "is_dir": false, "client_mtime":
|
253
|
+
"Fri, 03 Apr 2015 22:11:31 +0000", "icon": "page_white", "bytes": 13, "modified":
|
254
|
+
"Fri, 03 Apr 2015 22:11:31 +0000", "size": "13 bytes", "root": "app_folder",
|
255
|
+
"mime_type": "application/octet-stream", "revision": 32}, {"rev": "1f341cc98e",
|
256
|
+
"thumb_exists": false, "path": "/Mastermind/War-Ready", "is_dir": false, "client_mtime":
|
257
|
+
"Fri, 03 Apr 2015 22:11:30 +0000", "icon": "page_white", "bytes": 13, "modified":
|
258
|
+
"Fri, 03 Apr 2015 22:11:30 +0000", "size": "13 bytes", "root": "app_folder",
|
259
|
+
"mime_type": "application/octet-stream", "revision": 31}], "revision": 30}'
|
260
|
+
http_version:
|
261
|
+
recorded_at: Fri, 03 Apr 2015 22:32:48 GMT
|
262
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,208 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.dropbox.com/1/fileops/delete
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: root=auto&path=%2FSave-then-Delete
|
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
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
Authorization:
|
19
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 404
|
23
|
+
message: Not Found
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Fri, 03 Apr 2015 22:31:58 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"error": "Path ''/save-then-delete'' not found"}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Fri, 03 Apr 2015 22:31:58 GMT
|
40
|
+
- request:
|
41
|
+
method: post
|
42
|
+
uri: https://api.dropbox.com/1/fileops/create_folder
|
43
|
+
body:
|
44
|
+
encoding: US-ASCII
|
45
|
+
string: root=auto&path=%2FSave-then-Delete
|
46
|
+
headers:
|
47
|
+
Accept-Encoding:
|
48
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
49
|
+
Accept:
|
50
|
+
- "*/*"
|
51
|
+
User-Agent:
|
52
|
+
- OfficialDropboxRubySDK/1.6.4
|
53
|
+
Content-Type:
|
54
|
+
- application/x-www-form-urlencoded
|
55
|
+
Authorization:
|
56
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
57
|
+
response:
|
58
|
+
status:
|
59
|
+
code: 200
|
60
|
+
message: OK
|
61
|
+
headers:
|
62
|
+
Server:
|
63
|
+
- nginx
|
64
|
+
Date:
|
65
|
+
- Fri, 03 Apr 2015 22:31:59 GMT
|
66
|
+
Content-Type:
|
67
|
+
- text/javascript
|
68
|
+
Transfer-Encoding:
|
69
|
+
- chunked
|
70
|
+
Connection:
|
71
|
+
- keep-alive
|
72
|
+
X-Content-Type-Options:
|
73
|
+
- nosniff
|
74
|
+
Set-Cookie:
|
75
|
+
- gvc=MTM4NDkxMTQ3NDE0OTI0Mzk3NTI0NjIwNzk5NzY3ODg0NzMzODk4; expires=Wed, 01
|
76
|
+
Apr 2020 22:31:59 GMT; httponly; Path=/; secure
|
77
|
+
X-Server-Response-Time:
|
78
|
+
- '234'
|
79
|
+
X-Dropbox-Request-Id:
|
80
|
+
- b7d43f2dc25577f32043154b9bed0f36
|
81
|
+
Pragma:
|
82
|
+
- no-cache
|
83
|
+
Cache-Control:
|
84
|
+
- no-cache
|
85
|
+
X-Dropbox-Http-Protocol:
|
86
|
+
- None
|
87
|
+
X-Frame-Options:
|
88
|
+
- SAMEORIGIN
|
89
|
+
body:
|
90
|
+
encoding: UTF-8
|
91
|
+
string: '{"size": "0 bytes", "rev": "2f341cc98e", "thumb_exists": false, "bytes":
|
92
|
+
0, "modified": "Fri, 03 Apr 2015 22:31:58 +0000", "path": "/Save-then-Delete",
|
93
|
+
"is_dir": true, "icon": "folder", "root": "app_folder", "revision": 47}'
|
94
|
+
http_version:
|
95
|
+
recorded_at: Fri, 03 Apr 2015 22:31:59 GMT
|
96
|
+
- request:
|
97
|
+
method: get
|
98
|
+
uri: https://api.dropbox.com/1/metadata/auto/Save-then-Delete?file_limit=25000&include_deleted=false&list=true
|
99
|
+
body:
|
100
|
+
encoding: US-ASCII
|
101
|
+
string: ''
|
102
|
+
headers:
|
103
|
+
Accept-Encoding:
|
104
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
105
|
+
Accept:
|
106
|
+
- "*/*"
|
107
|
+
User-Agent:
|
108
|
+
- OfficialDropboxRubySDK/1.6.4
|
109
|
+
Authorization:
|
110
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
111
|
+
response:
|
112
|
+
status:
|
113
|
+
code: 200
|
114
|
+
message: OK
|
115
|
+
headers:
|
116
|
+
Server:
|
117
|
+
- nginx
|
118
|
+
Date:
|
119
|
+
- Fri, 03 Apr 2015 22:31:59 GMT
|
120
|
+
Content-Type:
|
121
|
+
- text/javascript
|
122
|
+
Transfer-Encoding:
|
123
|
+
- chunked
|
124
|
+
Connection:
|
125
|
+
- keep-alive
|
126
|
+
X-Content-Type-Options:
|
127
|
+
- nosniff
|
128
|
+
Set-Cookie:
|
129
|
+
- gvc=Mjk4MTk4Mjc1MDQ2MjQ5Mjg3NjA0NzQxODI3NjYwNzE4NTc2MjQz; expires=Wed, 01
|
130
|
+
Apr 2020 22:31:59 GMT; httponly; Path=/; secure
|
131
|
+
X-Server-Response-Time:
|
132
|
+
- '73'
|
133
|
+
X-Dropbox-Request-Id:
|
134
|
+
- 6436efb0fea16a8a1294fd5e964d7c03
|
135
|
+
Pragma:
|
136
|
+
- no-cache
|
137
|
+
Cache-Control:
|
138
|
+
- no-cache
|
139
|
+
X-Dropbox-Http-Protocol:
|
140
|
+
- None
|
141
|
+
X-Frame-Options:
|
142
|
+
- SAMEORIGIN
|
143
|
+
body:
|
144
|
+
encoding: UTF-8
|
145
|
+
string: '{"size": "0 bytes", "hash": "d38f2e1bcb53940850b040de0c0d197b", "rev":
|
146
|
+
"2f341cc98e", "thumb_exists": false, "bytes": 0, "modified": "Fri, 03 Apr
|
147
|
+
2015 22:31:58 +0000", "path": "/Save-then-Delete", "is_dir": true, "icon":
|
148
|
+
"folder", "root": "app_folder", "contents": [], "revision": 47}'
|
149
|
+
http_version:
|
150
|
+
recorded_at: Fri, 03 Apr 2015 22:31:59 GMT
|
151
|
+
- request:
|
152
|
+
method: post
|
153
|
+
uri: https://api.dropbox.com/1/fileops/delete
|
154
|
+
body:
|
155
|
+
encoding: US-ASCII
|
156
|
+
string: root=auto&path=%2FSave-then-Delete
|
157
|
+
headers:
|
158
|
+
Accept-Encoding:
|
159
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
160
|
+
Accept:
|
161
|
+
- "*/*"
|
162
|
+
User-Agent:
|
163
|
+
- OfficialDropboxRubySDK/1.6.4
|
164
|
+
Content-Type:
|
165
|
+
- application/x-www-form-urlencoded
|
166
|
+
Authorization:
|
167
|
+
- Bearer <DROPBOX_OAUTH2_ACCESS_TOKEN>
|
168
|
+
response:
|
169
|
+
status:
|
170
|
+
code: 200
|
171
|
+
message: OK
|
172
|
+
headers:
|
173
|
+
Server:
|
174
|
+
- nginx
|
175
|
+
Date:
|
176
|
+
- Fri, 03 Apr 2015 22:31:59 GMT
|
177
|
+
Content-Type:
|
178
|
+
- text/javascript
|
179
|
+
Transfer-Encoding:
|
180
|
+
- chunked
|
181
|
+
Connection:
|
182
|
+
- keep-alive
|
183
|
+
X-Content-Type-Options:
|
184
|
+
- nosniff
|
185
|
+
Set-Cookie:
|
186
|
+
- gvc=MjUwODI1ODE3MzEyMzg5OTMxNTc1NTk0MDAwMDQ5ODc1MjQwNTMx; expires=Wed, 01
|
187
|
+
Apr 2020 22:31:59 GMT; httponly; Path=/; secure
|
188
|
+
X-Server-Response-Time:
|
189
|
+
- '274'
|
190
|
+
X-Dropbox-Request-Id:
|
191
|
+
- 3e1b3ff8fbac280bfbabac6f4751bb01
|
192
|
+
Pragma:
|
193
|
+
- no-cache
|
194
|
+
Cache-Control:
|
195
|
+
- no-cache
|
196
|
+
X-Dropbox-Http-Protocol:
|
197
|
+
- None
|
198
|
+
X-Frame-Options:
|
199
|
+
- SAMEORIGIN
|
200
|
+
body:
|
201
|
+
encoding: UTF-8
|
202
|
+
string: '{"is_deleted": true, "revision": 48, "bytes": 0, "thumb_exists": false,
|
203
|
+
"rev": "30341cc98e", "modified": "Fri, 03 Apr 2015 22:31:59 +0000", "path":
|
204
|
+
"/Save-then-Delete", "is_dir": true, "icon": "folder_gray", "root": "app_folder",
|
205
|
+
"size": "0 bytes"}'
|
206
|
+
http_version:
|
207
|
+
recorded_at: Fri, 03 Apr 2015 22:31:59 GMT
|
208
|
+
recorded_with: VCR 2.9.3
|