UpdateMetadataInterface
in
Describes a Credentials object which supports updating request metadata (request headers).
Table of Contents
Constants
- AUTH_METADATA_KEY = 'authorization'
Methods
- updateMetadata() : array<string|int, mixed>
- Updates metadata with the authorization token.
Constants
AUTH_METADATA_KEY
public
mixed
AUTH_METADATA_KEY
= 'authorization'
Methods
updateMetadata()
Updates metadata with the authorization token.
public
updateMetadata(array<string|int, mixed> $metadata[, string $authUri = null ][, callable $httpHandler = null ]) : array<string|int, mixed>
Parameters
- $metadata : array<string|int, mixed>
-
metadata hashmap
- $authUri : string = null
-
optional auth uri
- $httpHandler : callable = null
-
callback which delivers psr7 request
Return values
array<string|int, mixed> —updated metadata hashmap