public function revisions($file, $limit = 10)
    {
        $call = 'revisions/' . $this->root . '/' . $this->encodePath($file);
        $params = array(
            'rev_limit' => ($limit < 1) ? 1 : (($limit > 1000) ? 1000 : (int) $limit),
        );
        $response = $this->fetch('GET', self::API_URL, $call, $params);
        return $response;
    }
public function revisions($file, $limit = 10)
    {
        $call = 'revisions/' . $this->root . '/' . $this->encodePath($file);
        $params = array(
            'rev_limit' => ($limit < 1) ? 1 : (($limit > 1000) ? 1000 : (int) $limit),
        );
        $response = $this->fetch('GET', self::API_URL, $call, $params);
        return $response;
    }
public function revisions ( $ file , $ limit = 10 ) { $ call = 'revisions/' . $ this -> root . '/' . $ this -> encodePath ( $ file ) ; $ params = array ( 'rev_limit' => ( $ limit < 1 ) ? 1 : ( ( $ limit > 1000 ) ? 1000 : ( int ) $ limit ) , ) ; $ response = $ this -> fetch ( 'GET' , self :: API_URL , $ call , $ params ) ; return $ response ; }
Obtains metadata for the previous revisions of a file
@param string Path to the file, relative to root
@param integer Number of revisions to return (1-1000)
@return array
Obtains metadata for the previous revisions of a file