FLOW = OAuth2WebServerFlow(client_id='YOUR_CLIENT_ID', client_secret=
    'YOUR_CLIENT_SECRET', scope='https://www.googleapis.com/auth/calendar',
    user_agent='YOUR_APPLICATION_NAME/YOUR_APPLICATION_VERSION')
Использование Google Calendar API версии 3 с Python