Discovery: Treat empty nextPageToken field the same as it not existing

Sending nextPageToken out with an empty string to Google's DFA API will
raise a 500 error. This commit treats an empty nextPageToken field the
same as it not existing at all so that method.list_next() will not
attempt to retrieve a non-existent page of results.
2 files changed
tree: 4439e028f4af30c9b754bb289ae3eaf88e4b1f45
  1. apiclient/
  2. docs/
  3. googleapiclient/
  4. samples/
  5. static/
  6. tests/
  7. tools/
  8. .coveragerc
  9. .gitignore
  10. .gitmodules
  11. .hgignore
  12. .travis.yml
  13. CHANGELOG
  14. describe.py
  15. expandsymlinks.py
  16. LICENSE
  17. Makefile
  18. MANIFEST.in
  19. README.md
  20. samples-index.py
  21. setup.py
  22. sitecustomize.py
  23. tox.ini
README.md

About

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.

Installation

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 Version

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.

Third Party Libraries and Dependencies

The following libraries will be installed when you install the client library:

For development you will also need the following libraries:

Contributing

Please see the contributing page for more information. In particular, we love pull requests - but please make sure to sign the contributor license agreement.