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