Hooks
Bookings hooks
Overview of all the hooks associated with bookings.
Optimize your development workflow using our custom hooks. Our custom hooks are designed to simplify the integration of the Cal.com API into your products. With these hooks, you can effortlessly manage state, handle side effects, and optimize performance, allowing you to focus on building exceptional user experiences without the hassle of complex API interactions.
Below is a list of hooks you can find that are associated with bookings.
then you have to pass the access token of this user to the CalOAuthProvider to then finally be able to
use the “useOrganizationUserBookings” by specifying “userId” which will return an array of that user’s bookings. You can filter bookings by status, event type id, attendee email etc. - see this class for filters you can pass to the hook.
Below code snippet shows how to use the “useOrganizationUserBookings” hook to fetch bookings for a specific user using take, skip and status filters:
then you have to pass the access token of this user to the CalOAuthProvider to then finally be able to
use the “useOrganizationBookings” which will return an array of organization bookings. You can filter bookings by status, user ids, event type ids, attendee email etc. - see this class for filters you can pass to the hook + you can use “userIds” filter like in example below.
Below code snippet shows how to use the “useOrganizationBookings” hook to fetch bookings for a specific users using take, skip and userIds filters: