Provides shared methods for updating request metadata (request headers).
Should implement {@see \UpdateMetadataInterface} and {@see \FetchAuthTokenInterface}.
- internal
Trait
| Methods |
| public getUpdateMetadataFunc() export a callback function which updates runtime metadata.
|
| public updateMetadata( $metadata, $authUri = NULL, ?callable $httpHandler = NULL) Updates metadata with the authorization token.
|
| Properties |
protected static $metricMetadataKey = 'x-goog-api-client'
|
| Methods |
protected applyServiceApiUsageMetrics( $metadata)
|
protected applyTokenEndpointMetrics( $metadata, $authRequestType)
|
| protected getCredType() : string |
protected static getMetricsHeader( $credType = '', $authRequestType = '') : string
|
| protected static getVersion() : string |
| Properties |
private static $version = NULL
|
| Properties |
protected static $metricMetadataKey = 'x-goog-api-client'
|
private static $version = NULL
|
| Methods |
protected static getMetricsHeader( $credType = '', $authRequestType = '') : string
|
| protected static getVersion() : string |