Create a token of type Bearer

package Ant\Guzzle\Plugin\Token

 Methods

Create a token type Bearer

__construct(array $config) 

Parameters

$config

array

Associative array with only one key token_format, The default value is Bearer

The access token as string

__toString() : string

Returns

stringThe value of token

Get the token type

getFormat() : string

Returns

stringValue of token type

Set the token type

setFormat(string $format) : void

Parameters

$format

string

set the token type

 Properties

 

$tokenString

$tokenString 
 

$format

$format