[#123] Get first working day or available time slot which takes into account Google Calendar sync?

Migrated from Redmine #123 | Author: Tavan Eftekhar
Status: Closed | Priority: High, I’m very impatient | Created: 2018-03-06


The API has a function getFirstWorkingDay() which shows me the first available day for any specific provider, and works somewhat as intended, but it doesn’t take into account their Google calendar busy times. So it will say they have an availability X day, when in reality that day may be fully booked. What API function, or sequence of functions, can I use to properly see a provider’s next available day/time which WILL take into account the Google Calendar synced to the provider?

Thank you!

Redmine Admin wrote:

Unfortunately there is no simple way to solve this. You may call this function to see which dates are blocked by google calendar Company administration service methods - Company administration service methods - SimplyBook.me and this one Company administration service methods - Company administration service methods - SimplyBook.me and combine their results

You can also try to use this one Company administration service methods - Company administration service methods - SimplyBook.me

Tavan Eftekhar wrote:

Redmine Admin wrote:

Unfortunately there is no simple way to solve this. You may call this function to see which dates are blocked by google calendar Company administration service methods - Company administration service methods - SimplyBook.me and this one Company administration service methods - Company administration service methods - SimplyBook.me and combine their results

You can also try to use this one Company administration service methods - Company administration service methods - SimplyBook.me

Thank you, that’s unfortunate. I guess I can figure something out to compare the two outputs.

My next question is about the embedded booking widget. I know I can pass some predefined values such as service ID and provider ID, but is there any way to also pass the initial date to load the widget from? This way, if I do figure out a way to find their proper next available day, I can make sure my widget starts at the right day instead of showing no availability for many weeks?

Thank you

Redmine Admin wrote:

It is impossible right now. Bug good idea, will add this possibility in next couple of weeks

Tavan Eftekhar wrote:

Redmine Admin wrote:

It is impossible right now. Bug good idea, will add this possibility in next couple of weeks

Thanks for the response! So are you saying the widget WILL be updated at some point to ensure it checks google calendar before loading the first day? If so then that solves all my problems and I can just tell my client to wait for a while. Or were you saying it MIGHT be updated? I don’t mind if it takes a long time, just as long as I know it will be updated at some point.

Thanks!

Redmine Admin wrote:

No. We will add ability to pass initial date to load the widget.