brentmullen/zillow-api

简单的Zillow API PHP封装

v1.0.1 2017-06-12 13:54 UTC

This package is auto-updated.

Last update: 2024-09-05 19:52:37 UTC


README

这是一个Zillow API服务的简单PHP封装。

要求

依赖于PHP 5.4+和Guzzle 4+。

##安装

在您的composer.json文件中将brentmullen/zillow-api添加为require依赖项

php composer.phar require brentmullen/zillow-api:1.0.0

用法

use ZillowApi\ZillowApiClient;

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

使用特定的API调用方法进行请求

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

任何Zillow API调用都适用。有效的方法包括:

  • GetZestimate
  • GetSearchResults
  • GetChart
  • GetComps
  • GetDeepComps
  • GetDeepSearchResults
  • GetUpdatedPropertyDetails
  • GetDemographics
  • GetRegionChildren
  • GetRegionChart
  • GetRateSummary
  • GetMonthlyPayments
  • CalculateMonthlyPaymentsAdvanced
  • CalculateAffordability
  • CalculateRefinance
  • CalculateAdjustableMortgage
  • CalculateMortgageTerms
  • CalculateDiscountPoints
  • CalculateBiWeeklyPayment
  • CalculateNoCostVsTraditional
  • CalculateTaxSavings
  • CalculateFixedVsAdjustableRate
  • CalculateInterstOnlyVsTraditional
  • CalculateHELOC

许可

MIT许可。