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)

No description

Parameters

Client $client
$boundary
$rootUrl
$batchPath

add(RequestInterface $request, $key = false)

No description

Parameters

RequestInterface $request
$key

execute()

No description

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

No description

Parameters

ResponseInterface $response
$classes