Résultat de google.fr avec google-api.php

Nouveau WRInaute
Code:
class GoogleApiSearch
  {
    function doGoogleSearch($google_registration_key, $search, $start)
    {
      $soapDebug = false; 
      $maxResults = 10; 
      if ($soapDebug) { 
         echo "<p>Begin SOAP:<p>"; 
      } 
      $query = array(); 
      $query["key"] = $google_registration_key; 
      if ($soapDebug) { 
         echo "Google Registration Key: ".$query["key"]."<br/>"; 
      } 
      $query["q"] = $search; 
      $query["start"] = (int)$start; 
      $query["maxResults"] = $maxResults; 
      $query["filter"] = (boolean)true; 
      $query["restrict"]="lang_fr";

$query["restrict"]="lang_fr";
 
Discussions similaires
Haut