gax-php
gax-php copied to clipboard
feat: support for API Key client option
Adds support for API Keys in GAPIC clients via a new apiKey
client option:
$productSearchClient = new ProductSearchClient([
'apiKey' => $myApiKey
]);
AIP: https://google.aip.dev/auth/4110
- Supports the
apiKey
client option - this will be sent in using thex-goog-api-key
header for all transports. - If the
apiKey
andcredentials
orcredentialsConfig.keyFile
option are supplied, an exception is thrown - If the
apiKey
option AND thequotaProject
option are set, the$quotaProject
is still sent in