NAME
Net::eBay - Perl Interface to XML based eBay API.
VERSION
Version 0.03
SYNOPSIS
Quick summary of what the module does.
Example of listing an item for sale:
use Net::eBay; use Data::Dumper;
my $ebay = new Net::eBay( { site_level => 'prod', DeveloperKey => '...', ApplicationKey => '...', CertificateKey => '...', Token => '...', } );
my $result = $ebay->submitRequest( "AddItem", { DetailLevel => "0", ErrorLevel => "1", SiteId = > "0", Verb => " AddItem", Category => "14111", CheckoutDetailsSpecified => "0", Country => "us", Currency => "1", Description => "For sale is like new <A HREF=http://www.example.com/jhds/>thingamabob</A>.Shipping is responsibility of the buyer.", Duration => "7", Location => "Anytown, USA, 43215", Gallery => 1, GalleryURL => 'http://igor.chudov.com/images/mark_mattson.jpg', MinimumBid => "0.99", BuyItNowPrice => 19.99, PayPalAccepted => "1", PayPalEmailAddress => "ichudov\@example.com", Quantity => "1", Region => "60", Title => "Igor's Item with Gallery xaxa", } );
print "Result: " . Dumper( $result ) . "\n";
Result of submitRequest is a perl hash obtained from the response XML using XML::Simple, something like this:
Result: $VAR1 = { 'Item' => { 'Id' => '4503546598', 'Fees' => { 'FeaturedGalleryFee' => '0.00', 'InternationalInsertionFee' => '0.00', 'CurrencyId' => '1', 'GalleryFee' => '0.25', 'AuctionLengthFee' => '0.00', 'ProPackBundleFee' => '0.00', 'BorderFee' => '0.00', 'FeaturedFee' => '0.00', 'SchedulingFee' => '0.00', 'HighLightFee' => '0.00', 'FixedPriceDurationFee' => '0.00', 'PhotoDisplayFee' => '0.00', 'ListingFee' => '0.55', 'BuyItNowFee' => '0.00', 'PhotoFee' => '0.00', 'GiftIconFee' => '0.00', 'SubtitleFee' => '0.00', 'InsertionFee' => '0.30', 'ListingDesignerFee' => '0.00', 'BoldFee' => '0.00', 'ReserveFee' => '0.00', 'CategoryFeaturedFee' => '0.00' }, 'StartTime' => '2005-08-30 04:50:47', 'EndTime' => '2005-09-06 04:50:47' }, 'EBayTime' => '2005-08-30 04:50:47' };
EXPORT
new -- creates eBay API. Requires supplying of credentials: DeveloperKey, ApplicationKey, CertificateKey, Token. Net::eBay will not be created until these keys and the token are supplied.
Get them by registering at http://developer.ebay.com and self certifying. Celf certifying is a trivial process of solemnly swearing that you are ready to use their API.
The site_level parameter is also mandatory and can be either 'prod' or 'dev'. prod means to use their production site (being charged real money for listings, etc), and dev means to use eBay sandbox http://sandbox.ebay.com/.
FUNCTIONS
function1
function2
AUTHOR
Igor Chudov, <ichudov@algebra.com>
BUGS
Please report any bugs or feature requests to bug-net-ebay@rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-eBay. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2005 Igor Chudov, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.