amadeus4dev / amadeus-node

Node library for the Amadeus Self-Service travel APIs
https://developers.amadeus.com
MIT License
191 stars 66 forks source link

Not possbile to call locations.hotels.byCity.get #198

Closed renatoBrancato closed 1 year ago

renatoBrancato commented 1 year ago

Description

Not possbile to call locations.hotels.byCity.get with rating param as mentioned as the documentation permit: https://developers.amadeus.com/self-service/category/hotels/api-doc/hotel-list/api-reference

Steps to Reproduce

call node funcion like:

amadeus.referenceData.locations.hotels.byCity.get({ cityCode: city, ratings:'1,2'

}

Expected Behavior: retrive hotels

Actual Behavior: empty object returned

Stable Behavior? [What percentage of the time does it reproduce?]

minjikarin commented 1 year ago

Hello @renatoBrancato, which city code did you use?

I have managed to get a response by calling as below.

amadeus.referenceData.locations.hotels.byCity.get({ cityCode: "PAR", ratings:'1,2'})

minjikarin commented 1 year ago

Closed the issue since no response :)