NAME

Business::FedEx::ShipRequest - Shipping/Tracking Interface to FedEx

SYNOPSIS

ShipRequest gives you the ability to track, rate, and ship international and domestic packages via FedEx.

API

DESCRIPTION

Two ways to use ShipRequest. If you are on a Win32 system, you can use ShipRequest directly (w/o using the proxy interface). However, If you plan on using ShipRequest on any other platform, you MUST use the proxy interface. Read 'USE PROXY' below for instructions.

CREATE A SHIPPING OBJECT:

Refer to Business::FedEx::Constants or the FedEx ShipAPI documentation for the required fields.

use Business::FedEx::ShipRequest;
$s = Business::FedEx::ShipRequest->new(constant_name=>'value',constant_name2=>'value',etc...);

SHIP A PACKAGE:

$s->ship('username','secret','localhost','domestic');
$s->ship('username','secret','localhost','international');

RATE A PACKAGE:

$s->rate('username','secret','localhost','domestic');
$s->rate('username','secret','localhost','international');

TRACK A PACKAGE:

$s->track('username','secret','localhost','123456789098');

USE PROXY:

In order to use fedex.pl (proxy interface), you must install Business::FedEx on a Win32 web server and put the fedex.pl script in Win32's cgi-bin. You can then make a ShipRequest from any box just by including the url in the method call (instead of 'localhost').

$s->ship('username','secret','http://www.hostname.com/cgi-bin/fedex.pl','domestic');

GET REPLY INFO:

Refer to Business::FedEx::Constants for constant_name information or refer to the FedEx ShipAPI documentation.

$data = $s->get_data('constant_name');

EXPORT

None by default.

AUTHOR

Patrick Tully, ptully@avatartech.com

SEE ALSO

Business::FedEx

Business::FedEx::Constants

Business::FedEx::ShipAPI