Skip to content

blacklee/booking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Booking

Ruby API to access https://distribution-xml.booking.com/.

My project do not use full API from Booking.com currently, so the implementation is partial.

Modules

This gem provides 2 modules to use booking

  • API
  • BP -> Best Practice

Usage

Here is a code snippets from my Rails project:

namespace :gm do
  task :refresh_hotels => :environment do |tsk|
    booking_client = Booking::Client.new({:cfg_file => "#{Rails.root.to_s}/config/database.yml"})
    bp = Booking::BestPractice.new
    bp.get_all_hotels(booking_client, 0, 10) do |hotel_hash_array|
      hotel_hash_array.each do |hotel_hash|
        puts hotel_hash
      end
    end
  end
end

Resources

You can download Booking City data from http://api.goodappworks.com/system/booking/cities.sql.gz

About

Ruby API to access https://distribution-xml.booking.com/, partial implementation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages