承接 zimmobe/miep-php-api-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zimmobe/miep-php-api-client

最新稳定版本:3.2.1

Composer 安装命令:

composer require zimmobe/miep-php-api-client

包简介

Max-immo External Partners API Client

README 文档

README

Build Status

Installation

Get your preferred HTTP Client implementation

install the latest version with

$ 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

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.

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.

Get property for Broker

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

Note:

  • 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:

  • 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.

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

License

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

统计信息

  • 总下载量: 2.23k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 4
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-25