为 Zillow API 简单的 PHP 封装

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

This package is not auto-updated.

Last update: 2024-09-29 08:06:23 UTC


README

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

要求

依赖 PHP 5.4+,Guzzle 6+。

##安装

在您的 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 许可证。