HotelBookings
in package
A namespaced client for the "/v1/booking/hotel-bookings" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getBooking()->getHotelBookings();
Table of Contents
- $amadeus : Amadeus
- __construct() : mixed
- Constructor
- post() : array<string|int, HotelBookingLight>
- Hotel Booking API:
Properties
$amadeus
private
Amadeus
$amadeus
Methods
__construct()
Constructor
public
__construct(Amadeus $amadeus) : mixed
Parameters
- $amadeus : Amadeus
Return values
mixed —post()
Hotel Booking API:
public
post(string $body) : array<string|int, HotelBookingLight>
The Hotel Booking API allows you to perform hotel booking.
$amadeus->getBooking()->getHotelBookings()->post($body);
Parameters
- $body : string
-
the parameters to send to the API as a String
Tags
Return values
array<string|int, HotelBookingLight> —an API resource