data coming back is unicode, so make sure we encode to utf-8. otherwise errors (e.g., UnicodeEncodeError: 'ascii' codec can't encode character ...) can be encountered when buffered (e.g., while piping output to less).
2 files changed
tree: a7f6adb1efd489740db4e1c819938904207daa86
  1. .gitignore
  2. client.py
  3. CONTRIBUTING.md
  4. csv_uploader.py
  5. LICENSE
  6. list_instances.py
  7. list_tasks.py
  8. README.md
  9. 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

./list_instances.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.