Amadeus
in package
The Amadeus API client. To initialize, use the builder as follows:
$amadeus = Amadeus::builder("REPLACE_BY_YOUR_API_KEY", "REPLACE_BY_YOUR_API_SECRET")->build();
Table of Contents
- VERSION = "0.2.0"
- The SDK version.
- $airport : Airport
- A namespaced client for the "/airport" endpoints.
- $booking : Booking
- A namespaced client for the "/booking" endpoints.
- $client : HTTPClient
- $configuration : Configuration
- $dutyOfCare : DutyOfCare
- A namespaced client for the "/duty-of-care" endpoints.
- $eReputation : EReputation
- A namespaced client for the "/e-reputation" endpoints.
- $referenceData : ReferenceData
- A namespaced client for the "/reference-data" endpoints.
- $schedule : Schedule
- A namespaced client for the "/schedule" endpoints.
- $shopping : Shopping
- A namespaced client for the "/shopping" endpoints.
- $travel : Travel
- A namespaced client for the "/travel" endpoints.
- __construct() : mixed
- builder() : AmadeusBuilder
- Creates an AmadeusBuilder object that can be used to build an Amadeus.
- getAirport() : Airport
- Get a namespaced client for the "airport" endpoints.
- getBooking() : Booking
- Get a namespaced client for the "/booking" endpoints.
- getClient() : BasicHTTPClient|HTTPClient
- Get the HTTP Client
- getConfiguration() : Configuration
- getDutyOfCare() : DutyOfCare
- Get a namespaced client for the "/dutyOfCare" endpoints.
- getEReputation() : EReputation
- Get a namespaced client for the "/e-reputation" endpoints.
- getReferenceData() : ReferenceData
- Get a namespaced client for the "/referenceData" endpoints.
- getSchedule() : Schedule
- Get a namespaced client for the "/schedule" endpoints.
- getShopping() : Shopping
- Get a namespaced client for the "/shopping" endpoints.
- getTravel() : Travel
- Get a namespaced client for the "/travel" endpoints.
Constants
VERSION
The SDK version.
public
mixed
VERSION
= "0.2.0"
Properties
$airport
A namespaced client for the "/airport" endpoints.
private
Airport
$airport
$booking
A namespaced client for the "/booking" endpoints.
private
Booking
$booking
$client
private
HTTPClient
$client
$configuration
private
Configuration
$configuration
$dutyOfCare
A namespaced client for the "/duty-of-care" endpoints.
private
DutyOfCare
$dutyOfCare
$eReputation
A namespaced client for the "/e-reputation" endpoints.
private
EReputation
$eReputation
$referenceData
A namespaced client for the "/reference-data" endpoints.
private
ReferenceData
$referenceData
$schedule
A namespaced client for the "/schedule" endpoints.
private
Schedule
$schedule
$shopping
A namespaced client for the "/shopping" endpoints.
private
Shopping
$shopping
$travel
A namespaced client for the "/travel" endpoints.
private
Travel
$travel
Methods
__construct()
public
__construct(Configuration $configuration) : mixed
Parameters
- $configuration : Configuration
Return values
mixed —builder()
Creates an AmadeusBuilder object that can be used to build an Amadeus.
public
static builder([null|string $clientId = null ][, null|string $clientSecret = null ]) : AmadeusBuilder
$amadeus = Amadeus::builder("CLIENT_ID", "CLIENT_SECRET")->build();
Parameters
- $clientId : null|string = null
-
Your API Client ID
- $clientSecret : null|string = null
-
Your API Client Secret
Return values
AmadeusBuilder —getAirport()
Get a namespaced client for the "airport" endpoints.
public
getAirport() : Airport
Return values
Airport —getBooking()
Get a namespaced client for the "/booking" endpoints.
public
getBooking() : Booking
Return values
Booking —getClient()
Get the HTTP Client
public
getClient() : BasicHTTPClient|HTTPClient
Return values
BasicHTTPClient|HTTPClient —getConfiguration()
public
getConfiguration() : Configuration
Return values
Configuration —getDutyOfCare()
Get a namespaced client for the "/dutyOfCare" endpoints.
public
getDutyOfCare() : DutyOfCare
Return values
DutyOfCare —getEReputation()
Get a namespaced client for the "/e-reputation" endpoints.
public
getEReputation() : EReputation
Return values
EReputation —getReferenceData()
Get a namespaced client for the "/referenceData" endpoints.
public
getReferenceData() : ReferenceData
Return values
ReferenceData —getSchedule()
Get a namespaced client for the "/schedule" endpoints.
public
getSchedule() : Schedule
Return values
Schedule —getShopping()
Get a namespaced client for the "/shopping" endpoints.
public
getShopping() : Shopping
Return values
Shopping —getTravel()
Get a namespaced client for the "/travel" endpoints.
public
getTravel() : Travel