Retrieves an event by ID.
function getEvent(eventId: string, options: GetEventOptions): Promise<V3Event>;
Event ID.
Optional fields.
import { wixEventsV2 } from "wix-events.v2";
async function getEvent(eventId, options) {
try {
const result = await wixEventsV2.getEvent(eventId, options);
return result;
} catch (error) {
console.error(error);
// Handle the error
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.