Migrated from Redmine #516 | Author: Jörgen Söderqvist Status: New | Priority: Normal | Created: 2020-04-20
Hi!
I have a question regarding your api.
How do get calendar information about services and providers?
I wont to be able to build a schedule, like you do in your site example.
Yes, i’ve tried the example you referred to.
But what if I have like 20 services and would like to present a week schedule to the visitor with available “yoga class” times. Do I have to make 20 requests then? One per service?
it can be one request per provider if you don’t have special schedule for service and have common provider for all services. If you have different providers/schedul then it must be different requests
it can be one request per provider if you don’t have special schedule for service and have common provider for all services. If you have different providers/schedul then it must be different requests
Hum, ok.
I thing i going to have like 20 yoga classes (with repeated time schedules).
There is going to be different teachers (providers) depending on days and time. Is there no way for me to just get the schedule with all the service id’s and providers id’s based on a “from” and a “to” date?
there is no way to do this. Our clasess code also do many API calls. So, if you need this functionality you need to call our API many times
Except that I only has 5000 requests per day… So if I have to make around 20 request per service to get a schedule with all my yoga classes, it will realy drain the requests I can do per day. And with the limit of no more than 2 simultanily calls or max 5 calls per secund it would meen that the user will have to wait unnecessary long to get the results.
Is there a timetable for when there will be a public API available for classes?
You can do classes with API method which are already available. If you need to rise your API limit please contact sales@simplybook.me
Hi again.
Yes, I could manually request every service. But, as I last wrote, because of your max-5-calls-per-sekund restriction, If I have around 20 services, the user will have to wait for at least 4 seconds to get a schedule. Thats a lot of time waist and really bad user experience..
But what is this method doing? ”getServiceAvailableTimeIntervals”
When I try it, it first looks like just the thing I’m looking for:
Except, for som reason the are only some of the start-times in the list. ex. 2020-04-21, id 13 it should be from 09:00 and down to the latest one at 16:30.
“result”: {
“2020-04-20”: {
“13”: ,
“1”: ,
“12”:
},
“2020-04-21”: {
“13”: [
“09:00:00”,
“10:15:00”
],
“1”: ,
“12”:
},