antonioortegajr / idx-broker-api
package for calling the IDX Broker API using Guzzle
v0.0.1
2016-08-27 21:58 UTC
Requires
- php: >=5.5.0
- guzzlehttp/guzzle: ~5.0
Requires (Dev)
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2025-01-18 21:19:27 UTC
README
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);