class Batch (View source)

Class to handle batched requests to the Google API service.

Note that calls to Google\Http\Batch::execute() do not clear the queued requests. To start a new batch, be sure to create a new instance of this class.

Constants

BATCH_PATH

Methods

__construct(Client $client, $boundary = false, $rootUrl = null, $batchPath = null)

No description

add(RequestInterface $request, $key = false)

No description

execute()

No description

parseResponse(ResponseInterface $response, $classes = [])

No description

Details

__construct(Client $client, $boundary = false, $rootUrl = null, $batchPath = null)

Parameters

Client $client
$boundary
$rootUrl
$batchPath

add(RequestInterface $request, $key = false)

Parameters

RequestInterface $request
$key

execute()

parseResponse(ResponseInterface $response, $classes = [])

Parameters

ResponseInterface $response
$classes