Client
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- Client constructor.
- createRequest() : RequestInterface
- send() : ApiResponse
- getRequestHeaders() : array<string|int, string>
- loadResponse() : ApiResponse
- parseProperties() : array<string|int, mixed>
Properties
$_guzzle
private
Client
$_guzzle
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
RequestInterfacesend()
public
send(RequestInterface $request) : ApiResponse
Parameters
- $request : RequestInterface
Tags
Return values
ApiResponsegetRequestHeaders()
protected
getRequestHeaders(RequestInterface $request) : array<string|int, string>
Parameters
- $request : RequestInterface
Return values
array<string|int, string>loadResponse()
protected
loadResponse(RequestInterface $request) : ApiResponse
Parameters
- $request : RequestInterface
Tags
Return values
ApiResponseparseProperties()
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> = []