Skip to content

Commit b515390

Browse files
authored
Update README.md
updates dates in example, add POST for Flight offers search
1 parent 7418fd1 commit b515390

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,19 +183,23 @@ amadeus.shopping.flightDates.get({
183183
destination : 'MUC'
184184
})
185185

186-
// Flight Offers Search
186+
// Flight Offers Search GET
187187
amadeus.shopping.flightOffersSearch.get({
188188
originLocationCode: 'SYD',
189189
destinationLocationCode: 'BKK',
190-
departureDate: '2021-08-01',
190+
departureDate: '2022-11-01',
191191
adults: '2'
192192
})
193193

194+
// Flight Offers Search POST
195+
A full example can be found at https://github.com/amadeus4dev/amadeus-code-examples
196+
amadeus.shopping.flightOffersSearch.post(body)
197+
194198
// Flight Offers Price
195199
amadeus.shopping.flightOffersSearch.get({
196200
originLocationCode: 'SYD',
197201
destinationLocationCode: 'BKK',
198-
departureDate: '2021-08-01',
202+
departureDate: '2022-11-01',
199203
adults: '1'
200204
}).then(function(response){
201205
return amadeus.shopping.flightOffers.pricing.post(
@@ -238,7 +242,7 @@ amadeus.booking.flightOrder('XXX').delete()
238242
amadeus.shopping.flightOffersSearch.get({
239243
originLocationCode: 'SYD',
240244
destinationLocationCode: 'BKK',
241-
departureDate: '2021-08-01',
245+
departureDate: '2022-11-01',
242246
adults: '1'
243247
}).then(function(response){
244248
return amadeus.shopping.seatmaps.post(
@@ -266,7 +270,7 @@ amadeus.shopping.flightOffers.upselling.post(body);
266270
amadeus.shopping.flightOffersSearch.get({
267271
originLocationCode: 'SYD',
268272
destinationLocationCode: 'BKK',
269-
departureDate: '2021-04-01',
273+
departureDate: '2022-11-01',
270274
adults: '2'
271275
}).then(function(response){
272276
return amadeus.shopping.flightOffers.prediction.post(
@@ -462,7 +466,7 @@ amadeus.travel.predictions.flightDelay.get({
462466
// Get the percentage of on-time flight departures from JFK
463467
amadeus.airport.predictions.onTime.get({
464468
airportCode: 'JFK',
465-
date: '2021-08-01'
469+
date: '2022-18-01'
466470
})
467471

468472
// Travel Recommendations
@@ -471,11 +475,11 @@ amadeus.referenceData.recommendedLocations.get({
471475
travelerCountryCode: 'FR'
472476
})
473477

474-
// Price Flight Analysis
478+
// Flight Price Analysis
475479
amadeus.analytics.itineraryPriceMetrics.get({
476480
originIataCode: 'MAD',
477481
destinationIataCode: 'CDG',
478-
departureDate: '2021-03-13',
482+
departureDate: '2022-03-13',
479483
})
480484

481485
```

0 commit comments

Comments
 (0)