Skip to content

PHP API client for the ECOES API.

Notifications You must be signed in to change notification settings

computerminds/ecoes-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ECOES API library

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();

About

PHP API client for the ECOES API.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages