Filzhut.net amazon_functions for PHP (Version 0.9)amazon_search_similarity (Version 0.903 and higher)
Performs a similarity-search on a product and returns an array with the parsed XML-result
amazon_search_similarity(var asin [, int type [, int page [, int format]]])
With this function you can query amazon™ for similarities on a product-asin. Setting the type is optional: It gives you the possibility to determine the volume of the reply. LIGHT(default) returns less product-information than HEAVY.
A search you perform with this function returns up to 10 products. If you want to get more products, you can define that the result is not page #1(default), but f.e. page "2". So you don't receive the first 10 products, but products 11-20 - "3" would return the products 21-30...
If you are able to create XSL pages, you can set the URL of such a page as format (f.e. "http://www.yourserver.com/directory/file.xsl") and the result of this function won't be an array, but the XSL with the data the search returned.
Example 1. Get similarities 1-10 on the product with asin "0609807013":
$Reply=amazon_search_similarities("0609807013");
|
Example 2. Get similarities 11-20 on the product with asin "0609807013" in the heavy version (more data):
$Reply=amazon_search_similarities("0609807013","HEAVY","2");
|