redzjovi
composer require redzjovi/php-hotelbeds-hotel:dev-master
You can publish the migration
and the config/hotelbeds-php.php
with:
php artisan hotelbeds-hotel:install
phpunit --filter /test_get_languages$/
phpunit --group types
Add new connection database hotelbeds-hotel
in config/database.php
.
use RedzJovi\HotelbedsHotel\Client;
use Redzjovi\HotelbedsHotel\Requests\Types\Languages\IndexRequest as TypesLanguagesIndexRequest;
$client = new Client(
getenv('HOTELBEDS_HOTEL_API_KEY'),
getenv('HOTELBEDS_HOTEL_SECRET'),
getenv('HOTELBEDS_HOTEL_ENVIRONMENT')
);
$request = new TypesLanguagesIndexRequest();
$response = $$client->getLanguages($request);