Working with Shared Links Folders
Working with Shared Links and Folders
However, the SDK can still make requests to the sharing endpoints (or any Dropbox API endpoint) and fetch/decode data.
For example, you can create a Shared Link like this:
/** * Assuming you have configured the DropboxApp class * @see https://github.com/kunalvarma05/dropbox-php-sdk/wiki/Configuration */ $dropbox = new Dropbox($app); $pathToFile = "/hello-world.txt"; $response = $dropbox->postToAPI("/sharing/create_shared_link_with_settings", [ "path" => $pathToFile ]); $data = $response->getDecodedBody(); var_dump($data);