I saw when I get the shared link of the recent uploaded file or folder, it can be protected with password.
But I am not sure how to do it.
$response = $dropbox->postToAPI("/sharing/create_shared_link_with_settings", ["path" => "/BABERZAMAN/hello-world.txt", "settings" => ['requested_visibility' => 'public']]);
$data = $response->getDecodedBody();
var_dump($data);
Here in this
"settings" => ['requested_visibility' => 'public']
From this line 'public' will be changed with some password protection code or property. i am not aware of it. so please help me how i can get the Password Protected shared Link