Download the PHP package amirhamdy/giata-hotels-api without Composer
On this page you can find all versions of the php package amirhamdy/giata-hotels-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package giata-hotels-api
Giata Hotels API
Install
composer require amirhamdy/giata-hotels-api
For versions < 5.5 of Laravel, add the service provider of the package and alias the package.
Open your config/app.php
file.
Add a new line to the providers
array:
GiataHotels\GiataHotelsServiceProvider::class
And add a new line to the aliases
array:
'GiataAPI' => GiataHotels\GiataHotelsFacade::class
Now you're ready to start using the GiataAPI in your application.
Quick start
Usage
This package gives you the following methods to use:
- Get All Hotels By Country Code
- Get A Hotel By Giata ID
- Get Hotel's Images By Giata ID
- Get Hotel's Translations By Giata ID
GiataAPI::getHotelsByCountry()
Getting all hotels in a country, you can just use the getHotelsByCountry()
method.
-
In its most basic form you can specify the countryCode.
- As an optional second parameter you can pass it, the multi
boolean
option so you can get all information for each hotel in one request.
GiataAPI::getHotelByGiataId()
- Getting hotel's information using its Giata ID.
GiataAPI::getImagesByGiataId()
- Getting hotel's images using its Giata ID.
GiataAPI::getTextsByGiataId()
-
Getting hotel's translations in a specific language
default='ar
using its Giata ID. - As a second parameter you can pass the language.
Other packages you may be interested in
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.