class Client extends Client implements APIClient

Traits

Macroable

Constants

BASE_URI

Properties

protected GuzzleClient $client from  Client
protected $connection

Methods

mixed
parseResponse(ResponseInterface $response, $assoc = false)

No description

__construct(array $options = [])

No description

buildPayload($payload)

No description

from  Client
ResponseInterface
getRaw(string $url)

No description

from  Client
mixed
get(string $url, bool $assoc = false)

No description

from  Client
ResponseInterface
putRaw(string $url, array|null $payload)

No description

from  Client
mixed
put(string $url, array $payload = [], bool $assoc = false)

No description

from  Client
ResponseInterface
postRaw(string $url, array|null $payload)

No description

from  Client
mixed
post(string $url, array $payload = [], bool $assoc = false)

No description

from  Client
ResponseInterface
deleteRaw(string $url)

No description

from  Client
mixed
delete(string $url, $assoc = false)

No description

from  Client
string|null
getConnectionName()

No description

setConnectionName(string|null $connection)

No description

static 
connection($connection = 'default')

No description

static 
withCredentials($credentials)

No description

setCredentials(array $options = [])

No description

GuzzleClient
getGuzzleInstance()

Returns the raw internal Guzzle instance

Details

in ParsesResponse at line 13
protected mixed parseResponse(ResponseInterface $response, $assoc = false)

Parameters

ResponseInterface $response
$assoc

Return Value

mixed

at line 56
__construct(array $options = [])

Parameters

array $options

in Client at line 28
protected buildPayload($payload)

Parameters

$payload

in Client at line 37
ResponseInterface getRaw(string $url)

Parameters

string $url

Return Value

ResponseInterface

in Client at line 48
mixed get(string $url, bool $assoc = false)

Parameters

string $url
bool $assoc = false

Return Value

mixed

Exceptions

Exception

in Client at line 58
ResponseInterface putRaw(string $url, array|null $payload)

Parameters

string $url
array|null $payload = []

Return Value

ResponseInterface

in Client at line 70
mixed put(string $url, array $payload = [], bool $assoc = false)

Parameters

string $url
array $payload = []
bool $assoc = false

Return Value

mixed

Exceptions

Exception

in Client at line 80
ResponseInterface postRaw(string $url, array|null $payload)

Parameters

string $url
array|null $payload = []

Return Value

ResponseInterface

in Client at line 92
mixed post(string $url, array $payload = [], bool $assoc = false)

Parameters

string $url
array $payload = []
bool $assoc = false

Return Value

mixed

Exceptions

Exception

in Client at line 101
ResponseInterface deleteRaw(string $url)

Parameters

string $url

Return Value

ResponseInterface

in Client at line 111
mixed delete(string $url, $assoc = false)

Parameters

string $url
$assoc

Return Value

mixed

Exceptions

Exception

at line 23
string|null getConnectionName()

Return Value

string|null

at line 32
APIClient setConnectionName(string|null $connection)

Parameters

string|null $connection

Return Value

APIClient

at line 41
static connection($connection = 'default')

Parameters

$connection

at line 46
static withCredentials($credentials)

Parameters

$credentials

at line 62
setCredentials(array $options = [])

Parameters

array $options

at line 81
GuzzleClient getGuzzleInstance()

Returns the raw internal Guzzle instance

Return Value

GuzzleClient