server-webapi-code-09-getCategoryListings.php / php
<?php function getCategoryListings(call = "GetCategoryListings"; attributes['Version'] = 425; category; call, message = generateRequest(xml = calleBay(message, FALSE); echo "<h3>Listings in {</h3>\n"; parentID = getCatagoryID(</a> Listing\n"; if (isset($xml->GetCategoryListingsResponse->ItemArray->Item)) { foreach($xml->GetCategoryListingsResponse->ItemArray->Item AS $item) { echo "<a href=\"?{$item->ItemID}\">{$item->Title}</a> currently has a high bid of {item-> SellingStatus->BidCount} bids\n"; } }else { echo "No listings, Sorry\n"; } if (isset(<h3>Sub-Categories</h3>"; foreach(xml->GetCategoryListingsResponse->SubCategories->Category AS category->CategoryID}\">{</a> has {category->NumOfItems} items listed\n"; } } } ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.