protected function buildRequestUrl($endpoint, $params = null)
    {
        if($this->user == null)
            throw new Exception("Please authenticate user first!");

        $requestPath = $this->requestPath . $endpoint . ".json". $this->getParams( $params );

        return $requestPath;
    }
protected function buildRequestUrl($endpoint, $params = null)
    {
        if($this->user == null)
            throw new Exception("Please authenticate user first!");

        $requestPath = $this->requestPath . $endpoint . ".json". $this->getParams( $params );

        return $requestPath;
    }
protected function buildRequestUrl ( $ endpoint , $ params = null ) { if ( $ this -> user == null ) throw new Exception ( "Please authenticate user first!" ) ; $ requestPath = $ this -> requestPath . $ endpoint . ".json" . $ this -> getParams ( $ params ) ; return $ requestPath ; }
Build the URL for the specific API request

@param string $endpoint
@param optional $params
@return string
@throws Exception
Build the URL for the specific API request