[#1079] Get provider weekly working hours

Migrated from Redmine #1079 | Author: Juanjo Alonso
Status: New | Priority: High, I’m very impatient | Created: 2023-07-12


Hi,

I’m trying to get the provider’s week working hours, so I can then set the Monday to Sunday working ours for a given provider. But all methods I can find are for between dates (getWorkDaysInfo) or for a given month and year (getWorkCalendar). I just want to retrieve the provider’s week working hours. Then I can update them using setWorkDayInfo.

Is there a method for this?

Redmine Admin wrote:

hi, you can use this method API documentation | SimplyBook.me Online Scheduling if you don’t have special day schedule for providers (if you do then it will return data taking in account this setting)

Juanjo Alonso wrote:

Redmine Admin wrote:

hi, you can use this method API documentation | SimplyBook.me Online Scheduling if you don’t have special day schedule for providers (if you do then it will return data taking in account this setting)

But that method needs two parameters, from and to. I’m assuming that is a start date and end date, isn’t it? It is not trustworthy, I mean, if I retrieve from 01/07/2023 to 07/07/2023 I get the whole week, ok, but If for example 05/07/2023 has a special working hours? The data retrieved will we true for that specific week but wrong for all other weeks.

What I’m trying to achieve is to be able to get and set the “common” week working hours info, and get and set specific days. As for example, a company working hours is MON-FRI 09:00 - 15:00. But I want to set a provider X to be MON-THU 10:00 - 14:00. And also, the 21/07/2023 will be from 10:00 - 12:00