1
events = calservice.events().list(calendarId='[email protected]', singleEvents='true', showDeleted='false', timeMin='{:%Y-%m-%dT%H:%M:%SZ}'.format(now), timeMax='{:%Y-%m-%dT%H:%M:%SZ}'.format(nowplusonemin)).execute(http=decorator.http())
https://www.googleapis.com/calendar/v3/calendars/[email protected]/events?timeMax=2013-06-12T11%3A04%3A09Z&showDeleted=true&alt=json&singleEvents=true&timeMin=2013-06-12T11%3A03%3A09Z
工作並返回我的事件所請求的查詢,但:
calendar_list = calservice.calendarList().list(pageToken=page_token).execute()
給我一個需要登錄錯誤:
<HttpError 401 when requesting https://www.googleapis.com/calendar/v3/users/me/calendarList?alt=json returned "Login Required">
範圍應該給我訪問這兩個我相信:
SCOPE='https://www.googleapis.com/auth/calendar'