Skip to content

Commit

Permalink
modified example
Browse files Browse the repository at this point in the history
  • Loading branch information
minjikarin committed Jun 17, 2024
1 parent 3c84af4 commit a42eba1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,17 @@ List of supported endpoints
# Hotel Name Autocomplete
amadeus.reference_data.locations.hotel.get(keyword='PARI', subType=[Hotel.HOTEL_GDS, Hotel.HOTEL_LEISURE])
# Hotel Booking
# Hotel Booking V2
# The offerId comes from the hotel_offer above
amadeus.booking.hotel_bookings.post(offerId, guests, payments)
response = amadeus.booking.hotel_orders.post(
guests=guests,
travel_agent=travel_agent,
room_associations=room_associations,
payment=payment)
# Hotel Orders
amadeus.booking.hotel_orders.post(guests=guests, travel_agent=travel_agent)
# Hotel Booking V1
# The offerId comes from the hotel_offer above
amadeus.booking.hotel_bookings.post(offerId, guests, payments)
# Hotel Ratings
# What travelers think about this hotel?
Expand Down
2 changes: 1 addition & 1 deletion amadeus/booking/_hotel_orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def post(self,
payment={},
arrival_information={}):
'''
Create Hotel Order
Book hotel(s) via Hotel Booking API V2
.. code-block:: python
Expand Down

0 comments on commit a42eba1

Please sign in to comment.