Skip to content

Commit

Permalink
chore: add comment for batching example (#1891)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer authored Jul 23, 2020
1 parent 5e7f50d commit 074daa2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/batch.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@
want to execute with keys of our choice - these
keys will be reflected in the returned array.
************************************************/

// NOTE: Some services use `$service->createBatch();` instead of
// `new Google_Http_Batch($client);`
$batch = new Google_Http_Batch($client);

$optParams = array('filter' => 'free-ebooks');
$optParams['q'] = 'Henry David Thoreau';
$req1 = $service->volumes->listVolumes($optParams);
Expand Down

0 comments on commit 074daa2

Please sign in to comment.