public function create()
    {
        $pluginClient = new PluginClient($this->httpClient, [
            new BaseUriPlugin($this->uriFactory->createUri($this->api_url), ['replace' => true]),
            new AuthenticationPlugin(new BasicAuth($this->api_key, '')),
            new ErrorPlugin(),
            new ContentTypePlugin(),
        ]);

        return new Client($pluginClient, $this->apiRequestFactory);
    }
public function create()
    {
        $pluginClient = new PluginClient($this->httpClient, [
            new BaseUriPlugin($this->uriFactory->createUri($this->api_url), ['replace' => true]),
            new AuthenticationPlugin(new BasicAuth($this->api_key, '')),
            new ErrorPlugin(),
            new ContentTypePlugin(),
        ]);

        return new Client($pluginClient, $this->apiRequestFactory);
    }
public function create ( ) { $ pluginClient = new PluginClient ( $ this -> httpClient , [ new BaseUriPlugin ( $ this -> uriFactory -> createUri ( $ this -> api_url ) , [ 'replace' => true ] ) , new AuthenticationPlugin ( new BasicAuth ( $ this -> api_key , '' ) ) , new ErrorPlugin ( ) , new ContentTypePlugin ( ) , ] ) ; return new Client ( $ pluginClient , $ this -> apiRequestFactory ) ; }
Creates the API client with needed configuration.

@return ClientInterface
Creates the API client with needed configuration .