ByHotels
in package
A namespaced client for the "/v1/reference-data/locations/hotels/by-hotels" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getReferenceData()->getLocations()->getHotels()->getByHotels();
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 hotels result of the search using GeoCode.
$amadeus->getReferenceData()->getLocations()->getHotels()->getByHotels->get( ["hotelIds" => "ACR"] );
Parameters
- $params : array<string|int, mixed>
-
the parameters to send to the API
Tags
Return values
array<string|int, Hotel> —an API resource