将Google Calendar API集成到Python项目中>>

问题描述 投票:-1回答:1

我尝试运行此脚本python:

  from googleapiclient.discovery import build
  from google_auth_oauthlib.flow import InstalledAppFlow

  scopes = 'https://www.googleapis.com/auth/calendar'
  flow = InstalledAppFlow.from_client_secrets_file("client_secret.json", scopes=scopes)
  flow.run_console()

But i had this error:

我试图运行此脚本python:从googleapiclient.discovery导入,从google_auth_oauthlib.flow导入InstalledAppFlow范围='https://www.googleapis.com/auth/calendar'流程...

python google-calendar-api
1个回答
0
投票
只是一个自我插入:
© www.soinside.com 2019 - 2024. All rights reserved.