src/v2/Client.php
public function createDefaultHttpClient()
    {
        $stack = HandlerStack::create();

        $middleware = new Oauth1([
            'consumer_key'    => $this->consumerKey,
            'consumer_secret' => $this->consumerSecret,
            'token'           => $this->token,
            'token_secret'    => $this->tokenSecret
        ]);

        $stack->push($middleware);

        return new HttpClient([
            'handler' => $stack
        ]);
    }
public function createDefaultHttpClient()
    {
        $stack = HandlerStack::create();

        $middleware = new Oauth1([
            'consumer_key'    => $this->consumerKey,
            'consumer_secret' => $this->consumerSecret,
            'token'           => $this->token,
            'token_secret'    => $this->tokenSecret
        ]);

        $stack->push($middleware);

        return new HttpClient([
            'handler' => $stack
        ]);
    }
public function createDefaultHttpClient ( ) { $ stack = HandlerStack :: create ( ) ; $ middleware = new Oauth1 ( [ 'consumer_key' => $ this -> consumerKey , 'consumer_secret' => $ this -> consumerSecret , 'token' => $ this -> token , 'token_secret' => $ this -> tokenSecret ] ) ; $ stack -> push ( $ middleware ) ; return new HttpClient ( [ 'handler' => $ stack ] ) ; }
Creates default http client with appropriate authorization configuration.

@return HttpClient
Creates default http client with appropriate authorization configuration .