CalenderHandler
, you can connect to Google Calendar via OAuth 2.0 and programmatically fetch events for a day, week, month, or specific type.
Example
To create theCalenderHandler
object, initialize it with your Google OAuth credentials file. The handler manages authentication and provides methods to retrieve events from Google Calendar.
Retrieves all events scheduled for today.
Retrieves all events scheduled for the next 7 days.
Retrieves all events scheduled for the next 30 days.
Fetches events for a custom range between 1 and 30 days.
Fetches events of a specific type such as “birthday”, “focusTime”, or “workingLocation”.