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);
}