class ClientCredentials implements GrantTypeInterface (View source)

Class ClientCredentials.

Methods

__construct(ClientInterface $client, array $config)

Constructor.

array
getToken(string $refreshToken = null)

Obtain the token data returned by the OAuth2 server.

Details

__construct(ClientInterface $client, array $config)

Constructor.

Parameters

ClientInterface $client
array $config

Exceptions

InvalidArgumentException

array getToken(string $refreshToken = null)

Obtain the token data returned by the OAuth2 server.

Parameters

string $refreshToken

Return Value

array API token

Exceptions

TokenRequestException