Hi folks.
I've installed Pear SOAP on my machine in order to have Google at my fingertips.
When I run the script I can't see any result (the query is ok). my script is
include("SOAP/Client.php");
$client = new SOAP_Client('http://api.google.com/search/beta2');
$arguments = array(
'key' => 'my key',
'q' => $query, 'start' => 1,
'maxResults' => 10,
'filter' => true,
'restrict' => '',
'safeSearch' => true,
'lr' => '',
'ie' => '',
'oe' => ''
);
$result = $client->call("doGoogleSearch", $arguments,"urn:GoogleSearch", "urn:GoogleSearch");
foreach ($results['resultElements'] as $r){
echo "<li><a href=" . $r['URL'] . ">" .$r['title'] . "</a>";
echo "<br>";
echo $r['snippet'] . "(" . $r['cachedSize'] . ")";
echo "<p>";
}
Does anyone have successfully perfomed this work?
Ciao.
Giuseppe.