Documentation

UpdateMetadataInterface

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

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


        
On this page

Search results