Hello, i have followed a tutorial to get the amazon web service working, and i have made this page.
http://cars.uk-graffiti.co.uk/test.php
However, i cant see where the search terms are programmed into the code to produce these results.
I presume, i make my own form and post to this page to get the results. At the moment, the code generates results for you but i can see where the search terms would go?
any ideas?
<?php
// include
10D2
class
include("nusoap.php");
// create a instance of the SOAP client object
$soapclient = new
soapclient("http://soap.amazon.com/schemas2/AmazonWebServices.wsdl",
true);
// uncomment the next line to see debug messages
// $soapclient->debug_flag = 1;
// create a proxy so that WSDL methods can be accessed directly
$proxy = $soapclient->getProxy();
// get items from the catalog
// sort order is default
$catalogParams = array(
'browse_node' => 18,
'page' => 1,
'mode' => 'books',
'tag' => 'melonfire-20',
'type' => 'lite',
'devtag' => 'D3GW04LSIAVDCS'
);
$catalogResult = $proxy->BrowseNodeSearchRequest($catalogParams);
$catalogTotal = $catalogResult['TotalResults'];
$catalogItems = $catalogResult['Details'];
// get today's featured items
// sort order is by featured items
$featuredParams = array(
'browse_node' => 18,
'page' => 1,
'mode' => 'books',
'tag' => 'melonfire-20',
'type' => 'lite',
'sort' => '+pmrank',
'devtag' => 'D3GW04LSIAVDCS'
);
$featuredResult = $proxy->BrowseNodeSearchRequest($featuredParams);
$featuredTotal = $featuredResult['TotalResults']; $featuredItems =
$featuredResult['Details'];
// get bestsellers
// sort order is by sales ranking
$bestsellersParams = array(
'browse_node' => 18,
'page' => 1,
'mode' => 'books',
'tag' => 'melonfire-20',
'type' => 'lite',
'sort' => '+salesrank',
'devtag' => 'D3GW04LSIAVDCS'
);
$bestsellersResult =
$proxy->BrowseNodeSearchRequest($bestsellersParams);
$bestsellersTotal = $bestsellersResult['TotalResults'];
$bestsellersItems = $bestsellersResult['Details'];
// format and display the results
?>
I have tried changing books to music etc....but this just brings back an error....
bit stuck any help?
cheers