[#167] Get Bookings with paging

Migrated from Redmine #167 | Author: jasmine JJ
Status: Closed | Priority: Normal | Created: 2018-05-22


Hello everyone,
I have looked around at API document and try to find an API that can get booking list with paging but I can’t find it.
Is there anyone know an API that can help to get booking list with paging.
For example:
I have 10 bookings and when make a request with get bookings API , first time I want to get 5 bookings and next time is 5 bookings left.
Can I do that with SBM API.
Thanks all.

Redmine Admin wrote:

it is not possible. You can use date filter instead

jasmine JJ wrote:

Ok, Thanks.
Just one more question. When I make get bookings API I get a list of booking as expected but when I did it several time, I not get that list anymore. Do you know why?

Redmine Admin wrote:

we need to see your raw http request. It can be some filters or someone cancelled bookings… there are many possible reasons

jasmine JJ wrote:

I see. Thanks a lot. It seem that booking has been cancelled.
hmm, My system have to get list booking to sync to another calendar. But when making this API request, the response will be the same for each request so that there don’t have any stop point, I mean my code will never stop.
So do you know is there any API instead of get bookings API to get list of booking.

Redmine Admin wrote:

there is no other API. You can use our Calendar sync plugin to sync bookings with Google and Microsoft calendars

jasmine JJ wrote:

Ok. Thank you very much