Closed lzhengem closed 5 years ago
So it looks like its not an issue with the python API, this is an issue with amadeus returning data:
https://developers.amadeus.com/self-service/category/203/api-doc/5/api-docs-and-example/10003
When testing this out, with origin='NYC', destination='MAD' it is return 404. However, it will work for SFO to NYC:
https://test.api.amadeus.com/v1/shopping/flight-dates?origin=SFO&destination=NYC
Hi!
You are right, we had a technical issue with the cache we use for the test environment of this API. We are restoring the data in test, for the moment NYC is not in the dataset (as origin).
In any case, the dataset we have in the test environment is much smaller and contains only cached data. If you want a much bigger coverage and refreshed data you will need to move to production.
By beg of next week, we will publish the new list of origins and destinations we are supporting in test.
So far you can use: SFO -> PSP SFO -> PDX SFO -> MKC SFO -> BOS SFO -> NYC
BOS -> BNA BOS -> BUF BOS ->PHL BOS -> CLE BOS -> SNA
MAD -> LON MAD -> ALC MAD -> GOA MAD -> MUC MAD -> TUN MAD -> WAW
MUC -> BKK MUC -> SIN MUC -> SAN MUC -> DEN
It's just a subset of the data we have in test, hope it should be enough until we publish the full list.
Regards, Anthony
You can find the current list here.
Description
Attempting to run code from README (https://github.com/amadeus4dev/amadeus-python) fails
Flight Cheapest Date Search: amadeus.shopping.flight_dates.get(origin='NYC', destination='MAD')
Steps to Reproduce
amadeus = Client( client_id=AMADEUS_ID, client_secret=AMADEUS_SECRET )
try: response = amadeus.shopping.flight_dates.get(origin='NYC', destination='MAD') print(response.data) except ResponseError as error: print(error) except Exception as e: print(e)