This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a list of events filtered by the participant's contact ID.
You can't set toLocalDate
to a value that's more than a full year after
fromLocalDate
.
You can only call this method when authenticated as a Wix app or Wix user identity.
function listEventsByContactId(
contactId: string,
options: ListEventsByContactIdOptions,
): Promise<ListEventsByContactIdResponse>;
ID of the contact
to retrieve events for. Required, unless you provide cursorPaging
.
import { events } from "@wix/calendar";
async function listEventsByContactId(contactId, options) {
const response = await events.listEventsByContactId(contactId, options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.