You are here

public function dropbox::metadata in Dropbox Client 7.2

Same name and namespace in other branches
  1. 7.4 dropbox.php \dropbox::metadata()
  2. 7 dropbox.php \dropbox::metadata()
  3. 7.3 dropbox.php \dropbox::metadata()

Retrieve metadata information about files or folders in the currently authenticated user's dropbox account. Note: The path should be relative to the root dropbox 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 Either 'dropbox' or 'sandbox':

Return value

a response object.

File

./dropbox.php, line 238

Class

dropbox

Code

public function metadata($path, array $params = array(), $root = 'dropbox') {
  $path = str_replace(' ', '%20', $path);
  $parstr = empty($params) ? '' : '?' . http_build_query($params);
  return $this
    ->_response_request("/metadata/{$root}/{$path}{$parstr}");
}