📜  如何在 google api freebusy python 代码示例中进行查询

📅  最后修改于: 2022-03-11 14:46:35.603000             🧑  作者: Mango

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