src/Upwork/API/AuthTypes/OAuthPHPLib.php
public function setupRequestToken()
    {
        ApiDebug::p('query request token from server');

        $this->_getOAuthInstance();
        $requestTokenInfo = \OAuthRequester::requestRequestToken(
            self::$_apiKey,
            0,
            array(),
            'POST',
            array(),
            self::_getCurlOptions()
        );

        // add token_secret to response
        $requestTokenInfo['token_secret'] = $_SESSION['oauth_' . self::$_apiKey]['token_secret'];

        ApiDebug::p('got request token info', $requestTokenInfo);

        self::$_requestToken  = $requestTokenInfo['token'];
        self::$_requestSecret = $requestTokenInfo['token_secret'];

        return array('oauth_token' => $requestTokenInfo['token'], 'oauth_token_secret' => $requestTokenInfo['token_secret']);
    }
public function setupRequestToken()
    {
        ApiDebug::p('query request token from server');

        $this->_getOAuthInstance();
        $requestTokenInfo = \OAuthRequester::requestRequestToken(
            self::$_apiKey,
            0,
            array(),
            'POST',
            array(),
            self::_getCurlOptions()
        );

        // add token_secret to response
        $requestTokenInfo['token_secret'] = $_SESSION['oauth_' . self::$_apiKey]['token_secret'];

        ApiDebug::p('got request token info', $requestTokenInfo);

        self::$_requestToken  = $requestTokenInfo['token'];
        self::$_requestSecret = $requestTokenInfo['token_secret'];

        return array('oauth_token' => $requestTokenInfo['token'], 'oauth_token_secret' => $requestTokenInfo['token_secret']);
    }
Get and setup request token

@access  public
@return  array