WWW::NZPost::Tracking - Perl interface to the New Zealand Post tracking service
use WWW::NZPost::Tracking; my $nzp = WWW::NZPost::Tracking->new( license_key => '12345678', user_ip_address => '127.0.0.1', ); my ($package) = $nzp->track( tracking_number => 'XY123456789NZ' );
This module provides an object-oriented Perl interface to the New Zealand Post tracking service.
Returns a new WWW::NZPost::Tracking object. Takes the following parameters as a hash:
Your New Zealand Post license key.
The IP address of the end user.
If set, returns dummy data as documented in the NZ Post API documentation.
Tracks a package. Takes the following parameters as a hash, returns an array of WWW::NZPost::Tracking::Package objects.
String representing one tracking number, or an array reference of up to 10 tracking numbers.
Set if you would like the API to return signature data.
The author of this module is not affiliated in any way with New Zealand Post. It is provided as a courtesy to other users of the services provided by New Zealand Post.
Users must follow all terms and requirements associated with use of the New Zealand Post web services.
Documentation can be found at <http://www.nzpost.co.nz/products-services/iphone-apps-apis/tracking-api/track-method>
This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Authored by Michael Aquilina <firstname.lastname@example.org> for the Bizowie ERP <http://bizowie.com> platform.