public function restore($file, $revision)
    {
        $call = 'restore/' . $this->root . '/' . $this->encodePath($file);
        $params = array('rev' => $revision);
        $response = $this->fetch('POST', self::API_URL, $call, $params);
        return $response;
    }
public function restore($file, $revision)
    {
        $call = 'restore/' . $this->root . '/' . $this->encodePath($file);
        $params = array('rev' => $revision);
        $response = $this->fetch('POST', self::API_URL, $call, $params);
        return $response;
    }
public function restore ( $ file , $ revision ) { $ call = 'restore/' . $ this -> root . '/' . $ this -> encodePath ( $ file ) ; $ params = array ( 'rev' => $ revision ) ; $ response = $ this -> fetch ( 'POST' , self :: API_URL , $ call , $ params ) ; return $ response ; }
Restores a file path to a previous revision
@param string $file Path to the file, relative to root
@param string $revision The revision of the file to restore
@return object stdClass
Restores a file path to a previous revision