Documentation

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

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
link
https://developers.amadeus.com/self-service/category/hotel/api-doc/hotel-list/api-reference
throws
ResponseException

when an exception occurs

Return values
array<string|int, Hotel>

an API resource

Search results