Posts: 3
Joined: Fri Sep 21, 2018 2:38 am

Help for API google calendar

Fri Sep 21, 2018 2:50 am


I write a program to read the Calendar on gmail with the API application on Python.
The program works very well, but I have a problem :
On a computer with my mail, I see more calendar (ex : holidays, family, ....) but not on raspberry

How to see all the calendar ?

my program :

Code: Select all

# Parametrage de l'aplication
#credentials = get_credentials()
#http = credentials.authorize(httplib2.Http())
#service = discovery.build('calendar', 'v3', http=http)

now = datetime.datetime.utcnow().isoformat() + 'Z' # 'Z' indicates UTC time
eventsResult = service.events().list(calendarId='[email protected]', timeMin=now, maxResults=10, singleEvents=True, orderBy='startTime').execute()
events = eventsResult.get('items', [])

Return to “Python”