Reference
Options reference
Option
Type
Contract
Description
Javascript API reference
<!-- Example of use of an instance to call the API -->
<script>
Mews.Distributor({
configurationIds: ['aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'],
}, function(distributor) {
$('.booking-button').click(function() {
var start = new Date();
var end = new Date();
end.setDate(start.getDate() + 2);
distributor.setStartDate(start);
distributor.setEndDate(end);
distributor.open();
});
});
</script>Common API functions
open()
close()
setLanguageCode(languageCode)
setCurrencyCode(currencyCode)
setStartDate(date)
setEndDate(date)
setVoucherCode(code)
setAdultCount(adultCount)
setChildCount(childCount)
disableTracking()
enableTracking()
Single Mode API functions
showRooms()
showRates(roomId)
Chain Mode API functions
showHotels()
showRooms(hotelId)
setCity(cityId)
Advanced configuration (optional)
string dataBaseUrl
Last updated
Was this helpful?