@@ 239-250 (lines=12) @@ | ||
236 | * |
|
237 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link |
|
238 | */ |
|
239 | public function getTemporaryLink($path) |
|
240 | { |
|
241 | $this->setupRequest([ |
|
242 | 'path' => $this->normalizePath($path), |
|
243 | ]); |
|
244 | ||
245 | $this->apiEndpoint = 'files/get_temporary_link'; |
|
246 | ||
247 | $response = $this->doDropboxApiRequest(); |
|
248 | ||
249 | return $response['link']; |
|
250 | } |
|
251 | ||
252 | /** |
|
253 | * Get a thumbnail for an image. |
|
@@ 298-308 (lines=11) @@ | ||
295 | * |
|
296 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder |
|
297 | */ |
|
298 | public function listFolder($path = '', $recursive = false) |
|
299 | { |
|
300 | $this->setupRequest([ |
|
301 | 'path' => $this->normalizePath($path), |
|
302 | 'recursive' => $recursive, |
|
303 | ]); |
|
304 | ||
305 | $this->apiEndpoint = 'files/list_folder'; |
|
306 | ||
307 | return $this->doDropboxApiRequest(); |
|
308 | } |
|
309 | ||
310 | /** |
|
311 | * Once a cursor has been retrieved from list_folder, use this to paginate through all files and |