Calendar invites
Create iCalendar events with a Google Meet link and send them by email.
The server can build an iCalendar (.ics) invite, attach a Google Meet link and email it to the attendees.
Needs your own Google credentials
MeetingService currently contains a placeholder API key. Replace it with real Google credentials (below) before you use it. Nothing calls IcalService automatically yet, so use it from your own code.
Enable the Google Calendar API
- Go to the Google Cloud Console.
- Create a new project, or select an existing one.
- Enable the Google Calendar API for the project.
- Create OAuth 2.0 credentials or a service account.
- Download the credentials JSON file.
The packages are already in server/package.json. To add them elsewhere:
Create an invite
IcalService.createEvent (server/src/services/IcsEvents.ts) creates a Google Meet event and returns the invite.
| Field | Meaning |
|---|---|
title, description | Shown in the invite and in the Google Calendar event. |
start, end | Start and end time as ISO 8601 strings. |
organizer | Name and email of the person sending the invite. |
attendees | Email addresses to invite. Each is asked to reply (RSVP). |
The options type (GenreateICSOptions) also has uid, method, location and sequence, but createEvent does not use them yet. That means you cannot update or cancel an event through this function so far.
value holds the .ics text and error is set if it could not be built. Attach value to an email as text/calendar.
Integrations
- Google Meet and Google Calendar
- Cal.com
- Zoho Calendar
- Zoom Meetings
Calendar UI references
If you build a calendar screen, these projects are good starting points: