Skip to content

Commit 8e3f746

Browse files
authored
Merge pull request #143 from amadeus4dev/addHotelList
Add hotel list API
2 parents b9e2a15 + 6b23ce9 commit 8e3f746

File tree

9 files changed

+13255
-231
lines changed

9 files changed

+13255
-231
lines changed

.DS_Store

6 KB
Binary file not shown.

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,24 @@ amadeus.travel.tripParserJobs('XXX').get()
340340
// To get the results of the job with ID 'XXX'
341341
amadeus.travel.tripParserJobs('XXX').result.get()
342342

343-
// Hotel Search API
343+
//Hotel List API
344+
//Get list of hotels by city code
345+
amadeus.referenceData.locations.hotels.byCity.get({
346+
cityCode: 'PAR'
347+
})
348+
349+
//Get List of hotels by Geocode
350+
amadeus.referenceData.locations.hotels.byGeocode.get({
351+
latitude: 48.83152,
352+
longitude: 2.24691
353+
})
354+
355+
//Get List of hotels by hotelIds
356+
amadeus.referenceData.locations.hotels.byHotels.get({
357+
hotelIds: 'ACPAR245'
358+
})
359+
360+
// Hotel Search API V2
344361
// Get list of hotels by city code
345362
amadeus.shopping.hotelOffers.get({
346363
cityCode : 'MAD'

0 commit comments

Comments
 (0)