Skip to content

Commit ca842f2

Browse files
author
Anthony Roux
committed
Update examples in README.md
1 parent e6bd4cc commit ca842f2

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ You can install the SDK via Maven or Gradle.
3434
<dependency>
3535
<groupId>com.amadeus</groupId>
3636
<artifactId>amadeus-java</artifactId>
37-
<version>1.0.1</version>
37+
<version>1.1.0</version>
3838
</dependency>
3939
```
4040
#### Gradle
4141
```js
42-
compile "com.amadeus:amadeus-java:1.0.1"
42+
compile "com.amadeus:amadeus-java:1.1.0"
4343
```
4444

4545
## Getting Started
@@ -208,23 +208,23 @@ Amadeus amadeus = Amadeus
208208
```java
209209
// Flight Cheapest Date Search
210210
FlightDate[] flightDates = amadeus.shopping.flightDates.get(Params
211-
.with("origin", "NCE")
212-
.and("destination", "PAR")
213-
.and("duration", 1));
211+
.with("origin", "LON")
212+
.and("destination", "FRA")
213+
.and("duration", 3));
214214

215215
// Flight Inspiration Search
216216
FlightDestination[] flightDestinations = amadeus.shopping.flightDestinations.get(Params
217-
.with("origin", "MAD"));
217+
.with("origin", "LON"));
218218

219219
// Flight Low-fare Search
220220
FlightOffer[] flightOffers = amadeus.shopping.flightOffers.get(Params
221221
.with("origin", "MAD")
222222
.and("destination", "OPO")
223-
.and("departureDate", "2018-07-08"));
223+
.and("departureDate", "2018-11-01"));
224224

225225
// Flight Check-in Links
226226
CheckinLink[] checkinLinks = amadeus.referenceData.urls.checkinLinks.get(Params
227-
.with("airline", "1X"));
227+
.with("airline", "BA"));
228228

229229
// Airline Code LookUp
230230
Airline[] airlines = amadeus.referenceData.airlines.get(Params
@@ -263,7 +263,7 @@ AirTraffic[] airTraffics = amadeus.travel.analytics.airTraffic.booked.get(Params
263263

264264
// Flight Busiest Traveling Period
265265
Period[] busiestPeriods = amadeus.travel.analytics.airTraffic.busiestPeriod.get(Params
266-
.with("cityCode", "PAR")
266+
.with("cityCode", "MAD")
267267
.and("period", "2017")
268268
.and("direction", BusiestPeriod.ARRIVING);
269269

src/main/java/com/amadeus/Amadeus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class Amadeus extends HTTPClient {
2020
/**
2121
* The API version.
2222
*/
23-
public static final String VERSION = "1.0.1";
23+
public static final String VERSION = "1.1.0";
2424

2525
/**
2626
* <p>

0 commit comments

Comments
 (0)