public function getRequestToken($settings,
                                    OAuthConsumerInterface $consumer,
                                    OAuthTokenInterface $token)
    {
        $url = $settings['auth_api_url'].$settings['request_token_uri'];
        $options = ['oauth_callback' => $settings['callback_url']];

        $headers = $this->headers($settings, 'POST', $url, $consumer, $token, $options);
        // build request
        $request = ['url' => $url,'headers' => $headers];

        return $this->token->makeRequestToken($this->http->post($request));
    }
public function getRequestToken($settings,
                                    OAuthConsumerInterface $consumer,
                                    OAuthTokenInterface $token)
    {
        $url = $settings['auth_api_url'].$settings['request_token_uri'];
        $options = ['oauth_callback' => $settings['callback_url']];

        $headers = $this->headers($settings, 'POST', $url, $consumer, $token, $options);
        // build request
        $request = ['url' => $url,'headers' => $headers];

        return $this->token->makeRequestToken($this->http->post($request));
    }
public function getRequestToken ( $ settings , OAuthConsumerInterface $ consumer , OAuthTokenInterface $ token ) { $ url = $ settings [ 'auth_api_url' ] . $ settings [ 'request_token_uri' ] ; $ options = [ 'oauth_callback' => $ settings [ 'callback_url' ] ] ; $ headers = $ this -> headers ( $ settings , 'POST' , $ url , $ consumer , $ token , $ options ) ; // build request $ request = [ 'url' => $ url , 'headers' => $ headers ] ; return $ this -> token -> makeRequestToken ( $ this -> http -> post ( $ request ) ) ; }
Requests Twitter for a request token.

@param array                                                                  $settings
@param Vinelab\Auth\Social\Providers\Twitter\Contracts\OAuthConsumerInterface $consumer
@param Vinelab\Auth\Social\Providers\Twitter\Contracts\OAuthTokenInterface    $token

@return Vinelab\Auth\Social\Providers\Twitter\Contracts\OAuthTokenInterface
Requests Twitter for a request token .