|
@@ 203-212 (lines=10) @@
|
| 200 |
|
* |
| 201 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link |
| 202 |
|
*/ |
| 203 |
|
public function getTemporaryLink(string $path): string |
| 204 |
|
{ |
| 205 |
|
$parameters = [ |
| 206 |
|
'path' => $this->normalizePath($path), |
| 207 |
|
]; |
| 208 |
|
|
| 209 |
|
$body = $this->rpcEndpointRequest('files/get_temporary_link', $parameters); |
| 210 |
|
|
| 211 |
|
return $body['link']; |
| 212 |
|
} |
| 213 |
|
|
| 214 |
|
/** |
| 215 |
|
* Get a thumbnail for an image. |
|
@@ 249-257 (lines=9) @@
|
| 246 |
|
* |
| 247 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder |
| 248 |
|
*/ |
| 249 |
|
public function listFolder(string $path = '', bool $recursive = false): array |
| 250 |
|
{ |
| 251 |
|
$parameters = [ |
| 252 |
|
'path' => $this->normalizePath($path), |
| 253 |
|
'recursive' => $recursive, |
| 254 |
|
]; |
| 255 |
|
|
| 256 |
|
return $this->rpcEndpointRequest('files/list_folder', $parameters); |
| 257 |
|
} |
| 258 |
|
|
| 259 |
|
/** |
| 260 |
|
* Once a cursor has been retrieved from list_folder, use this to paginate through all files and |