O'Reilly logo

eBay Hacks, 2nd Edition by David A. Karp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hack #115. Automate Auction Revisions

Simplify the task of revising several auctions at once with the ReviseItem API call.

Once an auction has started, you can normally change most aspects of the listing using the procedure outlined in "Make Changes to Running Auctions" [Hack #65] . But it's also possible to submit a revision using the API.

ReviseItem

Start with a simple script, reviseitem.pl, that will let you change any aspect of an active listing:

#!/usr/bin/perl require 'ebay.pl'; my $item_id = shift @ARGV; my %ARGS = @ARGV; my @options = qw/AdditionalShippingCosts AmEx AutoPay BoldTitle BuyItNowPrice CashOn PickupAccepted Category Category2 CCAccepted CheckoutDetailsSpecified CheckoutInstructions COD Counter Description Discover Duration Escrow EscrowBySeller Featured Gallery GalleryFeatured GalleryURL GiftExpressShipping GiftWrap Highlight InsuranceOption InsuranceFee LayoutId Location MinimumBid MoneyXferAccepted MoneyXferAcceptedinCheckout MOCashiers PackageHandlingCosts PaymentOther PaymentOtherOnline PaymentSeeDescription PayPalAccepted PayPalEmailAddress PersonalCheck PhotoCount PhotoDisplayType PictureURL Private Quantity Region ReservePrice SalesTaxPercent SalesTaxState SellerPays ShipFromZipCode ShippingHandlingCosts ShippingInTax ShippingIrregular ShippingOption ShippingPackage ShippingService ShippingType ShipToAfrica ShipToAsia ShipToCaribbean ShipToEurope ShipToLatinAmerica ShipToMiddleEast ShipToNorthAmerica ShipToOceania ShipToSouthAmerica SuperFeatured ThemeId ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required