Documentation

HotelOffers
in package

A namespaced client for the "/v3/shopping/hotel-offers" endpoints.

Access via the Amadeus client object.

$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getShopping()->getHotelOffers();

Table of Contents

$amadeus  : Amadeus
__construct()  : mixed
get()  : array<string|int, HotelOffers>
Hotel Search API:

Properties

Methods

get()

Hotel Search API:

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

Search for hotels and retrieve availability and rates information.

$amadeus->getShopping()->getHotelOffers()->get( array( "hotelId" => "MCLONGHM", "adults" => 1, "checkInDate" => "2022-12-29", "roomQuantity" => 1, "paymentPolicy" => "NONE", "bestRateOnly" => true ) );

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

when an exception occurs

Return values
array<string|int, HotelOffers>

an API resource

Search results