#this code you can use at google app engine
def get_service():
from googleapiclient.discovery import build
from oauth2client.client import GoogleCredentials
credentials = GoogleCredentials.get_application_default()
service = build('calendar', 'v3', credentials=credentials)
return service
步骤3然后调用事件列表函数
service = get_service()
events = service.events().list(calendarId='calendarId').execute()
第一步。你需要日历id
第二步。你需要谷歌认证。它支持googlecalendarapi的函数
步骤3然后调用事件列表函数
参考https://developers.google.com/calendar/v3/reference/events/list
相关问题 更多 >
编程相关推荐