commit | 23174be7c0543add1a6727df20570053727560e2 | [log] [tgz] |
---|---|---|
author | Gabriel Garcia <garciat@live.com> | Wed May 25 17:28:07 2016 +0200 |
committer | Gabriel Garcia <gabriel.garcia@nafora.ch> | Mon May 30 10:48:20 2016 +0200 |
tree | 01d5fdf972445958fb3a52c7233bed64b5337999 | |
parent | 08357b27648f5cf20c505743e92341caea60c30a [diff] |
Refresh empty OAuth2 credentials in batch request Batch request serialization requires the credentials in the http object to be applied to every individual request *prior* to actually invoking http.request(). This circumvents the self-refresh logic in the request() function monkey-patched by the OAuth2 credentials, thus resulting in the use of an uninitialized credentials object. The fix here is to detect when OAuth2-like credentials are being used and to force a refresh in case the access token is not initialized yet. Resolves: #211
This is the Python client library for Google's discovery based APIs. To get started, please see the full documentation for this library. Additionally, dynamically generated documentation is available for all of the APIs supported by this library.
To install, simply use pip
or easy_install
:
$ pip install --upgrade google-api-python-client
or
$ easy_install --upgrade google-api-python-client
See the Developers Guide for more detailed instructions and additional documentation.
Python 2.6 or 2.7 are fully supported.
Python 3.3+ is also now supported! However, this library has not yet been used as thoroughly with Python 3, so we'd recommend testing before deploying with Python 3 in production.
The following libraries will be installed when you install the client library:
For development you will also need the following libraries:
Please see the contributing page for more information. In particular, we love pull requests - but please make sure to sign the contributor license agreement.