You are here

public function SDKConnectorInterface::buildClient in Apigee Edge 8

Returns a pre-configured API client with the provided credentials.

Parameters

\Http\Message\Authentication $authentication: Authentication.

null|string $endpoint: API endpoint, default is https://api.enterprise.apigee.com/v1.

array $options: Client configuration option.

Return value

\Apigee\Edge\ClientInterface Configured API client.

1 method overrides SDKConnectorInterface::buildClient()
SDKConnector::buildClient in src/SDKConnector.php
Returns a pre-configured API client with the provided credentials.

File

src/SDKConnectorInterface.php, line 71

Class

SDKConnectorInterface
Defines an interface for SDK controller classes.

Namespace

Drupal\apigee_edge

Code

public function buildClient(Authentication $authentication, ?string $endpoint = NULL, array $options = []) : ClientInterface;