google.feeds.feed
With Google's AJAX Feed API you can download any feed using only javascript. The response is returned as JSON which can then be fed to the jsRepeater in order to display the feed on a page.
Let's have a look at the JSON that Google sends back. Type the URL of any feed in the input box to see the JSON response. Note: There are two types of responses, one when a feed has been sucessfully loaded and an error response if there was a problem loading the feed. Try typing in an invalid url to see the error response.
Once you are familiar with the JSON data we can expect see the Example of using jsRepeater to display this feed.
Feed Error : ${error.message}
| {"feed" : { |
| { | "title" | : | "${title:jsonReady}", | |
| { | "link" | : | "${link:jsonReady}", | |
| "description" | : | "${description:jsonReady}", | |
| "author" | : | "${author:jsonReady}", | |
| "entries" | : |
| %{[|}{ | "title" | : | "${title:jsonReady}", | |
| "link" | : | "${link:jsonReady}", | |
| "content" | : | "${content:jsonReady}", | |
| "contentSnippet" | : | "${contentSnippet:jsonReady}", | |
| "publishedDate" | : | "${publishedDate:jsonReady}", | |
| "categories" | : | [${categories}] | }%{,|,|}%{||]} |
| |
| }} |
|
| {"error" : {"code" : "${code}", "message" : "${message}} |