Skip to content

Commit 4f7a426

Browse files
committed
add hotel list
1 parent f4ff98a commit 4f7a426

File tree

10 files changed

+13270
-232
lines changed

10 files changed

+13270
-232
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules
22
lib
33
coverage
4-
test.js
4+
app.js
55
docs
66
.vscode/

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)