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