PHP code example of vgomes / daftapi
1. Go to this page and download the library: Download vgomes/daftapi library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vgomes / daftapi example snippets
php
$api = new DaftAPI('your_api_key_here');
$propsForSale = $api->sale();
php
$overseas = new DaftOverseas('_your_overseas_key_');
$properties = $overseas->properties([
'country' => DaftOverseas::SPAIN,
'max_price' => 500000,
'limit' => 5
])); // 5 properties on Spain with price under 500k
$property = $overseas->property(_your_property_id_);