computerminds/ecoes-api
最新稳定版本:0.3.0
Composer 安装命令:
composer require computerminds/ecoes-api
包简介
API client for the ECOES API.
README 文档
README
This library provides an API client for communicating with the ECOES API.
It uses Guzzle as a the underlying HTTP client.
Making requests
SearchUtilityAddress
$ecoes = new Ecoes\Api('API KEY GOES HERE');
$request = new Ecoes\SearchUtilityAddress\Request('POSTCODE');
// $matches will be an array of matching addresses.
$matches = $ecoes->SearchUtilityAddress($request)->getUtilityAddressMatches();
GetTechnicalDetailsByMpan
$ecoes = new Ecoes\Api('API KEY GOES HERE');
$request = new Ecoes\GetTechnicalDetailsByMpan\Request('MPAN');
// $matches will be an array of matching MPANs.
$matches = $ecoes->GetTechnicalDetailsByMpan($request)->getUtilityMatches();
// $match will be an array of a single matched MPAN.
$match = $ecoes->GetTechnicalDetailsByMpan($request)->getUtilityMatch();
统计信息
- 总下载量: 13.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-10-18