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. CONTRIBUTING.md
  3. LICENSE
  4. README.md
  5. client.py
  6. csv_uploader.py
  7. list_tasks.py
  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.