Documentation

VatjarAutomationsCallerService extends AbstractApiCallerService
in package

Table of Contents

Constants

ACCEPTED_JSON_TYPES  = ['application/json', 'application/hal+json']

Properties

$client  : Client|null

Methods

getBaseUri()  : string
requestJson()  : array<string|int, mixed>
Generic method to perform an HTTP request and decode JSON.
assertOkJson()  : void
getHttpClient()  : Client

Constants

Properties

Methods

requestJson()

Generic method to perform an HTTP request and decode JSON.

public requestJson(string $method, string $uri[, array<string|int, mixed> $opts = [] ]) : array<string|int, mixed>
Parameters
$method : string
$uri : string
$opts : array<string|int, mixed> = []
Return values
array<string|int, mixed>

assertOkJson()

protected assertOkJson(ResponseInterface $response) : void
Parameters
$response : ResponseInterface

        
On this page

Search results