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

        $oauth = $this->_getOAuthInstance(OAUTH_AUTH_TYPE_FORM);
        $requestTokenInfo = $oauth->getRequestToken(
            ApiUtils::getFullUrl(self::URL_RTOKEN, 'api')
        );
        ApiDebug::p('got request token info', $requestTokenInfo);

        self::$_requestToken  = $requestTokenInfo['oauth_token'];
        self::$_requestSecret = $requestTokenInfo['oauth_token_secret'];

        return $requestTokenInfo;
    }
public function setupRequestToken()
    {
        ApiDebug::p('query request token from server');

        $oauth = $this->_getOAuthInstance(OAUTH_AUTH_TYPE_FORM);
        $requestTokenInfo = $oauth->getRequestToken(
            ApiUtils::getFullUrl(self::URL_RTOKEN, 'api')
        );
        ApiDebug::p('got request token info', $requestTokenInfo);

        self::$_requestToken  = $requestTokenInfo['oauth_token'];
        self::$_requestSecret = $requestTokenInfo['oauth_token_secret'];

        return $requestTokenInfo;
    }
Get and setup request token

@access  public
@return  array