@@ -94,10 +94,10 @@ This library conveniently maps every API path to a similar path. For example, `G
94
94
amadeus. referenceData. urls. checkinLinks. get(Params . with(" airlineCode" , " BA" ));
95
95
```
96
96
97
- Similarly, to select a resource by ID, you can pass in the ID to the ** singular** path. For example, ` GET /v2/shopping/hotel-offers/XXX ` would be:
97
+ Similarly, to select a resource by ID, you can pass in the ID to the ** singular** path. For example, ` GET v1/reference-data/locations/pois ` would be:
98
98
99
99
``` java
100
- amadeus. shopping . hotelOffer( " XXX " ). get(... );
100
+ amadeus. referenceData . locations . pointOfInterest( " 9CB40CB5D0 " ). get();
101
101
```
102
102
103
103
You can make any arbitrary API call as well directly with the ` .get ` method.
@@ -268,22 +268,6 @@ Period[] busiestPeriods = amadeus.travel.analytics.airTraffic.busiestPeriod.get(
268
268
.and(" period" , " 2017" )
269
269
.and(" direction" , BusiestPeriod . ARRIVING ));
270
270
271
- // Hotel Search API
272
- // Get list of hotels by city code
273
- HotelOffer [] offers = amadeus. shopping. hotelOffers. get(Params
274
- .with(" cityCode" , " MAD" ));
275
- // Get list of offers for a specific hotel
276
- HotelOffer hotelOffer = amadeus. shopping. hotelOffersByHotel. get(Params . with(" hotelId" , " BGLONBGB" ));
277
- // Confirm the availability of a specific offer
278
- HotelOffer offer = amadeus. shopping. hotelOffer(" 4BA070CE929E135B3268A9F2D0C51E9D4A6CF318BA10485322FA2C7E78C7852E" ). get();
279
-
280
- // Hotel Booking
281
- // The body can be a String version of your JSON or a JsonObject
282
- HotelBooking [] hotel = amadeus. booking. hotelBookings. post(body);
283
-
284
- // Hotel Ratings / Sentiments
285
- HotelSentiment [] hotelSentiments = amadeus. ereputation. hotelSentiments. get(Params . with(" hotelIds" , " ELONMFS,ADNYCCTB" ));
286
-
287
271
// Points of Interest
288
272
// What are the popular places in Barcelona (based a geo location and a radius)
289
273
PointOfInterest [] pointsOfInterest = amadeus. referenceData. locations. pointsOfInterest. get(Params
@@ -444,13 +428,20 @@ Hotel[] result = amadeus.referenceData.locations.hotel.get(Params
444
428
HotelOfferSearch [] offers = amadeus. shopping. hotelOffersSearch. get(Params
445
429
.with(" hotelIds" , " MCLONGHM" )
446
430
.and(" adults" , 1 )
447
- .and(" checkInDate" , " 2022-11 -22" )
431
+ .and(" checkInDate" , " 2023-05 -22" )
448
432
.and(" roomQuantity" , 1 )
449
433
.and(" paymentPolicy" , " NONE" )
450
434
.and(" bestRateOnly" , true ));
451
435
// Get hotel offer pricing by offer id
452
436
HotelOfferSearch offer = amadeus. shopping. hotelOfferSearch(" QF3MNOBDQ8" ). get();
453
437
438
+ // Hotel Booking
439
+ // The body can be a String version of your JSON or a JsonObject
440
+ HotelBooking [] hotel = amadeus. booking. hotelBookings. post(body);
441
+
442
+ // Hotel Ratings / Sentiments
443
+ HotelSentiment [] hotelSentiments = amadeus. ereputation. hotelSentiments. get(Params . with(" hotelIds" , " ELONMFS,ADNYCCTB" ));
444
+
454
445
// Airline Routes
455
446
// Get airline destinations
456
447
Destination [] destinations = amadeus. airline. destinations. get(Params
0 commit comments