This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a resource by ID.
function getResource(resourceId: string): Promise<Resource>;
ID of the resource to retrieve.
import { resources } from "@wix/bookings";
async function getResource(resourceId) {
const response = await resources.getResource(resourceId);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.