public function BackupMigrateDropboxAPI::file_download in Backup and Migrate Dropbox 7.2
Same name and namespace in other branches
- 7.3 backup_migrate_dropbox.dropbox_api.inc \BackupMigrateDropboxAPI::file_download()
Downloads the file from the given Dropbox $path.
{@link https://www.dropbox.com/developers/documentation/http/documentation#file... Dropbox API /download}
Parameters
string $path: Path of file to download.
Return value
string The contents of the requested file.
Throws
\RuntimeException
File
- ./
backup_migrate_dropbox.dropbox_api.inc, line 92 - backup_migrate_dropbox.api.inc
Class
- BackupMigrateDropboxAPI
- @file backup_migrate_dropbox.api.inc
Code
public function file_download($path) {
$parameters = array(
'path' => $path,
);
return $this
->sendMessage('content', 'files/download', $parameters);
}