public function makeRequestToken(Response $response)
    {
        parse_str($response->content(), $params);

        $this->validateRequestTokenResponse($params);

        $this->credentials['key'] = $params['oauth_token'];
        $this->credentials['secret'] = $params['oauth_token_secret'];
        $this->credentials['callback_confirmed'] = (isset($params['oauth_callback_confirmed'])) ?
                                                        (boolean) $params['oauth_callback_confirmed'] : null;

        return $this;
    }
public function makeRequestToken(Response $response)
    {
        parse_str($response->content(), $params);

        $this->validateRequestTokenResponse($params);

        $this->credentials['key'] = $params['oauth_token'];
        $this->credentials['secret'] = $params['oauth_token_secret'];
        $this->credentials['callback_confirmed'] = (isset($params['oauth_callback_confirmed'])) ?
                                                        (boolean) $params['oauth_callback_confirmed'] : null;

        return $this;
    }
public function makeRequestToken ( Response $ response ) { parse_str ( $ response -> content ( ) , $ params ) ; $ this -> validateRequestTokenResponse ( $ params ) ; $ this -> credentials [ 'key' ] = $ params [ 'oauth_token' ] ; $ this -> credentials [ 'secret' ] = $ params [ 'oauth_token_secret' ] ; $ this -> credentials [ 'callback_confirmed' ] = ( isset ( $ params [ 'oauth_callback_confirmed' ] ) ) ? ( boolean ) $ params [ 'oauth_callback_confirmed' ] : null ; return $ this ; }
Creates and returns an OAuthToken instance
parsing values from the Twitter API Response.

@param Vinelab\Http\Response $response

@return Vinelab\Auth\Social\Providers\Twitter\OAuthToken
Creates and returns an OAuthToken instance parsing values from the Twitter API Response .