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


Business-UPS-Tracking documentation  | view source Contained in the Business-UPS-Tracking distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

DESCRIPTION

Top

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

ACCESSORS

Top

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_tracing_webservice_config>
    <AccessLicenseNumber>1CFFED5A5E91B17</AccessLicenseNumber>
    <UserId>myupsuser</UserId>
    <Password>secret</Password>
 </UPS_tracing_webservice_config>

METHODS

Top

execute

 $commandline->execute;

Performs a UPS webservice query/request.


Business-UPS-Tracking documentation  | view source Contained in the Business-UPS-Tracking distribution.