Wednesday, January 16, 2008

Amazon Search with WSF/PHP Helper classes

You can do amazon search with the help of WSF/PHP helper classes which are bundled with Web service framework for PHP 1.2 release.

Here is a little demonstration how can you use this,,


$amazon_client = new AmazonClient("my amazon key");

$results = $amazon_client->itemSearch("My Book", "Books", 1);

foreach ($res["results"] as $result) {

echo $result["ItemAttributes"]["Author"]. "-";
echo $result["ItemAttributes"]["Title"]. "\n";



No comments: