Skip to main content

gcal.googlecalendar.onnewandupdatedevents

Home > @runlightyear/gcal > GoogleCalendar > onNewAndUpdatedEvents

GoogleCalendar.onNewAndUpdatedEvents() method

This API is in beta and may contain contain bugs. Can be used in production with caution.

On new and updated events

Signature:
static onNewAndUpdatedEvents(props: OnNewAndUpdatedEventsProps): {
webhook: string;
action: string;
};

Parameters

ParameterTypeDescription
propsOnNewAndUpdatedEventsProps
Returns:

{ webhook: string; action: string; }

Example

On new and updated events

import { GoogleCalendar } from "@runlightyear/gcal";

GoogleCalendar.onNewAndUpdatedEvents({
name: "onNewAndUpdatedEvents",
title: "On New and Updated Events",
run: async ({ data }) => {
console.info("New and updated events", data);
},
});