getEvent

Fetches one event by id.

Use getEvent when you have an event's id and want its current details, including attendees that some providers leave out of listings.

import { getEvent } from '@cal-sdk/core';

const { event } = await getEvent({ calendar, eventId });

Options

eventIdstring
A single event, series, occurrence or exception id.
calendarId?string= 'primary'

Plus the common options.

Result

eventCalendarEvent
The event. providerMetadata is typed by the provider.
warningsWarning[]

Throws

  • NotFoundError when the event or calendar does not exist or is not visible to the user. resource says which.

On this page