alquemie / zillow-api
Zillow API 的简单 PHP 封装
1.6.0
2018-10-23 22:39 UTC
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: 6.*
Requires (Dev)
- phpunit/phpunit: 7.*
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 许可证。