Wie bekomme ich die Hotelcodes für die angegebene Stadt von der Amadeus Hotel API?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Wie bekomme ich die Hotelcodes für die angegebene Stadt von der Amadeus Hotel API?

by Anonymous » 16 Feb 2025, 15:19

Ich spreche Python nicht fließend und verstehe nicht klar, dass Amadeus -API -Python -Codes online eindeutig ist. Es ist eine laufende Arbeit. Die angegebene Stadt?
Ich verwende Google Colab. < /p>
!pip install amadeus
from amadeus import ResponseError, Client

amadeus = Client(
client_id='My ID',
client_secret='My secret'
)

try:
# Get list of Hotels by city code
hotels_by_city = amadeus.shopping.hotel_offers_search.get(
hotelIds='RTPAR001', adults='2')
except ResponseError as error:
raise error
print(hotels_by_city)
< /code>
Ich habe das verwendet, aber es funktioniert nicht.
Bitte helfen Sie. Hotelcodes, aber es funktioniert nicht.

Top