Net::PostcodeNL::WebshopAPI - Postcode.nl Webshop API
use Net::PostcodeNL::WebshopAPI; my $api = Net::PostcodeNL::WebshopAPI->new( api_key => 'insert api key', api_secret => 'insert api secret', ); my $zipcode = ''; my $number = ''; my $addition = ''; my $r = $api->lookup($zipcode, $number, $addition); if ($r->is_error) { die $r->err_str; } else { say $r->street; say $r->houseNumber; say $r->houseNumberAddition; }
Retrieves information about a zipcode from Postcode.nl
You need to apply for a key and secret from http://api.postcode.nl.
Returns a Net::PostcodeNL::WebshopAPI::Response for the combination of $zipcode, $number and $addition.
$zipcode
$number
$addition
Net::PostcodeNL::WebshopAPI::Response
Peter Stuifzand <peter@stuifzand.eu>
GPL version 3 or later.
To install Net::PostcodeNL::WebshopAPI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::PostcodeNL::WebshopAPI
CPAN shell
perl -MCPAN -e shell install Net::PostcodeNL::WebshopAPI
For more information on module installation, please visit the detailed CPAN module installation guide.