from pprint import pprint
from Goo_gle import Create_Service
CLIENT_SECRET_FILE = 'Client_Calendar.json'
API_NAME = 'calendar'
API_VERSION = 'v3'
SCOPES = ['https://www.googleapis.com/auth']
service = Create_Service(CLIENT_SECRET_FILE, API_NAME, API_VERSION, SCOPES)
Run Code Online (Sandbox Code Playgroud)
输出:
Traceback (most recent call last): File "d:\Play with code\PROGRAMMINGS\Python\Artificial Inteligence\calen_dar.py", line 2, in <module>
from Goo_gle import Create_Service File "d:\Play with code\PROGRAMMINGS\Python\Artificial Inteligence\Goo_gle.py", line 5, in <module>
from google_auth_oauthlib.flow import Flow, InstalledAppFlow File "C:\Python\lib\site-packages\google_auth_oauthlib\__init__.py", line 21, in <module>
from .interactive import get_user_credentials File "C:\Python\lib\site-packages\google_auth_oauthlib\interactive.py", line 27, in <module>
import google_auth_oauthlib.flow File "C:\Python\lib\site-packages\google_auth_oauthlib\flow.py", line …Run Code Online (Sandbox Code Playgroud)