gianadrias / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

[FR] Do not make useBatch global #288

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
## Summary

The current implementation of batch requests currently rely on a global 
UseBatch flag:

  $client->setUseBatch(true);

  $batch = new Google_BatchRequest();
  $batch->add($plus->people->get('me'), 'key1');
  $batch->add($plus->people->get('me'), 'key2');
  $result = $batch->execute();

This means that using the same client to send batch and non-batch request 
requires resetting the flag in-between each calls.

## Feature request

Provide another design that do not require a global flag or provide a way to 
execute the non-batch request nonetheless:

  $client->setUseBatch(true);
  $result = $plus->people->get('me')->execute();

Original issue reported on code.google.com by ala...@google.com on 22 Mar 2013 at 8:37

GoogleCodeExporter commented 8 years ago

Original comment by ianbar...@google.com on 24 Mar 2013 at 7:04

GoogleCodeExporter commented 8 years ago
This issue tracker is now closing. Development on the Google PHP client library 
moved to GitHub with the release of the 1.0.0-alpha, and now the 1.0 branch has 
reached beta status there will be no further releases of the 0.6 branch of the 
library. 

Please take a look at the latest version on 
https://github.com/google/google-api-php-client

For information on migrating, please take a look at this guide: 
https://developers.google.com/api-client-library/php/guide/migration

For general library support please ask a question on StackOverflow: 
http://stackoverflow.com/questions/tagged/google-api-php-client

If you are looking for support with a specific API, please contact the team 
working with that API via StackOverflow or their preferred support mechanism. 

If your issue still exists with the new version of the library, please raise a 
bug in the GitHub issue tracker with a minimal code sample. 

Thanks!

Original comment by ianbar...@google.com on 22 Jan 2014 at 4:53