There could be a number of causes for the api to take longer than  
usual to respond and/or to respond with no results. Probably the two  
most likely are that you're calling feeds that have not already been  
cached and/or have no recent entries. Beyond that, it's tough to say  
what might be going on here without an example feed to test.

As for a non-Javascript equivalent of the google.feeds.FeedControl  
class, the answer is no, there is nothing ready-made. However, it  
really isn't that difficult to build something yourself.  The  
FeedControl is really just html that's dynamically generated by  
Javascript. You can use the Firefox extension Firebug to examine the  
structure of the control and duplicate it server-side.

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://jgeerdes.wordpress.com
[email protected]

Unless otherwise noted, any price quotes contained within this  
communication are given in US dollars.

If you're in the Des Moines, IA, area, check out Debra Heights  
Wesleyan Church!

And check out my blog, Adventures in Web Development, at 
http://jgeerdes.blogspot.com 
  !


On Apr 21, 2009, at 9:30 PM, george wrote:

>
> Hello,
>
> I am trying to develop a feed reader using the API but for non
> javascript browsers.
> I am using php. Sometimes it returns JSON data immediately or it
> doesn't return anything at all (empty). Is there a restriction on how
> many requests i am doing? I tried to set a back-off timer (sleep)
> between requests but still the same. Any idea why this happens ? Also
> is there a non javascript way to call google.feeds.FeedControl class?
> similar to the one with json ?
>
> here is the function i am using
> function getArray($link) {
>       $url = "http://ajax.googleapis.com/ajax/services/feed/load?q=";.
> $link."&v=1.0&key=***********my key******";
> try {
>
>       $ch = curl_init();
>       curl_setopt($ch, CURLOPT_URL, $url);
>       curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
>       curl_setopt($ch, CURLOPT_REFERER, "***********my domain******");
>       $body = curl_exec($ch);
>       curl_close($ch);
>
>       $json = json_decode($body);
>       $entries = $json->responseData->feed->entries;
>       if (empty($entries)) {
>               $entries=null; throw new Exception('Tried to access '.$link); }
> } catch(Exception $exp) {
>       $headers = 'From: ***********my email******'. "\r\n" .
>                       'X-Mailer: PHP/' . phpversion();
>       mail("*****my email***", "error with feeds", $exp->getMessage(),
> $headers);
> }
>       return $entries;
> }// getArray
>
> thanks,
> George
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" 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-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to