Documentation

Hotel
in package

A namespaced client for the "/v1/reference-data/locations/hotel" endpoints.

Access via the Amadeus client object.

$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getReferenceData()->getLocations()->getHotel();

Table of Contents

$amadeus  : Amadeus
__construct()  : mixed
get()  : array<string|int, HotelNameAutocomplete>
Hotel Name Autocomplete API

Properties

Methods

__construct()

public __construct(Amadeus $amadeus) : mixed
Parameters
$amadeus : Amadeus
Return values
mixed

get()

Hotel Name Autocomplete API

public get(array<string|int, mixed> $params) : array<string|int, HotelNameAutocomplete>

$amadeus->getReferenceData()->getLocations()->getHotel()->get( ["keyword"=>"PARI", "subType"=>"HOTEL_GDS"] );

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-name-autocomplete/api-reference
throws
ResponseException

when an exception occurs

Return values
array<string|int, HotelNameAutocomplete>

an API resource

Search results