Documentation

Client
in package

Table of Contents

Properties

$_guzzle  : Client

Methods

__construct()  : mixed
Client constructor.
createRequest()  : RequestInterface
send()  : ApiResponse
getRequestHeaders()  : array<string|int, string>
loadResponse()  : ApiResponse
parseProperties()  : array<string|int, mixed>

Properties

Methods

__construct()

Client constructor.

public __construct(Client $guzzle) : mixed
Parameters
$guzzle : Client

createRequest()

public createRequest(null|string $method, null|string $url[, null|string|array<string|int, mixed> $queryParams = [] ][, null|string|array<string|int, mixed>|resource|StreamInterface $body = null ][, null|array<string|int, mixed> $headers = [] ]) : RequestInterface
Parameters
$method : null|string
$url : null|string
$queryParams : null|string|array<string|int, mixed> = []
$body : null|string|array<string|int, mixed>|resource|StreamInterface = null

Message body.

$headers : null|array<string|int, mixed> = []
Return values
RequestInterface

parseProperties()

protected parseProperties(null|string $method, null|string $url[, null|string|array<string|int, mixed> $queryParams = [] ][, null|string|array<string|int, mixed>|resource|StreamInterface $body = null ][, null|array<string|int, mixed> $headers = [] ]) : array<string|int, mixed>
Parameters
$method : null|string
$url : null|string
$queryParams : null|string|array<string|int, mixed> = []
$body : null|string|array<string|int, mixed>|resource|StreamInterface = null

Message body.

$headers : null|array<string|int, mixed> = []
Return values
array<string|int, mixed>

        
On this page

Search results