I am trying to write a Django app which creates events in a specific Google calendar. So far I have been successful. There is only a little problem:
I don\'t
The answers seems to be deprecated as of 2017-06-16.
approval_prompt is deprecatedprompt=force is not validHere is a working example:
from oauth2client.client import OAuth2WebServerFlow
flow = OAuth2WebServerFlow(
client_id=CLIEN_ID,
client_secret=CLIENT_SECRET,
scope=SCOPES,
redirect_uri='http://localhost/gdrive_auth',
access_type='offline',
prompt='consent',
)
print(flow.step1_get_authorize_url())