Hello! I am using the feed api to load the atom feed of a google reader's public page. (url of the public page: http://www.google.com/reader/shared/user%2F07117706287687242083%2Flabel%2F200909)
I am using the sample code for the historical entries example from the Google AJAX APIs playground (url: http://code.google.com/apis/ajax/playground/?exp=feeds#historical_entries) with the atom feed url (http://www.google.com/reader/public/atom/user %2F07117706287687242083%2Flabel%2F200909) of my public page substituted for the Digg feed url. The 200909 label has 183 items but the feed api will only return 21. The complete code I am using is below. Are there limitations or restrictions on the number of entries returned? Thanks, Paul <code> <!-- copyright (c) 2009 Google inc. You are free to copy and use this sample. License can be found here: http://code.google.com/apis/ajaxsearch/faq/#license --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/ > <title>Google AJAX Search API Sample</title> <script src="http://www.google.com/jsapi? key=ABQIAAAA1XbMiDxx_BTCY2_FkPh06RRaGTYH6UMl8mADNa0YKuWNNa8VNxQEerTAUcfkyrr6OwBovxn7TDAH5Q"></ script> <script type="text/javascript"> /* * How to see historical entries in a feed. Usually a feed only returns x number * of results, and you want more. Since the Google Feeds API caches feeds, you can * dig into the history of entries that it has cached. This, paired with setNumEntries, * allows you to get more entries than normally possible. */ google.load("feeds", "1"); // Our callback function, for when a feed is loaded. function feedLoaded(result) { if (!result.error) { // Grab the container we will put the results into var container = document.getElementById("content"); container.innerHTML = ''; // Loop through the feeds, putting the titles onto the page. // Check out the result object for a list of properties returned in each entry. // http://code.google.com/apis/ajaxfeeds/documentation/reference.html#JSON for (var i = 0; i < result.feed.entries.length; i++) { var entry = result.feed.entries[i]; var div = document.createElement("div"); div.appendChild(document.createTextNode(i + ': ' + entry.title)); container.appendChild(div); } } } function OnLoad() { // Create a feed instance that will grab Digg's feed. var feed = new google.feeds.Feed("http://www.google.com/reader/ public/atom/user%2F07117706287687242083%2Flabel%2F200909"); feed.includeHistoricalEntries(); // tell the API we want to have old entries too feed.setNumEntries(250); // we want a maximum of 250 entries, if they exist // Calling load sends the request off. It requires a callback function. feed.load(feedLoaded); } google.setOnLoadCallback(OnLoad); </script> </head> <body style="font-family: Arial;border: 0 none;"> <div id="content">Loading...</div> </body> </html> </code> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to google-ajax-search-api@googlegroups.com To unsubscribe from this group, send email to google-ajax-search-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en -~----------~----~----~----~------~----~------~--~---