amadeus4dev-examples / amadeus-php

PHP library for the Amadeus Self-Service APIs
https://amadeus4dev-examples.github.io/amadeus-php/
MIT License
12 stars 14 forks source link

modify the way to get resource by id for Hotel Search API #51

Closed xianqiliu closed 2 years ago

xianqiliu commented 2 years ago

for API that supports selecting a resource by ID, the way should be passing the ID into the singular path. For example, GET /v2/shopping/hotel-offers/XXX should be:

$amadeus->getShopping().getHotelOffer("XXX")->get();