HttpClient
in package
Table of Contents
Properties
- $apClient : mixed
- $apVersion : mixed
- $client : mixed
- $logger : Logger
Methods
- __construct() : mixed
- get() : mixed
- post() : mixed
- checkApiWarning() : mixed
- handleException() : mixed
- handleResponse() : mixed
Properties
$apClient
private
mixed
$apClient
= 'php-sdk'
$apVersion
private
mixed
$apVersion
$client
private
mixed
$client
$logger
private
Logger
$logger
Methods
__construct()
public
__construct() : mixed
get()
public
get(string $url) : mixed
Parameters
- $url : string
post()
public
post(string $url, mixed $payload) : mixed
Parameters
- $url : string
- $payload : mixed
checkApiWarning()
private
checkApiWarning(mixed $headers) : mixed
Parameters
- $headers : mixed
handleException()
private
handleException(RequestException $e) : mixed
Parameters
- $e : RequestException
handleResponse()
private
handleResponse(ResponseInterface $response) : mixed
Parameters
- $response : ResponseInterface