zaidakram / expedia Goto Github PK
View Code? Open in Web Editor NEWExpedia is a ruby wrapper for EAN (Expedia Affiliate Network)
Home Page: http://zaidakram.github.io/expedia/
License: MIT License
Expedia is a ruby wrapper for EAN (Expedia Affiliate Network)
Home Page: http://zaidakram.github.io/expedia/
License: MIT License
When this gem will be updated to support EAN RAPID version ?
I wnt to fetch more than 200 results. Expedia document says you need to sent post request for that. Please help me with this.
In the http_service.rb file found here https://github.com/zaidakram/expedia/blob/master/lib/expedia/http_service.rb on line 7 the endpoint api.eancdn.com is hard-coded. This is not an official endpoint for the EAN service. Please change this endpoint to use http://api.ean.com for non-secure search and info requests and https://book.api.ean.com for Reservation Requests.
When I try to use this method call, I receive the following failing message:
Faraday::Error::ConnectionFailed:
hostname "dev.api.ean.com" does not match the server certificate
All my other method calls test fine. Is there someplace we are suppose to set the url?
What is the syntax to retrieve the current price for a given date? Sorry I am just a bit confused as to how to use the "expeosed" methods. I cant call them on the object or the response. Thanks for your time
After upgrading to version to 0.0.5, I am getting the above mentioned error. The status response is 400.
I am simply making request as:
list_api = Expedia.Api.new
response = list_api.get_payment_info( {:hotelID => 172396)
Am not I supposed to get the response.body?
Kept getting a 403 response in dev mode.. I had to change the DEVELOPMENT_SERVER to api.ean.com from dev.api.ean.com in http_service.rb, once I did I started getting response 200 in development mode..
Lines 83-98 of the same file (https://github.com/zaidakram/expedia/blob/master/lib/expedia/http_service.rb ) is where sig is put together and since Ruby sets variables when the service is started the timestamp is static which makes the sig static which causes authentication failures after about 5 minutes of the service being started.
This is because EAN's service will only authenticate a sig value for 5 minutes based on the EAN server time. To get the EAN server time, use EAN's ping request. Always generate a new sig value for each request to ensure your requests are authenticated.
For me, even copying the exact code written on this repository's home page in to my program gives me an error. It says: "in add_timeouts': undefined method
present?' for nil:NilClass (NoMethodError)". Any ideas why? Or what I'm doing wrong.
Is there a reason why attribute_readers are defined and not used.
I guess we should use them especially if you just read them:
I have been trying to figure out how to format the number of rooms/ guests section using this gem for some time and simply cannot figure it out. The api docs say :
"Room format for REST
The REST format compacts the values from the previous elements into a comma-delimited list. To declare a room and its occupants, use the following format:
&room[room number, starting with 1]=
[number of adults],
[comma-delimited list of children's ages]
For example, to declare that a room has one adult and two children ages 5 and 12, you would send &room1=1,5,12 . There is no separate declaration for the number of children - each age value is assumed to belong to a child."
I feel like I have tried every combination under the sun and I can't get a number of rooms to show up in my get request. Would it be possible to get an example of the format?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.