public function dropbox::shares in Dropbox Client 7
Same name and namespace in other branches
- 7.4 dropbox.php \dropbox::shares()
- 7.2 dropbox.php \dropbox::shares()
- 7.3 dropbox.php \dropbox::shares()
Retrieve a shareable link to files or folders. The link can be used publicly and directs to a preview page of the file. Also returns the link's expiration date.
Parameters
string $path The path to the file or folder in question:
strint $root (optional) Either 'dropbox' or 'sandbox':
Return value
a response object
File
- ./
dropbox.php, line 302
Class
Code
public function shares($path, $root = 'dropbox') {
$path = str_replace(' ', '%20', $path);
return $this
->_response_request("/shares/{$root}/{$path}");
}