antonioortegajr/idx-broker-api

package for calling the IDX Broker API using Guzzle

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

This package is not auto-updated.

Last update: 2025-01-18 21:19:27 UTC


README

Latest Stable Version Latest Unstable Version License Total Downloads

Package for calling the IDX Broker API.

Contributing

Only IDX peeps at this time.

Install

Via Composer

$ composer require antonioortegajr/idx-broker-api

#Usage

Example:

<?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);