NAME
WebService::UPS::TrackRequest - Generate a Request for Tracking Information
SYNOPSIS
my $Package = WebService::UPS::TrackRequest->new;
$Package->Username('kbrandt');
$Package->Password('topsecrent');
$Package->License('8C3D7EE8FZZZZZ4');
$Package->TrackingNumber('1ZA45Y5111111111');
print $Package->Username();
my $trackedpackage = $Package->requestTrack();
License
You will need to get a UPS Online Tools License and Account to use this module: http://www.ups.com/e_comm_access/gettools_index?loc=en_US
Methods
new()
$package = WebService::UPS::TrackRequest->new( Username => 'kbrandt');
The constructor method that creates a new Request Object.
- License
-
You will need to register with UPS to get a developer key and then a License to access the XML Service
- Username
-
Username for your UPS account
- Password
-
Password for your UPS account
- TrackingNumber
-
The Tracking number of your package
- debug
-
Set this to something to make a lot of stuff appear
- URL
-
The URL the request is set to, you shouldn't have to Touch this
- Description
-
Optional, a human readable name for your package. Defaults to 'A Package'
requestTrack()
my $trackedPackage = $package->requestTrack();
Sumbits the request to UPS and returns a TrackedPackage Object
AUTHOR
Kyle Brandt, kyle@kbrandt.com http://www.kbrandt.com