This project allows you to easily add the Nationale Milieudatabase to your application.
If you have encounter any issues while using this library or have any feature requests, feel free to open an issue on GitHub.
Have you spotted a bug or want to add a missing feature? All pull requests are welcome! Please provide a description of the bug or feature you have fixed/added. Make sure to target the latest development branch.
This library is built using net6.0. This means that the package supports the following .NET implementations:
| .NET implementation | Version support |
|---|---|
| .NET and .NET Core | 6.0, 7.0, 8.0 |
The easiest way to install the NPM Api library is to use the Nuget Package.
Install-Package Nmd.Api
The recommended way to instantiate the API client, is to use the built in dependency injection extension method:
builder.Services.AddNmdApiClient(options => {
options.ClientId = builder.Configuration["NMD:ClientId"];
options.ClientSecret = builder.Configuration["NMD:ClientSecret"];
});Alternatively, you can create the API client manually using the constructor.
var config = new NMDConfiguration() {
ClientId = "your-client-id",
ClientSecret = "your-client-secret"
};
var client = new NMDClient(new HttpClient(), config);