FlightAvailabilities
in package
A namespaced client for the "/v1/shopping/availability/flight-availabilities" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getShopping()->getAvailability()->getFlightAvailabilities();
Table of Contents
- $amadeus : Amadeus
- __construct() : mixed
- Constructor
- post() : array<string|int, FlightAvailability>
- Flight Availabilities Search API:
Properties
$amadeus
private
Amadeus
$amadeus
Methods
__construct()
Constructor
public
__construct(Amadeus $amadeus) : mixed
Parameters
- $amadeus : Amadeus
Return values
mixed —post()
Flight Availabilities Search API:
public
post(string $body) : array<string|int, FlightAvailability>
The Amadeus Flight Availability API provides a list of flights with seats for sale, and the quantity of seats available in different fare classes on a given itinerary. Additional information such as carrier and aircraft information, the departure and arrival terminals, schedule, and route are also provided.
$amadeus->getShopping()->getAvailability()->getFlightAvailabilities()->post(body);
Parameters
- $body : string
-
the parameters to send to the API as a JsonObject
Tags
Return values
array<string|int, FlightAvailability> —an API resource