Shipment - Interface to Popular Shipping Services
version 3.10
use Shipment; my $shipment = Shipment->new; $shipment->ups( from_address => $shipment->address(...), to_address => $shipment->address(...), packages => [$shipment->package(...)] ); foreach my $service ( $shipment->all_services ) { print $service->id . "\n"; } $shipment->rate( 'express' ); print $service->cost . "\n"; $shipment->ship( 'ground' ); $shipment->get_package(0)->label->save;
This library provides an interface to popular shipping/courier services.
See the relevant module for details on usage.
For code examples, see https://github.com/pullingshots/Shipment/tree/master/eg
The generic method returns a L<Shipment::Generic> object. See L<Shipment::Generic> for more details.
The fedex method returns a Shipment::CanadaPost object. See Shipment::CanadaPost for more details.
The fedex method returns a Shipment::FedEx object. See Shipment::FedEx for more details.
The purolator method returns a Shipment::Purolator object. See Shipment::Purolator for more details.
The ups method returns a Shipment::UPS object. See Shipment::UPS for more details.
The temando method returns a Shipment::Temando object. See Shipment::Temando for more details.
The address method returns a Shipment::Address object. See Shipment::Address for more details.
The package method returns a Shipment::Package object. See Shipment::Package for more details.
Andrew Baerg @ <andrew at pullingshots dot ca>
http://pullingshots.ca/
Issues can be submitted at https://github.com/pullingshots/Shipment/issues
Copyright (C) 2016 Andrew J Baerg, All Rights Reserved
Absolutely, positively NO WARRANTY, neither express or implied, is offered with this software. You use this software at your own risk. In case of loss, no person or entity owes you anything whatsoever. You have been warned.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Andrew Baerg <baergaj@cpan.org>
This software is copyright (c) 2018 by Andrew Baerg.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Shipment, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Shipment
CPAN shell
perl -MCPAN -e shell install Shipment
For more information on module installation, please visit the detailed CPAN module installation guide.