[#569] Show unavailable time slots and number

Migrated from Redmine #569 | Author: Dhanushka Krishnajith
Status: New | Priority: Normal | Created: 2020-09-07


I am trying to develop an interface that like below, for the time selection screen.
!https://trello-attachments.s3.amazonaws.com/5f519d5c443b545463069c58/1088x146/c0eaa8aadfd03278ae7d937aed351e05/image.png!

Currently, I am using, getStartTimeMatrix that only returns available time slots. Is it possible with the APIs,

To get all available timeslots regardless of booked or not?

To get number of available spots in a timeslot?

Redmine Admin wrote:

  1. there is no such method. You can use API documentation | SimplyBook.me Online Scheduling but this method will not take in account googleCalendar events, notes, etc. It only returns schedule data

  2. It is only possible with API v.2 which will be released soon.

Redmine Admin wrote:

Hi, you can use this method API documentation | SimplyBook.me Online Scheduling
to get slots.

GET https://user-api-v2.simplybook.me/admin/timeline/slots?date_from=2020-09-25&date_to=2020-09-25&provider_id=1&service_id=1&with_available_slots=1
Content-Type: application/json
X-Company-Login: 
X-Token: