Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

toshipon/ean3

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages