kunalvarma05/dropbox-php-sdk

I would like to use sharingGetSharedLinkFile how does this work with your sdk

jenton93 opened this issue · 1 comments

I would like to use sharingGetSharedLinkFile how does this work with your sdk
dval commented

From the docs:
https://github.com/kunalvarma05/dropbox-php-sdk/wiki/Working-with-Shared-Links-Folders

$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);