Documentation

ConnectorInterface

Interface ConnectorInterface

Table of Contents

__construct() Connector constructor. mixed
createRequest() Creates an authenticated Request instance. RequestInterface
sendRequest() Sends the request to the API using Guzzle. ResponseInterface

Methods

__construct()

Connector constructor.

public __construct( $config : array ) : mixed
Parameters
$config : array
Return values
mixed

createRequest()

Creates an authenticated Request instance.

public createRequest( $verb : string , $path : string ) : RequestInterface
Parameters
$verb : string
$path : string
Return values
RequestInterface

sendRequest()

Sends the request to the API using Guzzle.

public sendRequest( $verb : string , $path : string , $options : array ) : ResponseInterface
Parameters
$verb : string
$path : string
$options : array
Return values
ResponseInterface

Search results