alquemie/zillow-api

Zillow API 的简单 PHP 封装

1.6.0 2018-10-23 22:39 UTC

This package is auto-updated.

Last update: 2024-09-24 12:28:50 UTC


README

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

需求

依赖于 PHP 5.4+ 和 Guzzle 6+。

## 安装

alquemie/zillow-api 添加到 composer.json 文件中的 require 依赖项

php composer.phar require alquemie/zillow-api:1.6.0

用法

use ZillowApi\ZillowApiClient;

$client = new ZillowApiClient('zws-id');
use ZillowApi\ZillowMortgageApiClient;

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

使用特定的 API 调用方法发送请求

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

有效的 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

有效的 Zillow Mortgage API 调用包括

  • zillowLenderReviews

许可

MIT 许可证。