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