Skip to content

Commit d295958

Browse files
authored
Merge pull request #39 from amadeus4dev/update-docs
Update readme (with valid data)
2 parents dfa85bc + 44e9eee commit d295958

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ FlightOffer[] flightOffers = amadeus.shopping.flightOffers.get(Params
229229
FlightOfferSearch[] flightOffersSearches = amadeus.shopping.flightOffersSearch.get(
230230
Params.with("originLocationCode", "SYD")
231231
.and("destinationLocationCode", "BKK")
232-
.and("departureDate", "2020-04-01")
233-
.and("returnDate", "2020-04-05")
232+
.and("departureDate", "2020-11-01")
233+
.and("returnDate", "2020-11-08")
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-04-01").and("max", "2"));
244+
.get(Params.with("origin", "MAD").and("destination", "NYC").and("departureDate", "2020-08-01").and("max", "2"));
245245

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

src/main/java/com/amadeus/shopping/FlightOffers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public FlightOffers(Amadeus client) {
4545
* amadeus.shopping.flightOffers.get(Params
4646
* .with("origin", "LHR")
4747
* .and("destination", "LAX")
48-
* .and("departureDate", "2017-12-24"));</pre>
48+
* .and("departureDate", "2020-08-01"));</pre>
4949
*
5050
* @param params the parameters to send to the API
5151
* @return an API response object

0 commit comments

Comments
 (0)