Retrieves an event by the slug
URL.
The slug is the end of an event URL that refers to a specific event. For example, if an events' URL is https://example.com/events/event/{my-event-slug}
, the slug is my-event-slug
.
function getEventBySlug(
slug: string,
options: GetEventBySlugOptions,
): Promise<GetEventBySlugResponse>;
URL slug.
Optional fields.
import { wixEventsV2 } from "@wix/events";
async function getEventBySlug(slug, options) {
const response = await wixEventsV2.getEventBySlug(slug, options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.