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
$amadeus
private
Amadeus
$amadeus
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
Return values
array<string|int, DatedFlight> —an API resource