Documentation

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

Methods

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

when an exception occurs

Return values
array<string|int, HotelBookingLight>

an API resource

Search results