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
$amadeus
private
Amadeus
$amadeus
Methods
__construct()
public
__construct(Amadeus $amadeus) : mixed
Parameters
- $amadeus : Amadeus
Return values
mixed —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
Return values
array<string|int, HotelOffers> —an API resource