the-ferret
17-08-08, 20:59
Need some help using getProductList in the soap api v2. All working by messing with the php example from the AW website
$aParams7 = array("sQuery" => "ferret", "bAdult" => False, "iLimit"=>10, "sSort" => "relevancy");
$oResponse= $oClient->call('getProductList', $aParams7);
$count = $oResponse->iTotalCount;
echo "We found ".$count." products<br>";
echo"Here they are<BR><BR>";
echo"<table>";
foreach($oResponse->oProduct as $details){
$name = $details->sName;
$price = $details->fPrice;
$image = $details->sAwThumbUrl;
echo "<tr><td>".$name."</td><td>".$price."</td><td><img src='".$image."'></td></tr>";
}
echo "</table>";
How do I search on 1 or a number of merchants or restrict the search by 1 or more categories?
Couldn't see anything in the documentation for getProductList, unless I can do something with the refinebygroup but can see how to set it.
cheers
Graham
$aParams7 = array("sQuery" => "ferret", "bAdult" => False, "iLimit"=>10, "sSort" => "relevancy");
$oResponse= $oClient->call('getProductList', $aParams7);
$count = $oResponse->iTotalCount;
echo "We found ".$count." products<br>";
echo"Here they are<BR><BR>";
echo"<table>";
foreach($oResponse->oProduct as $details){
$name = $details->sName;
$price = $details->fPrice;
$image = $details->sAwThumbUrl;
echo "<tr><td>".$name."</td><td>".$price."</td><td><img src='".$image."'></td></tr>";
}
echo "</table>";
How do I search on 1 or a number of merchants or restrict the search by 1 or more categories?
Couldn't see anything in the documentation for getProductList, unless I can do something with the refinebygroup but can see how to set it.
cheers
Graham