Project

ean3

0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
http://developer.ean.com/docs/read/hotels/Version_3
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 0.7.5
< 0.8, >= 0.6
~> 1.0
>= 0
< 2.0.0, >= 0.0.5
 Project Readme

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