Don't decode empty response from DELETE

On success, DELETE returns no data.  Attempting to parse it into JSON causes
a crash.  Check for content before parsing.
1 file changed
tree: 41c4ea76de53197e46b1f0df830a12413772b81a
  1. .gitignore
  2. client.py
  3. CONTRIBUTING.md
  4. csv_uploader.py
  5. LICENSE
  6. list_tasks.py
  7. README.md
  8. sample.csv
README.md

The Google Code-in API Client

API Documentation is at https://developers.google.com/open-source/gci/api

Usage

./list_tasks.py --apikey APIKEY

./csv_uploader.py --apikey APIKEY file.csv

Each script also supports other flags. Use --help to see them.

Prerequisites

The client library requires requests to be installed.

You can install it with pip or easy_install (instructions) or install your operating system specific package. On Ubuntu or Debian, it is in the python-requests package.

API Keys

Organization Adminstrators can find their API key on their User Profile.

Bugs/Support

To report bugs, please email gci-support@google.com.