Sunday, November 05, 2006

example rss feed in an iframe

Feed your blog

javascript





iframe




Friday, October 20, 2006


for iNews justification see Leon leon@leonbloom.com
The iNews “interface” http://www.leonbloom.com


Not really an interface at all but a working example of how the iNews API can be used to build a web application.
In this example there are three files that are displayed in three frames.


Frame 1 is an OPML file:
http://www.leonbloom.com/inews/iopml.opml?func=f (This file lists the urls of all of the RSS feeds)

Frame 2 is a RSS file:
http://www.leonbloom.com/f/eaf89bc6d77cda68ba16.xml

Frame 3 is an Item from an RSS feed: http://www.leonbloom.com/g/e9aa81282916509a2a24.html

The OPML file source, found at: http://www.leonbloom.com/inews/iopml.opml?func=f



The RSS feed source:



Creating a REST Request
iNews Web Services are all
REST services. That means you can easily construct request URLs that will work in your browser, on the command line, and in your code. For our example, we'll construct a query to return the access times of a particular item in an RSS feed. See the web search documentation to understand the details of this service.

General format of URL construction
The REST interface to the access XML


http://www.leonbloom.com/a?u=

Example of using a real URL in the REST request:
http://www.leonbloom.com/a?u=http%3A//news.bbc.co.uk/go/rss/-/2/hi/business/6400789.stm


Returned XML

<?xml version= " 1.0 "encoding="UTF-8"?>
<rssdata>
<head>
<title>rss feed access</title>
<host>
http://www.leonbloom.com/</host>
<dateCreated>Fri, 13 Oct 2006 11:31:45 ET</dateCreated>
<localurl>
http://www.leonbloom.com/g/e9aa81282916509a2a24.html</localurl>
<originalurl>
http://news.bbc.co.uk/2/hi/business/6400789.stm</originalurl>
<errorcode>OK</errorcode>
<errormsg>NONE</errormsg>
</head>
<accesstime>
<time>2006-10-12 11:22:57</time>
<time>2006-10-12 11:22:57</time>
<time>2006-10-13 11:30:44</time>
</accesstime>
</rssdata>