1the_datetime = tz.localize(datetime.datetime(2016, 1, 3, 0))
2the_datetime2 = tz.localize(datetime.datetime(2016, 1, 4, 8))
3body = {
4 "timeMin": the_datetime.isoformat(),
5 "timeMax": the_datetime2.isoformat(),
6 "timeZone": 'US/Central',
7 "items": [{"id": 'my.email@gmail.com'}]
8 }
9eventsResult = service.freebusy().query(body=body).execute()
10