The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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

AccessLicenseNumber

UPS tracking service access license number

UserId

UPS account username

Password

UPS account password

config

Optionally you can retrieve all or some UPS webservice credentials from a configuration file. This accessor holds the path to this file. Defaults to ~/.ups_tracking

Example configuration file:

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

METHODS

execute

 $commandline->execute;

Performs a UPS webservice query/request.