You are here

public function dropbox::media in Dropbox Client 7.2

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

Retrieve a link directly to a file.

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 315

Class

dropbox

Code

public function media($path, $root = 'dropbox') {
  $path = str_replace(' ', '%20', $path);
  return $this
    ->_response_request("/media/{$root}/{$path}");
}