UpdateMetadataTrait
trait UpdateMetadataTrait (View source)
internal |
Provides shared methods for updating request metadata (request headers).
Should implement {\Google\Auth\UpdateMetadataInterface} and {\Google\Auth\FetchAuthTokenInterface}.
Methods
callable
array
updateMetadata(array $metadata, string $authUri = null, callable $httpHandler = null)
Updates metadata with the authorization token.
Details
callable
getUpdateMetadataFunc()
deprecated
deprecated
export a callback function which updates runtime metadata.
array
updateMetadata(array $metadata, string $authUri = null, callable $httpHandler = null)
Updates metadata with the authorization token.