Skip to content

Commit 875b5b6

Browse files
committed
fix examples in README.md
1 parent 542f41e commit 875b5b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,14 @@ FlightDate[] flightDates = amadeus.shopping.flightDates.get(Params
223223
FlightOffer[] flightOffers = amadeus.shopping.flightOffers.get(Params
224224
.with("origin", "NYC")
225225
.and("destination", "MAD")
226-
.and("departureDate", "2019-08-01"));
226+
.and("departureDate", "2020-04-01"));
227227

228228
// Flight Offer Search v2 GET
229229
FlightOfferSearch[] flightOffersSearches = amadeus.shopping.flightOffersSearch.get(
230230
Params.with("originLocationCode", "SYD")
231231
.and("destinationLocationCode", "BKK")
232-
.and("departureDate", "2020-01-01")
233-
.and("returnDate", "2020-01-05")
232+
.and("departureDate", "2020-04-01")
233+
.and("returnDate", "2020-04-05")
234234
.and("adults", 2)
235235
.and("max", 3));
236236

@@ -241,7 +241,7 @@ FlightOfferSearch[] flightOffersSearches = amadeus.shopping.flightOffersSearch.p
241241
// Flight Choice Prediction
242242
// Note that the example calls 2 APIs: Flight Low-fare Search & Flight Choice Prediction
243243
FlightOffer[] flightOffers = amadeus.shopping.flightOffers
244-
.get(Params.with("origin", "MAD").and("destination", "NYC").and("departureDate", "2020-01-01").and("max", "2"));
244+
.get(Params.with("origin", "MAD").and("destination", "NYC").and("departureDate", "2020-04-01").and("max", "2"));
245245

246246
// Using a JSonObject
247247
JsonObject result = flightOffers[0].getResponse().getResult();

0 commit comments

Comments
 (0)