This project is not covered by Drupal’s security advisory policy.

This is 3rd party integration with Booking.com service.

This module provides a framework accessing Booking.com API for Drupal developers.

Provided XML data from Booking.com allows you to present selections of hotels on your website that match your target audience. In combination with our multilingual hotel content you are able to serve a wider range of visitors on your website. By using XML you are flexible in delivering content including the reservation process to your customers (optional). The XML service allows you to completely integrate our product in your own website's layout served from your own server, exactly in the way you like.

The Booking.com XML grants you access to all hotel data. The data can be retrieved by XML and should be stored locally, in your own database. Hotel data consists of basic hotel information, various descriptions of the hotel, photos, pricing and availability (only real-time). Furthermore a basic list of countries, cities and regions can be retrieved via XML.

Note: This is not an official module of Booking.com, so you'll not find any help regarding the Booking.com service issues.

Documentation

Affiliate partners FAQ:
http://www.booking.com/general.html?tmpl=docs/partners_affiliate_help
Affiliate Partners Registration:
https://www.booking.com/partnerreg.html
Booking.com offers clear and full XML documentation online at http://distribution-xml.booking.com. In case of any questions about our XML feed please contact the XML support team per email.
Function list:
http://xml.booking.com/affiliates/documentation/xml_functions.html
(probably you need to have the access)

Example usage

 $booking = new Booking();
 $parameters = array(
   'rows' => 3,
   'countrycodes' => 'pl'
 );
 $data = $booking->getCities($parameters);

Installation

1. Install the module.
Note: This module is for developers only and you'll not find usability if you

Implemented methods

  public function getChainTypes($parameters) 
  public function getChains($parameters) 
  public function getChangedHotels($parameters) 
  public function getCities($parameters) 
  public function getCountries($parameters) 
  public function getCreditcardTypes($parameters) 
  public function getCreditcards($parameters) 
  public function getDistricts($parameters) 
  public function getDistrictHotels($parameters) 
  public function getFacilityTypes($parameters) 
  public function getHotelDescriptionPhotos($parameters) 
  public function getHotelDescriptionTranslations($parameters) 
  public function getHotelDescriptionTypes($parameters) 
  public function getHotelFacilities($parameters) 
  public function getHotelFacilityTypes($parameters) 
  public function getHotelLogoPhotos($parameters) 
  public function getHotelPhotos($parameters) 
  public function getHotelTranslations($parameters) 
  public function getHotelTypes($parameters) 
  public function getHotels($parameters) 
  public function getRegions($parameters) 
  public function getRegionHotels($parameters) 
  public function getRoomFacilities($parameters) 
  public function getRoomFacilityTypes($parameters) 
  public function getRoomPhotos($parameters) 
  public function getRoomTranslations($parameters) 
  public function getRoomTypes($parameters) 
  public function getRooms($parameters) 

Features

  • Method: bookings.getChainTypes - Returns a list of hotel chains (in English),
  • Method: bookings.getChains - Returns chains per hotel.
  • Method: bookings.getChangedHotels - Returns ids from hotels where *something* has been added / changed / removed (including closed hotels) since a certain date. These hotels should be synced completely, so that deleted objects & hotels will also be removed from your local database. Can be used periodically in addition to the {last_change} parameter of several functions.
  • Method: bookings.getCities - Returns list of cities (with some translations).
  • Method: bookings.getCountries - Returns countrycodes and their translated names. If a country name is not available in the requested language it's English name will be returned instead.
  • Method: bookings.getCreditcardTypes - Returns a list of credit cards (in English). Only credit cards with {bookable} set to 1, can be used in bookings.processBooking.
  • Method: bookings.getCreditcards - Returns credit cards accepted at the hotel. Note: not all accepted credit cards can be used in bookings.processBooking (see also bookings.getCreditcardTypes{bookable}).
  • Method: bookings.getDistricts - Returns all the districts where Bookings offers hotels.
  • Method: bookings.getDistrictHotels - Returns a list of district_id and hotel_id pairs. This function expects any of the following search parameters: countrycodes, city_ids, district_ids and last_change.
  • Method: bookings.getFacilityTypes - Returns facility types.
  • Method: bookings.getHotelDescriptionPhotos - Returns hotel description photo's.
  • Method: bookings.getHotelDescriptionTranslations - Returns hotel descriptions.
  • Method: bookings.getHotelDescriptionTypes - Returns hotel description types.
  • Method: bookings.getHotelFacilities - Returns hotel facilities.
  • Method: bookings.getHotelFacilityTypes - Returns hotel facility types.
  • Method: bookings.getHotelLogoPhotos - Returns hotel logo photo's.
  • Method: bookings.getHotelPhotos - Returns hotel photo's.
  • Method: bookings.getHotelTranslations - Returns hotel name/address/city translations.
  • Method: bookings.getHotelTypes - Returns hotel types.
  • Method: bookings.getHotels - Returns hotel details.
  • Method: bookings.getRegions - Returns all the regions where Bookings offers hotels.
  • Method: bookings.getRegionHotels - Returns Hotels and its assosiated regional information.
  • Method: bookings.getRoomFacilities - Returns room facilities.
  • Method: bookings.getRoomFacilityTypes - Returns room facility types.
  • Method: bookings.getRoomPhotos - Returns room photos.
  • Method: bookings.getRoomTranslations - Returns room translations.
  • Method: bookings.getRoomTypes - Returns room types.
  • Method: bookings.getRooms - Returns rooms.

Requirements

Completed Affiliate Partners Registration, which is active Affiliate account
Username and password to http://xml.booking.com/

Similar modules

Troubleshooting

Authors

The maintainers can be contacted for paid customizations of this module as well as Drupal consulting and development.

Project information

  • caution Seeking co-maintainer(s)
    Maintainers are looking for help reviewing issues.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Module categories: Integrations
  • chart icon7 sites report using this module
  • Created by kenorb on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases