@@ -94,10 +94,10 @@ This library conveniently maps every API path to a similar path. For example, `G
9494amadeus. referenceData. urls. checkinLinks. get(Params . with(" airlineCode" , " BA" ));
9595```
9696
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:
9898
9999``` java
100- amadeus. shopping . hotelOffer( " XXX " ). get(... );
100+ amadeus. referenceData . locations . pointOfInterest( " 9CB40CB5D0 " ). get();
101101```
102102
103103You 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(
268268 .and(" period" , " 2017" )
269269 .and(" direction" , BusiestPeriod . ARRIVING ));
270270
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-
287271// Points of Interest
288272// What are the popular places in Barcelona (based a geo location and a radius)
289273PointOfInterest [] pointsOfInterest = amadeus. referenceData. locations. pointsOfInterest. get(Params
@@ -444,13 +428,20 @@ Hotel[] result = amadeus.referenceData.locations.hotel.get(Params
444428HotelOfferSearch [] offers = amadeus. shopping. hotelOffersSearch. get(Params
445429 .with(" hotelIds" , " MCLONGHM" )
446430 .and(" adults" , 1 )
447- .and(" checkInDate" , " 2022-11 -22" )
431+ .and(" checkInDate" , " 2023-05 -22" )
448432 .and(" roomQuantity" , 1 )
449433 .and(" paymentPolicy" , " NONE" )
450434 .and(" bestRateOnly" , true ));
451435// Get hotel offer pricing by offer id
452436HotelOfferSearch offer = amadeus. shopping. hotelOfferSearch(" QF3MNOBDQ8" ). get();
453437
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+
454445// Airline Routes
455446// Get airline destinations
456447Destination [] destinations = amadeus. airline. destinations. get(Params
0 commit comments