ean3 is wrapped around a ruby plugin EAN ( Expedia Affiliate Network ) API. The API document, please refer to the following url.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.mkd
Rakefile
ean3-0.0.8.gem
ean3.gemspec
init.rb
install.rb
uninstall.rb

README.mkd

What is ean3?

ean3 is wrapped around a ruby plugin EAN(Expedia Affiliate Network) API. The API document, please refer to the following url.

http://developer.ean.com/docs/read/hotels/Version_3

How to use

console

gem install ean3

Gemfile

require 'ean3'

controller

options = {
    :apikey => 'XXXXXXXXX',
    :secret => 'XXXXXXXXX',
    :cid => 'XXXXXXXX',
    :minorRev => 12,
    :locale => "ja_JP",
    :currencyCode => "JPY",
    :debug => true
}
@client = Ean3::Client.new(options)
@response = @client.getList({
    :arrivalDate => "03/10/2012",
    :departureDate => "03/13/2012"
    :city => "tokyo"
})

Sample Project

https://github.com/toshipon/ean3_sample

Copyright (c) 2012 Toshiaki Takahashi, released under the MIT license