This Api is allowing access to the CRUD functions for Google Calendar Events.

This is useful when creating complex EventNote templates with Templater or Dataview.js queries.

The CRUD functions

Other helpful functions

Get all calendars

To get a list of all non black listed calendars use the getCalendars function.

Example
<%*
const {getCalendars} = this.app.plugins.plugins["google-calendar"].api;
const calendars = await getCalendars();
tR = calendars.reduce((text, calendar )=> text += "\n" + calendar.summary, "");
%>

Get a single Event

To get a single event from an id you can use the getEvent function. This function takes to arguments.

  1. the event id
  2. the calendar id (optional but recommended)
Example
<%*
const {getEvent} = this.app.plugins.plugins["google-calendar"].api;
const event = await getEvent("25t2r0005cnbxoev871o5ll4ls","d74f57c01c85828d747bc3afbc4dd79603e9e552a4218ae2509589d6f25c2d162@group.calendar.google.com");
tR = JSON.stringify(event);
%>