|
@@ 154-163 (lines=10) @@
|
| 151 |
|
* |
| 152 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link |
| 153 |
|
*/ |
| 154 |
|
public function getTemporaryLink(string $path): string |
| 155 |
|
{ |
| 156 |
|
$parameters = [ |
| 157 |
|
'path' => $this->normalizePath($path), |
| 158 |
|
]; |
| 159 |
|
|
| 160 |
|
$body = $this->rpcEndpointRequest('files/get_temporary_link', $parameters); |
| 161 |
|
|
| 162 |
|
return $body['link']; |
| 163 |
|
} |
| 164 |
|
|
| 165 |
|
/** |
| 166 |
|
* Get a thumbnail for an image. |
|
@@ 200-208 (lines=9) @@
|
| 197 |
|
* |
| 198 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder |
| 199 |
|
*/ |
| 200 |
|
public function listFolder(string $path = '', bool $recursive = false): array |
| 201 |
|
{ |
| 202 |
|
$parameters = [ |
| 203 |
|
'path' => $this->normalizePath($path), |
| 204 |
|
'recursive' => $recursive, |
| 205 |
|
]; |
| 206 |
|
|
| 207 |
|
return $this->rpcEndpointRequest('files/list_folder', $parameters); |
| 208 |
|
} |
| 209 |
|
|
| 210 |
|
/** |
| 211 |
|
* Once a cursor has been retrieved from list_folder, use this to paginate through all files and |