amadeus4dev / amadeus-code-examples

Self-contained examples for Amadeus REST APIs
MIT License
83 stars 39 forks source link

Issue #63

Closed andrewrutter closed 6 months ago

andrewrutter commented 6 months ago

Trying to call the following which is pulled from the nodejs example but it looks like the hotels property is not set in the latest version. It is failing with an error
Cannot read properties of undefined (reading 'byGeocode')

Looking in the code and don't see any reference to byGeocode anywhere so it seems this is not supported. Thanks in advance

amadeus.referenceData.locations.hotels.byGeocode.get({
      latitude: 48.83152,
      longitude: 2.24691
    })
andrewrutter commented 6 months ago

Looks like it was just an old version of the Amadeus client linked in the examples. Removed and re-installed the package and its working as expected now