Comments (2)
Hi @donbigote, can you provide some concrete examples of what you are trying to achieve and what is not working/not well documented? We will take a look and see both how we can help you and how we can improve the documentation
from amadeus-ruby.
Based on the API documentation for hotel offers
https://developers.amadeus.com/self-service/category/hotel/api-doc/hotel-search/api-reference
You are supposed to use page[limit]
and page[offset]
And then use the "next" link from the API response to show the next results.
How do I set page[limit]
and page[offset]
with the response = amadeus.shopping.hotel_offers.get(...
?
When I tried: page:{ limit: 10, offset: 1}
it returned a response, but it was a strange response with 7 results.
Then, when I tried to use next(response)
the API was returning the same results from the first response
Once I started using the production API, I noticed that the response for hotel offers isn't that big (like 50-60 offers). So, I decided to just get a normal response and use javascript to show and hide a certain number of offers.
I am new at working with APIs. So, a lot of my confusion is probably just from a lack of experience. Thanks for this gem and the API, it is very nice!
from amadeus-ruby.
Related Issues (20)
- Add support for Trip Parser API
- Add support for Hotel Ratings API
- Add support for Flight Offers Search API
- Add support for Flight Offers Price API
- Add support for Flight Create Orders API
- Add support for Trip Purpose Prediction API
- E_reputation not working HOT 1
- hotel_offers_by_hotel not working properly HOT 2
- Add support for the retrieve endpoint of Points of Interest
- .post works only with JSON not hash
- Add support for Safe Place API
- What is the maxFlightTime? HOT 1
- Add support for Flight Availabilities Search API
- Add support for Branded Fares Upsell API
- Add support for Travel Restrictions API HOT 1
- Add support for Airport Routes V1
- Add Support of Hotel List V1.0 API
- Add support of City Search API V1.0
- Add support of Travel Restrictions V2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amadeus-ruby.