timekit-io / booking-js

:date: Make a beautiful embeddable booking widget in minutes
https://developers.timekit.io/docs/booking-widget-v2
MIT License
2.42k stars 188 forks source link

Select availabilities with Google Calendar #82

Open klerd opened 8 years ago

klerd commented 8 years ago

Right now, the bookings calendar only shows empty slots from google calendars. Is there a way to show only 'appointment slots' on the booking calendar instead? In other words, is it possible to select our availability times on Google Calendars and then only have that reflected as available slots on the booking calendar?

laander commented 8 years ago

Hi @klerd. There's no native way to achieve that right now. The easiest workaround is to modify the source so it fetches a calendar's events instead of findtime availability and simply output those timeslots in the widget. It should not be too hard to achieve, but you'll have to handle deleting the timeslots again when they are booked and become unavailable (through the API).

I'll keep this issue as a feature request reference if we decide to look more into it.