@@ 86-94 (lines=9) @@ | ||
83 | * |
|
84 | * @link https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings |
|
85 | */ |
|
86 | public function createSharedLinkWithSettings(string $path, array $settings = []) |
|
87 | { |
|
88 | $parameters = [ |
|
89 | 'path' => $this->normalizePath($path), |
|
90 | 'settings' => $settings, |
|
91 | ]; |
|
92 | ||
93 | return $this->rpcEndpointRequest('sharing/create_shared_link_with_settings', $parameters); |
|
94 | } |
|
95 | ||
96 | /** |
|
97 | * List shared links. |
|
@@ 181-190 (lines=10) @@ | ||
178 | * |
|
179 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link |
|
180 | */ |
|
181 | public function getTemporaryLink(string $path): string |
|
182 | { |
|
183 | $parameters = [ |
|
184 | 'path' => $this->normalizePath($path), |
|
185 | ]; |
|
186 | ||
187 | $body = $this->rpcEndpointRequest('files/get_temporary_link', $parameters); |
|
188 | ||
189 | return $body['link']; |
|
190 | } |
|
191 | ||
192 | /** |
|
193 | * Get a thumbnail for an image. |
|
@@ 227-235 (lines=9) @@ | ||
224 | * |
|
225 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder |
|
226 | */ |
|
227 | public function listFolder(string $path = '', bool $recursive = false): array |
|
228 | { |
|
229 | $parameters = [ |
|
230 | 'path' => $this->normalizePath($path), |
|
231 | 'recursive' => $recursive, |
|
232 | ]; |
|
233 | ||
234 | return $this->rpcEndpointRequest('files/list_folder', $parameters); |
|
235 | } |
|
236 | ||
237 | /** |
|
238 | * Once a cursor has been retrieved from list_folder, use this to paginate through all files and |