class Google_Http_REST extends REST (View source)

Methods

static mixed|T|null
execute(ClientInterface $client, RequestInterface $request, class-string|false|null $expectedClass = null, array $config = [], array $retryMap = null)

Executes a Psr\Http\Message\RequestInterface and (if applicable) automatically retries when errors occur.

from REST
static mixed|T|null
doExecute(ClientInterface $client, RequestInterface $request, class-string|false|null $expectedClass = null)

Executes a Psr\Http\Message\RequestInterface

from REST
static mixed|T|null
decodeHttpResponse(ResponseInterface $response, RequestInterface $request = null, $expectedClass = null)

Decode an HTTP Response.

from REST

Details

static mixed|T|null execute(ClientInterface $client, RequestInterface $request, class-string|false|null $expectedClass = null, array $config = [], array $retryMap = null)

Executes a Psr\Http\Message\RequestInterface and (if applicable) automatically retries when errors occur.

Parameters

ClientInterface $client
RequestInterface $request
class-string|false|null $expectedClass
array $config
array $retryMap

Return Value

mixed|T|null

Exceptions

Exception on server side error (ie: not authenticated, invalid or malformed post body, invalid url)

static mixed|T|null doExecute(ClientInterface $client, RequestInterface $request, class-string|false|null $expectedClass = null)

Executes a Psr\Http\Message\RequestInterface

Parameters

ClientInterface $client
RequestInterface $request
class-string|false|null $expectedClass

Return Value

mixed|T|null

Exceptions

Exception on server side error (ie: not authenticated, invalid or malformed post body, invalid url)

static mixed|T|null decodeHttpResponse(ResponseInterface $response, RequestInterface $request = null, $expectedClass = null)

Decode an HTTP Response.

Parameters

ResponseInterface $response
RequestInterface $request
$expectedClass

Return Value

mixed|T|null

Exceptions

Exception