You are here

public function dropbox::thumbnails in Dropbox Client 7.4

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

Retrieve thumbnail data from image files at specified path.

Parameters

string $destination The path to create the thumbnail image.:

string $path The path to the image file or folder.:

array $params (optional) Consult the Dropbox API documentation for more details:

string root Either 'dropbox' or 'sandbox':

File

./dropbox.php, line 204

Class

dropbox

Code

public function thumbnails($destination, $path, array $params = array(
  'size' => 'small',
  'format' => 'JPEG',
), $root = 'dropbox') {
  $path = str_replace(' ', '%20', $path);
  $parstr = http_build_query($params);
  return $this
    ->_content_request("/thumbnails/{$root}/{$path}?{$parstr}", $destination);
}