I got the following code for fetching all events from a specific calendar. This code works for me. I would like to add a variable to get the events of today's date.
I'm using the GET
HTTP Request: https://www.googleapis.com/calendar/v3/calendars/calendarId/events
from developers.google.com/calendar/api/v3/reference/events
My code:
import requests
url = "https://www.googleapis.com/calendar/v3/calendars/***calendarId***/events"
payload={}
headers = {
'Authorization': 'Bearer *************************************************'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)