[#802] Request REST API limitation ?

Migrated from Redmine #802 | Author: Anthony Ciceron
Status: New | Priority: Normal | Created: 2021-10-13


Hi,

I’m sorry to ask you another thing.

When i want to get booking details, i only have 10 events for a day in my response , even if i have 20 events in a day.

It seems to have a limitation about 10. Is it normal ?

My code :

  var url = 'https://user-api-v2.simplybook.me/admin/bookings?filter[date]=2021-10-05';

  var header = {
      "X-Company-Login":***,
      'X-Token': ***
  }; 

  var options = {
  'method' : 'GET',
  'contentType': 'application/json',
  'headers':header,
  };

  var response = UrlFetchApp.fetch(url, options);

Anthony Ciceron wrote:

Really sorry about that question, the answer was in the API documentation :

In GET parameters you can pass page, on_page and filter with following parameters:
int page - page in list
int on_page - items per page
object filter - filter object

Sorry again and have a nice day