2017 © Pedro Peláez
 

library miep-php-api-client

Max-immo External Partners API Client

image

zimmobe/miep-php-api-client

Max-immo External Partners API Client

  • Monday, July 31, 2017
  • by KoenraadM
  • Repository
  • 5 Watchers
  • 1 Stars
  • 254 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 20 % Grown

The README.md

MIEP Public API Client

Build Status, (*1)

Installation

Get your preferred HTTP Client implementation, (*2)

install the latest version with, (*3)

$ composer require zimmobe/miep-php-api-client

Usage

use MaxImmo\ExternalParties\MiepClient;
use MaxImmo\ExternalParties\Client;
use MaxImmo\ExternalParties\JsonResponseEvaluator;
use Http\Client\HttpClient;
use Http\Message\MessageFactory;

$httpClient = new HttpClient(); // Implementation of Interface
$messageFactory =  new MessageFactory(); // Implementation of Interface
$responseEvaluator = new JsonResponseEvaluator();
$apiClient = new Client($httpClient, $messageFactory, $responseEvaluator);
$miepClient = new MiepClient('client_id', 'client_secret', $apiClient);

More info: PHP-HTTP, (*4)

Guzzle example

use GuzzleHttp\Client as GuzzleHttpClient;
use GuzzleHttp\Psr7\HttpFactory;
use MaxImmo\ExternalParties\Client;
use MaxImmo\ExternalParties\JsonResponseEvaluator;
use MaxImmo\ExternalParties\MiepClient;

$apiClient = new Client(
    new GuzzleHttpClient(['base_uri' => 'https://ep.max-immo.be']), 
    new HttpFactory(), 
    new JsonResponseEvaluator()
);
$miepClient = new MiepClient('client_id', 'client_secret', $apiClient);

Get list of available Brokers

$miepClient->getBrokers();

Get information for given Broker

$miepClient->getInformationForBroker('brokerId');

Note: Broker ID is the sub-domain of the broker's MaxImmo URL. This Broker ID will be provided in the list of available brokers discussed earlier., (*5)

Get Real Estate for Broker

$miepClient->getRealEstateListForBroker('brokerId');

Note: Broker ID is the sub-domain of the broker's MaxImmo URL. This Broker ID will be provided in the list of available brokers discussed earlier., (*6)

Get property for Broker

$miepClient->getPropertyForBroker('brokerId', 1);

Note:, (*7)

  • brokerId is the sub-domain of the broker's MaxImmo URL. This Broker ID will be provided in the list of available brokers discussed earlier.
  • propertyId is the Max-immo property id. This Property ID will be provided in the list of available Real Estate discussed earlier.

Get project for broker

$miepClient->getProjectForBroker('brokerId', 'projectId');

Note:, (*8)

  • brokerId is the sub-domain of the broker's MaxImmo URL. This Broker ID will be provided in the list of available brokers discussed earlier.
  • projectId is the Max-immo property id. This Project ID will be provided in the list of available Real Estate discussed earlier.

Versioning

This library will follow the classic semver versioning. The master branch will always follow the latest release., (*9)

Changes on the core of this library and added features, will be merged back to previous versions on a best effort basis., (*10)

License

The MIT License (MIT). Please see License File for more information., (*11)

The Versions

31/07 2017

dev-master

9999999-dev https://github.com/zimmo-be/miep-php-api-client

Max-immo External Partners API Client

  Sources   Download

MIT

The Requires

 

The Development Requires

api partner miep ep

31/07 2017
25/07 2017
17/07 2017