Esempio n. 1
0
 public function testZWSID()
 {
     $client = new ZillowClient('xxxxx');
     $this->assertSame('xxxxx', $client->getZWSID());
 }
Esempio n. 2
0
<?php

namespace examples;

$path = dirname(dirname(__FILE__));
require_once $path . '/vendor/autoload.php';
use Zillow\ZillowClient;
$client = new ZillowClient('xxxxxx');
try {
    $client->GetZestimate(['zpid' => 19454424]);
} catch (Exception $e) {
    echo $e->getMessage();
}
if ($client->isSuccessful()) {
    echo 'OK';
    print_r($client->getResponse());
} else {
    echo $client->getStatusCode() . ':' . $client->getStatusMessage();
}
Esempio n. 3
0
<?php

namespace examples;

$path = dirname(dirname(__FILE__));
require_once $path . '/vendor/autoload.php';
use Zillow\ZillowClient;
$client = new ZillowClient('xxxxx');
try {
    $client->GetSearchResults(['address' => '14506 Swiss Ln', 'citystatezip' => 'Truckee CA 96161']);
} catch (Exception $e) {
    echo $e->getMessage();
}
if ($client->isSuccessful()) {
    echo 'OK';
    print_r($client->getResponse());
} else {
    echo $client->getStatusCode() . ':' . $client->getStatusMessage();
}
Esempio n. 4
0
<?php

namespace examples;

$path = dirname(dirname(__FILE__));
require_once $path . '/vendor/autoload.php';
use Zillow\ZillowClient;
$client = new ZillowClient('xxxxx');
try {
    $response = $client->GetPhotosById(19454424);
} catch (Exception $e) {
    echo $e->getMessage();
}
if ($client->isSuccessful()) {
    echo 'OK';
    print_r($client->getResponse());
    /*
    Array
    (
        [0] => http://photos1.zillowstatic.com/p_h/ISrbdvz6b0qgmb.jpg
        [1] => http://photos2.zillowstatic.com/p_h/IS16rb4jeo59n6r.jpg
        [2] => http://photos3.zillowstatic.com/p_h/ISrbdvz2cyico3.jpg
        [3] => http://photos1.zillowstatic.com/p_h/IS16rb4jim7hr4z.jpg
        [4] => http://photos2.zillowstatic.com/p_h/ISrbdvyyewa8pv.jpg
        [5] => http://photos3.zillowstatic.com/p_h/IS16rb4jmk9pv37.jpg
        [6] => http://photos1.zillowstatic.com/p_h/ISrbdvyugu24rn.jpg
        [7] => http://photos2.zillowstatic.com/p_h/IS16rb4jqibxz1f.jpg
        [8] => http://photos3.zillowstatic.com/p_h/ISrbdvyqiru0tf.jpg
        [9] => http://photos1.zillowstatic.com/p_h/IS16rb4juge62zn.jpg
        [10] => http://photos2.zillowstatic.com/p_h/ISrbdvymkplwv7.jpg
        [11] => http://photos3.zillowstatic.com/p_h/IS16rb4jyege6xv.jpg