class Client

Abstract client for common code for the different clients.

Methods

__construct($token, $baseUri, $api, LoggerInterface $logger = null)

Client constructor.

array|object
request(string $method, string $path, array $options = [])

No description

getUserAgentAppName()

No description

getUserAgent()

No description

object|array
decodeJson(string $json)

No description

Details

at line 49
__construct($token, $baseUri, $api, LoggerInterface $logger = null)

Client constructor.

Parameters

$token
$baseUri
$api
LoggerInterface $logger

at line 69
protected array|object request(string $method, string $path, array $options = [])

Parameters

string $method
string $path
array $options

Return Value

array|object

at line 127
abstract protected getUserAgentAppName()

at line 129
protected getUserAgent()

at line 147
protected object|array decodeJson(string $json)

Parameters

string $json JSON encoded object or array

Return Value

object|array

Exceptions

RuntimeException On invalid JSON