PHP SDK
PHP SDK for the FrontBooker Distribution API.
Installation
composer require frontbooker/sdk-phpUsage
use FrontBooker\Sdk\FrontBookerClient;
$client = new FrontBookerClient([
'api_key' => 'fb_live_your_secret_key',
'base_url' => 'https://distribution-api.frontbooker.com/v1'
]);
$response = $client->searchProperties([
'destination' => 'Nairobi',
'limit' => 5
]);
print_r($response['data']['properties']);