Google/Google Calendar API

From Omnia
Jump to navigation Jump to search

Google Calendar API - Google Apps Platform — Google Developers - https://developers.google.com/google-apps/calendar/

Google Apps Calendar API: Downloads - Google Calendar API — Google Developers - https://developers.google.com/google-apps/calendar/downloads

Getting Started - Google APIs Client Library for Python — Google Developers - https://developers.google.com/api-client-library/python/start/get_started

Google Developers Console - https://console.developers.google.com/

Install api-client-library [1]

pip install --upgrade google-api-python-client

/opt/python-2.7.5/lib/python2.7/site-packages/google_api_python_client-1.2-py2.7.egg-info/installed-files.txt

apiclient, oauth2client, uritemplate

Install python-gflags [2]

pip install --upgrade python-gflags
wget https://python-gflags.googlecode.com/files/python-gflags-2.0.tar.gz
tar xfvz python-gflags-2.0.tar.gz ; cd python-gflags-2.0
python setup.py install


NotImplementedError: The gflags library must be installed to use tools.run(). Please install gflags or preferrably switch to using tools.run_flow().


WARNING:root:This function, oauth2client.tools.run(), and the use of the gflags library are deprecated and will be removed in a future version of the library.

Google+

Making it simple to call Google APIs [3]

# List my public Google+ activities.
result = service.activities().list(userId='me', collection='public').execute()
tasks = result.get('items', [])
for task in tasks:
  print task['title']