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.
providerMetadatais typed by the provider. - warningsWarning[]
Throws
NotFoundErrorwhen the event or calendar does not exist or is not visible to the user.resourcesays which.