Documentation

ClientInterface

Interface ClientInterface

Table of Contents

request() Takes parameters passed in, makes a request to the API, and processes the response. mixed|StreamInterface
makeRequest() ResponseInterface
processResponse() Processes the returned response from the API. mixed|StreamInterface
getQuery() Get query from Client. array
clearQuery() Clear query. mixed
addQuery() Add a query parameter to filter results. mixed
getOptions() Get options from Client. array
clearOptions() Clear options. mixed
addOption() Add an option to the Guzzle request object. mixed

Methods

request()

Takes parameters passed in, makes a request to the API, and processes the response.

public request( $verb : string , $path : string [, $options : array = [] ] ) : mixed|StreamInterface
Parameters
$verb : string
$path : string
$options : array = []
Return values
mixed|StreamInterface

makeRequest()

public makeRequest( $verb : string , $path : string [, $options : array = [] ] ) : ResponseInterface
Parameters
$verb : string
$path : string
$options : array = []
Return values
ResponseInterface

processResponse()

Processes the returned response from the API.

public processResponse( $response : ResponseInterface ) : mixed|StreamInterface
Parameters
$response : ResponseInterface
Tags
throws
Return values
mixed|StreamInterface

getQuery()

Get query from Client.

public getQuery( ) : array
Return values
array

clearQuery()

Clear query.

public clearQuery( ) : mixed
Return values
mixed

addQuery()

Add a query parameter to filter results.

public addQuery( $name : string , $value : string|int ) : mixed
Parameters
$name : string
$value : string|int
Return values
mixed

getOptions()

Get options from Client.

public getOptions( ) : array
Return values
array

clearOptions()

Clear options.

public clearOptions( ) : mixed
Return values
mixed

addOption()

Add an option to the Guzzle request object.

public addOption( $name : string , $value : mixed ) : mixed
Parameters
$name : string
$value : mixed
Return values
mixed

Search results