Airlines
in package
A namespaced client for the "/v1/reference-data/airlines" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getReferenceData()->getAirlines();
Table of Contents
- $amadeus : Amadeus
- __construct() : mixed
- get() : array<string|int, Airline>
- Airline Code Lookup API:
Properties
$amadeus
private
Amadeus
$amadeus
Methods
__construct()
public
__construct(Amadeus $amadeus) : mixed
Parameters
- $amadeus : Amadeus
Return values
mixed —get()
Airline Code Lookup API:
public
get(array<string|int, mixed> $params) : array<string|int, Airline>
Returns a list of Airlines information.
$amadeus->getReferenceData()->getAirlines()->get( ["airlineCodes" => "BA"] );
Parameters
- $params : array<string|int, mixed>
Tags
Return values
array<string|int, Airline> —an API resource