public function dropbox::get in Dropbox Client 7.4
Same name and namespace in other branches
- 7 dropbox.php \dropbox::get()
- 7.2 dropbox.php \dropbox::get()
- 7.3 dropbox.php \dropbox::get()
Retrieve a file from the currently authenticated user's dropbox account. Note: The path should be relative to the root dropbox folder and the destination should be relative to your sites root folder.
Parameters
string $destination The path to create the new file:
string $path The path to the file or folder in question.:
string $root Either 'dropbox' or 'sandbox':
Return value
a response object.
File
- ./
dropbox.php, line 190
Class
Code
public function get($destination, $path, $root = 'dropbox') {
$path = str_replace(' ', '%20', $path);
return $this
->_content_request("/files/{$root}/{$path}", $destination);
}