To use the Categories API, install the @wix/bookings
package.
To install the package, follow the instructions below based on your development environment.
When developing with:
npm install @wix/bookings
or
yarn add @wix/bookings
When developing CLI or self-hosted Wix apps, as well as headless apps or sites, run the following command:
npm install @wix/bookings
or
yarn add @wix/bookings
To import the package in your code:
import { categories } from "@wix/bookings";