public function restore($path, $rev, $locale = null, $sandbox = false)
{
// build url
$url = '1/restore/';
$url .= $sandbox ? 'sandbox/' : 'dropbox/';
$url .= trim((string) $path, '/');
// build parameters
$parameters['rev'] = (string) $rev;
if ($locale !== null) {
$parameters['locale'] = (string) $locale;
}
// make the call
return (array) $this->doCall($url, $parameters);
}
/** * Tests Dropbox->restore() */ public function testRestore() { $response = $this->dropbox->restore(BASE_PATH . 'hàh@, $.txt', '368c7df600088e34'); $this->isFile($response); }