Transport interface

 Methods

Get last response

getLastResponse() : string

access public

Returns

string

Number of requests left

requestsLeft() : int

Returns

int

Perform the request

send(string $url, string $requestMethod, string $data, array $headers) : string

access public

Parameters

$url

string

URL of request

$requestMethod

string

(GET|POST|PUT|DELETE)

$data

string

Data in string format

$headers

array

Exceptions

\Moneybird\HttpRequest_Exception
\Moneybird\HttpRequest_HttpStatusException
\Moneybird\HttpRequest_UnknownHttpStatusException
\Moneybird\HttpRequest_ConnectionErrorException

Returns

string

Set useragent

setUserAgent(string $userAgent) : \Moneybird\HttpClient

access public

Parameters

$userAgent

string

Returns