Is this the correct group for asking questions about running search
queries? If not, please point me to a better location  for such
questions.

I'm looking at this page:

http://code.google.com/apis/ajaxsearch/documentation/#fonje

They offer this PHP code example:

$url = "http://ajax.googleapis.com/ajax/services/search/web?
v=1.0&q=Paris%20Hilton";

// sendRequest
// note how referer is set manually
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_REFERER, "http://www.mysite.com/index.html";);
$body = curl_exec($ch);
curl_close($ch);


How do I add my Google API key into that?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data Protocol" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to