src/Upwork/API/AuthTypes/OAuth1.php
public function request($type, $url, $params = array())
    {
        ApiDebug::p('running request from ' . __CLASS__);

        $authType = ($type == 'GET') ? OAUTH_AUTH_TYPE_URI : OAUTH_AUTH_TYPE_FORM;

        $oauth = $this->_getOAuthInstance($authType);

        $oauth->setToken(self::$_accessToken, self::$_accessSecret);
        try {
            $oauth->fetch(ApiUtils::getFullUrl($url, self::$_epoint), $params, $type);
        } catch (\OAuthException $e) {
            //
        }

        $data = $oauth->getLastResponse();

        ApiDebug::p('got response from server', $data);

        return $data;
    }
public function request($type, $url, $params = array())
    {
        ApiDebug::p('running request from ' . __CLASS__);

        $authType = ($type == 'GET') ? OAUTH_AUTH_TYPE_URI : OAUTH_AUTH_TYPE_FORM;

        $oauth = $this->_getOAuthInstance($authType);

        $oauth->setToken(self::$_accessToken, self::$_accessSecret);
        try {
            $oauth->fetch(ApiUtils::getFullUrl($url, self::$_epoint), $params, $type);
        } catch (\OAuthException $e) {
            //
        }

        $data = $oauth->getLastResponse();

        ApiDebug::p('got response from server', $data);

        return $data;
    }
Do request

@param   string $type Type of request
@param   string $url URL
@param   array $params (Optional) Parameters
@static
@access  public
@return  mixed