@@ 107-115 (lines=9) @@ | ||
104 | * |
|
105 | * @link https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings |
|
106 | */ |
|
107 | public function createSharedLinkWithSettings(string $path, array $settings = []) |
|
108 | { |
|
109 | $parameters = [ |
|
110 | 'path' => $this->normalizePath($path), |
|
111 | 'settings' => $settings, |
|
112 | ]; |
|
113 | ||
114 | return $this->rpcEndpointRequest('sharing/create_shared_link_with_settings', $parameters); |
|
115 | } |
|
116 | ||
117 | /** |
|
118 | * List shared links. |
|
@@ 202-211 (lines=10) @@ | ||
199 | * |
|
200 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link |
|
201 | */ |
|
202 | public function getTemporaryLink(string $path): string |
|
203 | { |
|
204 | $parameters = [ |
|
205 | 'path' => $this->normalizePath($path), |
|
206 | ]; |
|
207 | ||
208 | $body = $this->rpcEndpointRequest('files/get_temporary_link', $parameters); |
|
209 | ||
210 | return $body['link']; |
|
211 | } |
|
212 | ||
213 | /** |
|
214 | * Get a thumbnail for an image. |
|
@@ 248-256 (lines=9) @@ | ||
245 | * |
|
246 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder |
|
247 | */ |
|
248 | public function listFolder(string $path = '', bool $recursive = false): array |
|
249 | { |
|
250 | $parameters = [ |
|
251 | 'path' => $this->normalizePath($path), |
|
252 | 'recursive' => $recursive, |
|
253 | ]; |
|
254 | ||
255 | return $this->rpcEndpointRequest('files/list_folder', $parameters); |
|
256 | } |
|
257 | ||
258 | /** |
|
259 | * Once a cursor has been retrieved from list_folder, use this to paginate through all files and |