gax-php icon indicating copy to clipboard operation
gax-php copied to clipboard

feat: support for API Key client option

Open bshaffer opened this issue 3 years ago • 5 comments

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 the x-goog-api-key header for all transports.
  • If the apiKey and credentials or credentialsConfig.keyFile option are supplied, an exception is thrown
  • If the apiKey option AND the quotaProject option are set, the $quotaProject is still sent in

bshaffer avatar Nov 15 '21 18:11 bshaffer