You are here

public function dropbox::revisions in Dropbox Client 7

Same name and namespace in other branches
  1. 7.4 dropbox.php \dropbox::revisions()
  2. 7.2 dropbox.php \dropbox::revisions()
  3. 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

dropbox

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}");
}