antonioortegajr/idx-broker-api

使用 Guzzle 调用 IDX Broker API 的包

v0.0.1 2016-08-27 21:58 UTC

This package is not auto-updated.

Last update: 2024-09-14 19:25:44 UTC


README

Latest Stable Version Latest Unstable Version License Total Downloads

调用 IDX Broker API 的包。

贡献

目前只有 IDX 人员在此。

安装

通过 Composer

$ composer require antonioortegajr/idx-broker-api

#使用

示例

<?php

/*
* Example use
* Pass your API endpoint and the method to the apiCall()
*/

require_once "vendor/antonioortegajr/idx-broker-api/vendor/autoload.php";
require_once "vendor/antonioortegajr/idx-broker-api/src/idxApiClass.php";

use \antonioortegajr\idxAPI as idxCall;

$apiKey = 'yourApiKeyHere';

// GET Not all methods are available in this version
$requestMethod = 'GET';

//available components leads, clients, partners, mls
$apiComponent = 'leads';

$apiMethod = 'lead';

$apiVersion = '1.0.4';

$apiClass = new idxCall\idxApiClass();

echo $apiClass::apiCall($requestMethod, $apiKey, $apiComponent, $apiMethod, $apiVersion);