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.
Wie bekomme ich die Hotelcodes für die angegebene Stadt von der Amadeus Hotel API? ⇐ Python
-
- Similar Topics
- Replies
- Views
- Last post