PHP code example of alquemie / zillow-api

1. Go to this page and download the library: Download alquemie/zillow-api 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/ */

    

alquemie / zillow-api example snippets


use ZillowApi\ZillowApiClient;

$client = new ZillowApiClient('zws-id');

use ZillowApi\ZillowMortgageApiClient;

$client = new ZillowMortgageApiClient('partner-id');

// Run GetSearchResults
$response = $client->execute(
    'GetSearchResults', 
    [
        'address' => '1600 Pennsylvania Ave NW', 
        'citystatezip' => 'Washington DC 20006'
    ]
);

// Run GetSearchResults
$response = $client->execute(
    'zillowLenderReviews', 
    [
        'nmlsId' => '12345'
    ]
);
sh
php composer.phar