\mCASH\HttpClientClientInterface

ClientInterface interface.

Summary

Methods
Constants
request()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

request()

request(string  $method, string  $absUrl, array  $params, array  $headers) : \mCASH\HttpClient\array($rawBody,

Parameters

string $method

The HTTP method being used

string $absUrl

The URL being requested, including domain and protocol

array $params

KV pairs for parameters. Can be nested for arrays and hashes

array $headers

Headers to be used in the request (full strings, not KV pairs)

Throws

\mCASH\HttpClient\Error\Api

& Error\ApiConnection

Returns

\mCASH\HttpClient\array($rawBody, —

$httpStatusCode, $httpHeader)