IDX API package
, (*1)
Package for calling the IDX Broker API., (*2)
Contributing
Only IDX peeps at this time., (*3)
Install
Via Composer
bash
$ composer require antonioortegajr/idx-broker-api
, (*4)
Usage
Example:
```php
<?php, (*5)
/*
* Example use
* Pass your API endpoint and the method to the apiCall()
*/, (*6)
require_once "vendor/antonioortegajr/idx-broker-api/vendor/autoload.php";
require_once "vendor/antonioortegajr/idx-broker-api/src/idxApiClass.php";, (*7)
use \antonioortegajr\idxAPI as idxCall;, (*8)
$apiKey = 'yourApiKeyHere';, (*9)
// GET Not all methods are available in this version
$requestMethod = 'GET';, (*10)
//available components leads, clients, partners, mls
$apiComponent = 'leads';, (*11)
$apiMethod = 'lead';, (*12)
$apiVersion = '1.0.4';, (*13)
$apiClass = new idxCall\idxApiClass();, (*14)
echo $apiClass::apiCall($requestMethod, $apiKey, $apiComponent, $apiMethod, $apiVersion);, (*15)