Documentation

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

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
link
https://developers.amadeus.com/self-service/category/air/api-doc/airline-code-lookup/api-reference
throws
ResponseException

when an exception occurs

Return values
array<string|int, Airline>

an API resource

Search results