PHP code example of antistatique / pricehubble-php-sdk
1. Go to this page and download the library: Download antistatique/pricehubble-php-sdk 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/ */
antistatique / pricehubble-php-sdk example snippets
use \Antistatique\Pricehubble\Pricehubble;
$pricehubble = new Pricehubble();
$pricehubble->authenticate($username, $password)
$response = $pricehubble->valuation()->full([
'dealType' => 'sale',
'valuationInputs' => [
[
'property' => [
'location' => [
'address' => [
'postCode' => '8037',
'city' => 'Zürich',
'street' => 'Nordstrasse',
'houseNumber' => '391'
],
],
'buildingYear' => 1850,
'livingArea' => 800,
'propertyType' => [
'code' => 'apartment'
],
],
],
],
'countryCode' => 'CH',
]);
print_r($response);
$pricehubble = new Pricehubble();
$pricehubble->authenticate($username, $password)
$response = $pricehubble->valuation()->light([
'dealType' => 'sale',
'property' => [
'location' => [
'address' => [
'postCode' => '8037',
'city' => 'Zürich',
'street' => 'Nordstrasse',
'houseNumber' => '391'
],
],
'buildingYear' => 1850,
'livingArea' => 800,
'propertyType' => [
'code' => 'apartment'
],
],
'countryCode' => 'CH',
]);
print_r($response);
$pricehubble = new Pricehubble();
$pricehubble->authenticate($username, $password)
$response = $pricehubble->pointsOfInterest()->gather([
'coordinates' => [
'latitude' => 47.3968601,
'longitude' => 8.5153549,
],
'radius' => 1000,
'category' => [
'education',
'leisure',
],
'subcategory' => [
'kindergarten',
'playground',
],
'offset' => 0,
'limit' => 10,
'countryCode' => 'CH',
]);
print_r($response);
echo $pricehubble->getLastError();
print_r($pricehubble->getLastResponse());
print_r($pricehubble->getLastRequest());
composer