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