Skip to content

A Java library with a client implementation to interact with the Tennet Equigy API

License

Notifications You must be signed in to change notification settings

alliander-opensource/equigy-client

Repository files navigation

Equigy client

A Java library with a client implementation to interact with the TenneT Equigy API.

Example usage

To obtain activated energy for a single EAN for a single date, see the following example:

final OAuthClient oAuthClient = new OAuthClient();
final ActivatedEnergyClient activatedEnergyClient = ActivatedEnergyClient.acceptance();

final EquigyCredentials equigyCredentials = new EquigyCredentials();
// Fill in the credentials for your organisation

final OAuthToken oAuthToken = oAuthClient.retrieveToken(equigyCredentials);
final List<ActivatedEnergy> activatedEnergies = activatedEnergyClient.getByQuery(
        new EAN18("130539057492609625"),
        LocalDate.of(2020, 12, 20),
        oAuthToken
);

Building

To build the library, just run ./gradlew clean build or gradlew.bat clean build.

License

This project is licensed under the Mozilla Public License, version 2.0 - see LICENSE for details.

Contributing

Please read CODE_OF_CONDUCT and CONTRIBUTING for details on the process for submitting pull requests to us.

Contact

Please read SUPPORT for how to connect and get into contact with the Equigy-client project.

About

A Java library with a client implementation to interact with the Tennet Equigy API

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages