ByCity
in package
A namespaced client for the "/v1/reference-data/locations/hotels/by-city" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getReferenceData()->getLocations()->getHotels()->getByCity();
Table of Contents
- $amadeus : Amadeus
- __construct() : mixed
- Constructor
- get() : array<string|int, Hotel>
- Hotel List API:
Properties
$amadeus
private
Amadeus
$amadeus
Methods
__construct()
Constructor
public
__construct(Amadeus $amadeus) : mixed
Parameters
- $amadeus : Amadeus
Return values
mixed —get()
Hotel List API:
public
get(array<string|int, mixed> $params) : array<string|int, Hotel>
Returns a list of relevant hotels inside a city.
$amadeus->getReferenceData()->getLocations()->getHotels()->getByCity->get( ["cityCode" => "PAR"] );
Parameters
- $params : array<string|int, mixed>
-
the parameters to send to the API
Tags
Return values
array<string|int, Hotel> —an API resource