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