public function getClient(array $options = [])
    {
        if ($this->client) {
            return $this->client;
        }

        $this->client = new Client(
            [
                'base_url' => $this->baseUrl,
                'defaults' => [
                    'headers' => [
                        'Authorization' => 'Bearer ' . $this->accessToken,
                    ]
                ]
            ]
        );

        return $this->client;
    }
public function getClient(array $options = [])
    {
        if ($this->client) {
            return $this->client;
        }

        $this->client = new Client(
            [
                'base_url' => $this->baseUrl,
                'defaults' => [
                    'headers' => [
                        'Authorization' => 'Bearer ' . $this->accessToken,
                    ]
                ]
            ]
        );

        return $this->client;
    }
public function getClient ( array $ options = [ ] ) { if ( $ this -> client ) { return $ this -> client ; } $ this -> client = new Client ( [ 'base_url' => $ this -> baseUrl , 'defaults' => [ 'headers' => [ 'Authorization' => 'Bearer ' . $ this -> accessToken , ] ] ] ) ; return $ this -> client ; }
Return an HTTP client instance

@return Client
Return an HTTP client instance