2013-06-12 1 views
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' 

답변

1

그래서 http : // decorator.http()가 execute()에서 빠졌습니다.