private function createHttpClientInstance(HttpClientInterface $httpClient): HttpClientInterface
    {
        return new PluginClient($httpClient, [
            new BaseUriPlugin($this->uriFactory->createUri($this->configuration->getBaseUrl())),
            new AuthenticationPlugin(new BasicAuth($this->configuration->getApiKey(), '')),
            new HeaderSetPlugin([
                'User-Agent' => self::USER_AGENT,
                'Content-Type' => 'application/json',
            ]),
        ]);
    }
private function createHttpClientInstance(HttpClientInterface $httpClient): HttpClientInterface
    {
        return new PluginClient($httpClient, [
            new BaseUriPlugin($this->uriFactory->createUri($this->configuration->getBaseUrl())),
            new AuthenticationPlugin(new BasicAuth($this->configuration->getApiKey(), '')),
            new HeaderSetPlugin([
                'User-Agent' => self::USER_AGENT,
                'Content-Type' => 'application/json',
            ]),
        ]);
    }
private function createHttpClientInstance ( HttpClientInterface $ httpClient ) : HttpClientInterface { return new PluginClient ( $ httpClient , [ new BaseUriPlugin ( $ this -> uriFactory -> createUri ( $ this -> configuration -> getBaseUrl ( ) ) ) , new AuthenticationPlugin ( new BasicAuth ( $ this -> configuration -> getApiKey ( ) , '' ) ) , new HeaderSetPlugin ( [ 'User-Agent' => self :: USER_AGENT , 'Content-Type' => 'application/json' , ] ) , ] ) ; }
Returns a new HTTP client that wraps the given one and configures it to
use the base URL specified in the configuration and the access token for
the Basic Auth.

@param HttpClientInterface $httpClient The HTTP client to decorate

@return HttpClientInterface
Returns a new HTTP client that wraps the given one and configures it to use the base URL specified in the configuration and the access token for the Basic Auth .