|
@@ 125-134 (lines=10) @@
|
| 122 |
|
* |
| 123 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link |
| 124 |
|
*/ |
| 125 |
|
public function getTemporaryLink(string $path): string |
| 126 |
|
{ |
| 127 |
|
$parameters = [ |
| 128 |
|
'path' => $this->normalizePath($path), |
| 129 |
|
]; |
| 130 |
|
|
| 131 |
|
$body = $this->requestRPC('files/get_temporary_link', $parameters); |
| 132 |
|
|
| 133 |
|
return $body['link']; |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
/** |
| 137 |
|
* Get a thumbnail for an image. |
|
@@ 170-178 (lines=9) @@
|
| 167 |
|
* |
| 168 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder |
| 169 |
|
*/ |
| 170 |
|
public function listFolder(string $path = '', bool $recursive = false): array |
| 171 |
|
{ |
| 172 |
|
$parameters = [ |
| 173 |
|
'path' => $this->normalizePath($path), |
| 174 |
|
'recursive' => $recursive, |
| 175 |
|
]; |
| 176 |
|
|
| 177 |
|
return $this->requestRPC('files/list_folder', $parameters); |
| 178 |
|
} |
| 179 |
|
|
| 180 |
|
/** |
| 181 |
|
* Move a file or folder to a different location in the user's Dropbox. |