public function dropbox::thumbnails in Dropbox Client 7
Same name and namespace in other branches
- 7.4 dropbox.php \dropbox::thumbnails()
- 7.2 dropbox.php \dropbox::thumbnails()
- 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 202
Class
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);
}