public function dropbox::revisions in Dropbox Client 7
Same name and namespace in other branches
- 7.4 dropbox.php \dropbox::revisions()
- 7.2 dropbox.php \dropbox::revisions()
- 7.3 dropbox.php \dropbox::revisions()
Retrieve revision data about files or folders in the currently authenticated user's dropbox account. Note: The path should be relative to the root drop box folder.
Parameters
string $path The path to the file or folder in question:
array $params (optional) Consult the Dropbox API documentation for more details:
string $root (optional) Either 'dropbox' or 'sandbox':
Return value
a response object.
File
- ./
dropbox.php, line 255
Class
Code
public function revisions($path, array $params = array(), $root = 'dropbox') {
$path = str_replace(' ', '%20', $path);
$parstr = empty($params) ? '' : '?' . http_build_query($params);
return $this
->_response_request("/revisions/{$root}/{$path}{$parstr}");
}