Given a multi-dimensional array of periods, that your system will produce, you must include the following parameters:
where propertyID is the property identifier,
unitID is the unit identifier,
type is the type of calendar you want to import (it can be airbnb, bookingcom or ical),
url is the calendar URL.
Your calendars string must look like this:
The availability is automatically updated every 2 hours by default, but you can easily change this frequence in your code. You just need to call the UpdateCalendars function whenever you want the availability to be updated immediately.
The arguments user and password are the credentials that a partner uses to enter the BookingBnb Control Panel.
The argument token is the one our partners acquire when they register to our system.
The argument propertyID is the identification number of the current property. To retrieve this ID, use the BookingBnb function GetProperties.
Here is an example of how your code should be:
The function returns a status code, it can be ok or ko.
Get the calendars
To retrieve the list of the updated calendars for a given property, call the GetCalendars function.