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

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


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.
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...);
$s->ship('username','secret','localhost','domestic');
$s->ship('username','secret','localhost','international');
$s->rate('username','secret','localhost','domestic');
$s->rate('username','secret','localhost','international');
$s->track('username','secret','localhost','123456789098');
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');
Refer to Business::FedEx::Constants for constant_name information or refer to the FedEx ShipAPI documentation.
$data = $s->get_data('constant_name');
None by default.

Patrick Tully, ptully@avatartech.com
