Description: Fix incompatibilities with python-oauth2client >= 2.x
--- gcalcli 2015-09-14 01:26:55.000000000 -0400
+++ gcalcli 2016-03-25 05:59:33.777216098 -0400
from apiclient.errors import HttpError
from oauth2client.file import Storage
from oauth2client.client import OAuth2WebServerFlow
- from oauth2client.tools import run
+ from oauth2client.tools import run_flow
+ from oauth2client.tools import argparser
print "ERROR: Missing module - %s" % e.args[0]
credentials = storage.get()
if credentials is None or credentials.invalid:
+ args, unknown = argparser.parse_known_args(sys.argv)
+ credentials = run_flow(
client_id=self.client_id,
client_secret=self.client_secret,
scope=['https://www.googleapis.com/auth/calendar',
'https://www.googleapis.com/auth/urlshortener'],
user_agent=__program__ + '/' + __version__),
self.authHttp = credentials.authorize(httplib2.Http())