A library for ease access of Google API from Google App Engine
This library alows easy acces to Google API from Google App Engine (GAE) application using OAuth 2.0 and service account. I is intended to be lightweight, understandable and resources friendly.
Only Calendar and Tasks APIs are currently implemented.
For examples of use see gapi/__init__.py
To start using this library create a GAE instance (see https://developers.google.com/appengine/docs/python/gettingstartedpython27/introduction) and acquire service_email service_key. To obtain one,
- go to https://code.google.com/apis/console and click "API Access" in the left menu
- Click the "Create an OAuth 2.0 client ID..." button
- Fill the form (only "Product name" is required) and click "Next"
- Select "Service account" and click "Create client ID"
- Dowload the private key to a safe place (password is "notasecret")
- Write somewhere the Service account EMAIL (will be used in gapi) and client ID (will be used to grant access to you calendar).
- Use convert_key.py utility to convert downloaded key to PEM format usable in Google App Engine
To be able to access a Google API which requires authentication, register you
Newer Google's APIs use JSON for communication and Signed JWT (JSON Web Token) for OAuth 2.0