Documentation

Flights
in package

A namespaced client for the "/v2/schedule/flights" endpoints.

Access via the Amadeus client object.

$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getSchedule()->getFlights();

Table of Contents

$amadeus  : Amadeus
__construct()  : mixed
Constructor
get()  : array<string|int, DatedFlight>
On-Demand Flight Status API:

Properties

Methods

__construct()

Constructor

public __construct(Amadeus $amadeus) : mixed
Parameters
$amadeus : Amadeus
Return values
mixed

get()

On-Demand Flight Status API:

public get(array<string|int, mixed> $params) : array<string|int, DatedFlight>

Retrieve a unique flight by search criteria..

$amadeus->getSchedule()->getFlights()->get( ["carrierCode"=>"IB", "flightNumber"=>532, "scheduledDepartureDate"=>"2022-09-23"] );

Parameters
$params : array<string|int, mixed>

the parameters to send to the API

Tags
link
https://developers.amadeus.com/self-service/category/air/api-doc/on-demand-flight-status/api-reference
throws
ResponseException

when an exception occurs

Return values
array<string|int, DatedFlight>

an API resource

Search results