1. Go to this page and download the library: Download dwmsw/genesislive 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/ */
dwmsw / genesislive example snippets
$api = new dwmsw\genesislive\Search('YOUR API KEY HERE');
// Set parameters
$params['division'] = 'Sales';
$params['priceto'] = 500000;
$params['type'] = 'House';
$params['BedroomsFrom'] = 3;
$params['BedroomsTo'] = 4;
// Make request
$api->setQueryString($params);
$api->doSearch();
$api->sendRequest();
// Get properties
$properties = $api->getProperties();
$api = new dwmsw\genesislive\Single('YOUR API KEY HERE');
// Set parameters
$params['PropertyID'] = $_GET['PropertyID'];
// Make request
$api->setQueryString($params);
$api->doSearch();
$api->sendRequest();
// Get property data
$property = $api->getProperty();
// Grab the URL
$src = dwmsw\genesislive\Image::getImageURL('MediaKey', 'Width', 'Height');
// Print the Image
printf('<img src="%s" alt="">', $src);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.