NAME

Business::UPS::Tracking::Commandline - Commandline interface to UPS tracking

SYNOPSIS

my $commandline = Business::UPS::Tracking::Commandline->new_with_options;
# Params are taken from @ARGV
$commandline->execute; 

DESCRIPTION

This class allows Business::UPS::Tracking being called from a commandline script using MooseX::Getopt. (See ups_tracking)

ACCESSORS

Inherited

All accessors from Business::UPS::Tracking::Request

verbose

Be verbose

config

Path to the webservice configuration file. Defaults to ~/.ups_tracking

Example configuration file:

<?xml version="1.0"?>
<UPS_tracing_webservice_config>
   <AccessLicenseNumber>1CFFED5A5E91B17</AccessLicenseNumber>
   <UserId>myupsuser</UserId>
   <Password>secret</Password>
</UPS_tracing_webservice_config>

tracking

Business::UPS::Tracking object. If not supplied the object will be built from data in config

METHODS

execute

$commandline->execute;

Performs a UPS webservice query/request.