class Google_Http_REST (View source)

This class implements the RESTful transport of apiServiceRequest()'s

Methods

static array
execute(ClientInterface $client, RequestInterface $request, $expectedClass = null, $config = array(), $retryMap = null)

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

static array
doExecute(ClientInterface $client, RequestInterface $request, $expectedClass = null)

Executes a Psr\Http\Message\RequestInterface

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

Decode an HTTP Response.

Details

static array execute(ClientInterface $client, RequestInterface $request, $expectedClass = null, $config = array(), $retryMap = null)

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

Parameters

ClientInterface $client
RequestInterface $request
$expectedClass
$config
$retryMap

Return Value

array

decoded result

Exceptions

Google_Service_Exception

static array doExecute(ClientInterface $client, RequestInterface $request, $expectedClass = null)

Executes a Psr\Http\Message\RequestInterface

Parameters

ClientInterface $client
RequestInterface $request
$expectedClass

Return Value

array

decoded result

Exceptions

Google_Service_Exception

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

Decode an HTTP Response.

Parameters

ResponseInterface $response

The http response to be decoded.

RequestInterface $request
$expectedClass

Return Value

mixed|null

Exceptions

Google_Service_Exception