RecommendedLocations
in package
A namespaced client for the "/v1/reference-data/recommended-locations" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getReferenceData()->getRecommendedLocations();
Table of Contents
- $amadeus : Amadeus
- __construct() : mixed
- get() : array<string|int, Location>
- Travel Recommendations API:
Properties
$amadeus
private
Amadeus
$amadeus
Methods
__construct()
public
__construct(Amadeus $amadeus) : mixed
Parameters
- $amadeus : Amadeus
Return values
mixed —get()
Travel Recommendations API:
public
get(array<string|int, mixed> $params) : array<string|int, Location>
Returns a list of destination recommendations.
$amadeus->getReferenceData()->getRecommendedLocations()->get(["cityCodes"=>"PAR", "travelerCountryCode"=>"FR"]);
Parameters
- $params : array<string|int, mixed>
-
the parameters to send to the API
Tags
Return values
array<string|int, Location> —an API resource