PHP code example of henzeb / housepedia-data-intelligence
1. Go to this page and download the library: Download henzeb/housepedia-data-intelligence 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/ */
henzeb / housepedia-data-intelligence example snippets
use Henzeb\Housepedia\Data\Intelligence\Client;
$client = Client::create($apiKey);
$address = $client->addresses()
->withPostcode('1076LJ', 12, '2')
->find();
$address->street();
$address->city();
$suggestions = $client->addresses()
->suggest('1076LJ 12-2'); // Results<AddressSuggestion>
$valuation = $client->properties()
->withPostcode('1076LJ', 12, '2')
->valuation();
$valuation->valuation()->value(); // 888264