ReferenceData
in package
A namespaced client for the "/referenceData" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getShopping();
Table of Contents
- $airlines : Airlines
- A namespaced client for the "/v1/reference-data/airlines" endpoints.
- $amadeus : Amadeus
- $locations : Locations
- A namespaced client for the "/v1/reference-data/locations" endpoints.
- $recommendedlocations : RecommendedLocations
- A namespaced client for the "/v1/reference-data/recommended-locations" endpoints.
- __construct() : mixed
- getAirlines() : Airlines
- Get a namespaced client for the "/v1/reference-data/airlines" endpoints.
- getLocation() : Location
- Get a namespaced client for the "/v1/reference-data/locations/:location_id" endpoints.
- getLocations() : Locations
- Get a namespaced client for the "/v1/reference-data/locations" endpoints.
- getRecommendedLocations() : RecommendedLocations
- Get a namespaced client for the "/v1/reference-data/recommended-locations" endpoints.
Properties
$airlines
A namespaced client for the "/v1/reference-data/airlines" endpoints.
private
Airlines
$airlines
$amadeus
private
Amadeus
$amadeus
$locations
A namespaced client for the "/v1/reference-data/locations" endpoints.
private
Locations
$locations
$recommendedlocations
A namespaced client for the "/v1/reference-data/recommended-locations" endpoints.
private
RecommendedLocations
$recommendedlocations
Methods
__construct()
public
__construct(Amadeus $amadeus) : mixed
Parameters
- $amadeus : Amadeus
Return values
mixed —getAirlines()
Get a namespaced client for the "/v1/reference-data/airlines" endpoints.
public
getAirlines() : Airlines
Return values
Airlines —getLocation()
Get a namespaced client for the "/v1/reference-data/locations/:location_id" endpoints.
public
getLocation(string $locationId) : Location
Parameters
- $locationId : string
Return values
Location —getLocations()
Get a namespaced client for the "/v1/reference-data/locations" endpoints.
public
getLocations() : Locations
Return values
Locations —getRecommendedLocations()
Get a namespaced client for the "/v1/reference-data/recommended-locations" endpoints.
public
getRecommendedLocations() : RecommendedLocations