You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Amadeus provides a set of APIs for the travel industry. Flights, Hotels, Locations and more.
7
-
8
-
For more details see the [Java
9
-
documentation](https://amadeus4dev.github.io/amadeus-java/) on
10
-
[Amadeus.com](https://developers.amadeus.com).
6
+
Amadeus provides a rich set of APIs for the travel industry. For more details, check out the [Amadeus for Developers Portal](https://developers.amadeus.com) or the [SDK class reference](https://amadeus4dev.github.io/amadeus-java/).
11
7
12
8
## Installation
13
9
14
-
This library requires Java 1.7+ and the the [Gson library](https://github.com/google/gson).
15
-
16
-
With __Maven__ you need to add to your pom.xml
17
-
```xml
18
-
<dependency>
19
-
<groupId>com.google.code.gson</groupId>
20
-
<artifactId>gson</artifactId>
21
-
<version>2.8.5</version>
22
-
</dependency>
23
-
```
24
-
25
-
With __Gradle__
26
-
27
-
Available in `jcenter()` and `mavenCentral()`
28
-
```js
29
-
implementation 'com.google.code.gson:gson:2.8.5'
30
-
```
31
-
32
-
You can install the SDK via Maven or Gradle.
10
+
This library requires Java 1.7+ and the [Gson library](https://github.com/google/gson). You can install the SDK via Maven or Gradle:
To send make your first API call you will need to [register for an Amadeus
50
-
Developer Account](https://developers.amadeus.com/create-account) and set up
51
-
your first application.
27
+
To make your first API call, you will need to [register](https://developers.amadeus.com/register) for an Amadeus Developer Account and [set up your first application](https://developers.amadeus.com/my-apps).
52
28
53
29
```java
54
30
importcom.amadeus.Amadeus;
@@ -75,7 +51,7 @@ public class AmadeusExample {
75
51
76
52
## Initialization
77
53
78
-
The client can be initialized directly.
54
+
The client can be initialized directly:
79
55
80
56
```java
81
57
//Initialize using parameters
@@ -84,21 +60,17 @@ Amadeus amadeus = Amadeus
84
60
.build();
85
61
```
86
62
87
-
Alternatively it can be initialized without any parameters if the environment
88
-
variables `AMADEUS_CLIENT_ID` and `AMADEUS_CLIENT_SECRET` are present.
63
+
Alternatively, it can be initialized without any parameters if the environment variables `AMADEUS_CLIENT_ID` and `AMADEUS_CLIENT_SECRET` are present.
Amadeus has a large set of APIs, and our documentation is here to get you started. Head over to our [reference documentation](https://amadeus4dev.github.io/amadeus-java/) for in-depth information about every SDK method, its arguments and return types.
123
85
124
86
## Making API calls
125
87
126
-
This library conveniently maps every API path to a similar path.
127
-
128
-
For example, `GET /v2/reference-data/urls/checkin-links?airlineCode=BA` would be:
88
+
This library conveniently maps every API path to a similar path. For example, `GET /v2/reference-data/urls/checkin-links?airlineCode=BA` would be:
Additionally, to enable more verbose logging, you can set the appropriate level
201
-
on your own logger, though the easiest way would be to enable debugging via a
202
-
parameter on initialization, or using the `AMADEUS_LOG_LEVEL` environment
203
-
variable.
157
+
Additionally, to enable more verbose logging, you can set the appropriate level on your own logger. The easiest way would be to enable debugging via a parameter during initialization, or using the `AMADEUS_LOG_LEVEL` environment variable.
0 commit comments