PHP code example of enbisys / avm-client

1. Go to this page and download the library: Download enbisys/avm-client 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/ */

    

enbisys / avm-client example snippets



Enbisys\Avm\Model\AdditionalFeatures;
use Enbisys\Avm\Model\BuiltForm;
use Enbisys\Avm\Model\FloorLevel;
use Enbisys\Avm\Model\LeaseholdOrFreehold;
use Enbisys\Avm\Model\NewOrResale;
use Enbisys\Avm\Model\PropertyFeatures;
use Enbisys\Avm\Model\PropertyType;
use Enbisys\Avm\Model\RequiredFeatures;

$config = Enbisys\Avm\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'SET YOUR TOKEN HERE!');

$apiInstance = new Enbisys\Avm\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

$additional_features = new AdditionalFeatures();
$  print_r("\n");

    $valuation = $apiInstance->getValuation($property_features);
    print_r("price range from: " );
    print_r($valuation->getPriceRangeFrom());
    print_r(" - to: ");
    print_r($valuation->getPriceRangeTo());
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getFastValuation: ', $e->getMessage(), PHP_EOL;
}