Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/janssenr/postcodenlapirestclient

A ASP.Net 4.5.1+ class, which offers methods to directly talk with the Postcode.nl API through the REST endpoint offered.
https://github.com/janssenr/postcodenlapirestclient

Last synced: 8 days ago
JSON representation

A ASP.Net 4.5.1+ class, which offers methods to directly talk with the Postcode.nl API through the REST endpoint offered.

Awesome Lists containing this project

README

        

# Postcode.nl API REST Client

A ASP.Net 4.5.1+ class, which offers methods to directly talk with the [Postcode.nl API](https://api.postcode.nl/documentation) through the REST endpoint offered.
You will need to create an account with the [Postcode.nl API](https://api.postcode.nl) service.

## License

All source code is licensed under the [GNU Lesser General Public License](http://www.gnu.org/licenses/lgpl.html)

## Installation

The easiest way to get started with Postcode.nl API REST Client is to use the NuGet package

Install-Package PostcodeNlApi

Or download the source from my GitHub page: https://github.com/janssenr/PostcodeNlApiRestClient

## Usage Address API

Include the class in your ASP.Net project, instantiate the ASP.Net class with your authentication details and call the 'LookupAddress' method.
You can handle errors by catching the defined Exception classes.

* See our [Address API description](https://services.postcode.nl/adresdata/api) for more information
* See our [Address API method documentation](https://api.postcode.nl/documentation/address-api) for the possible fields

```
var api = new PostcodeNlApiRestClient(apiKey: "", apiSecret: "");
var result = api.LookupAddress("2012ES", "30");
```