public class Amadeus extends HTTPClient
The Amadeus API client. To initialize, use the builder as follows:
Amadeus amadeus =
Amadeus.builder("REPLACE_BY_YOUR_API_KEY", "REPLACE_BY_YOUR_API_SECRET").build();
Or pass in environment variables directly:
Amadeus.builder(System.getenv()).build();
| Modifier and Type | Field and Description |
|---|---|
Airport |
airport
A namespaced client for the
/v1/airport endpoints. |
Analytics |
analytics
A namespaced client for the
/v1/analytics endpoints. |
Booking |
booking
A namespaced client for the
/v1/booking endpoints. |
DutyOfCare |
dutyOfCare
A namespaced client for the
/v1/duty-of-care endpoints. |
EReputation |
ereputation
A namespaced client for the
/v2/e-reputation endpoints. |
Location |
location
A namespaced client for the
/v1/location endpoints. |
Media |
media
A namespaced client for the
/v2/media endpoints. |
ReferenceData |
referenceData
A namespaced client for the
/v2/reference-data endpoints. |
Safety |
safety
A namespaced client for the
/v1/safety endpoints. |
Schedule |
schedule
A namespaced client for the
/v2/schedule endpoints. |
Shopping |
shopping
A namespaced client for the
/v1/shopping endpoints. |
Travel |
travel
A namespaced client for the
/v1/travel endpoints. |
static java.lang.String |
VERSION
The API version.
|
| Modifier and Type | Method and Description |
|---|---|
static Configuration |
builder(java.util.Map<java.lang.String,java.lang.String> environment)
Creates a builder object initialized with the environment variables that can be used to build
an Amadeus API com.amadeus.client.
|
static Configuration |
builder(@NonNull java.lang.String clientId,
@NonNull java.lang.String clientSecret)
Creates a builder object that can be used to build an Amadeus com.amadeus.client.
|
public static final java.lang.String VERSION
public ReferenceData referenceData
A namespaced client for the /v2/reference-data endpoints.
public Travel travel
A namespaced client for the /v1/travel endpoints.
public Shopping shopping
A namespaced client for the /v1/shopping endpoints.
public EReputation ereputation
A namespaced client for the /v2/e-reputation endpoints.
public Airport airport
A namespaced client for the /v1/airport endpoints.
public Booking booking
A namespaced client for the /v1/booking endpoints.
public Media media
A namespaced client for the /v2/media endpoints.
public Safety safety
A namespaced client for the /v1/safety endpoints.
public Schedule schedule
A namespaced client for the /v2/schedule endpoints.
public Analytics analytics
A namespaced client for the /v1/analytics endpoints.
public DutyOfCare dutyOfCare
A namespaced client for the /v1/duty-of-care endpoints.
public Location location
A namespaced client for the /v1/location endpoints.
public static Configuration builder(@NonNull @NonNull java.lang.String clientId, @NonNull @NonNull java.lang.String clientSecret)
Amadeus amadeus = Amadeus.builder("CLIENT_ID", "CLIENT_SECRET").build();
clientId - Your API com.amadeus.client credential IDclientSecret - Your API com.amadeus.client credential secretpublic static Configuration builder(java.util.Map<java.lang.String,java.lang.String> environment)
Amadeus amadeus = Amadeus.builder(System.getenv()).build();
environment - The system environment