Skip to content

Python code snippet – How to manke a query in google api freebusy ?

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()
See also  Python code snippet - How to replace a substring in string ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.