Skip to content

fragaria/gapi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GAPI

A library for ease access of Google API from Google App Engine

Introduction

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,

  1. go to https://code.google.com/apis/console and click "API Access" in the left menu
  2. Click the "Create an OAuth 2.0 client ID..." button
  3. Fill the form (only "Product name" is required) and click "Next"
  4. Select "Service account" and click "Create client ID"
  5. Dowload the private key to a safe place (password is "notasecret")
  6. Write somewhere the Service account EMAIL (will be used in gapi) and client ID (will be used to grant access to you calendar).
  7. 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published