/gcal-events

Gets Google Calendar events from a calendar

Primary LanguageJavaScript

gcal-events

rxjs enabled gcal events. Calling the function returns an observable of event objects.

Here is example code on how you might use it with React components:

getEvents(CALENDAR_ID, KEY, { maxResults: 8, startDay: Date.now() }).subscribe((event) => {
  // do something with your event
});

Events look like this:

{
  start: DATE_TIME,
  end: DATE_TIME,
  location: string,
  summary: string,
}