Saturday, April 02, 2011 at 9:08 PM.
local (apiurl = "http://my.reallysimple.org/api/newPost");
local (feed = "linkblog.xml", title = "Hacker News firehose");
local (link = "http://static.scripting.com/hackernews/rss.xml");
local (description = "A fast-moving feed for Hacker News.");
local (username = config.radio2.users.dave.prefs.security.username);
local (password = config.radio2.users.dave.prefs.security.password);
local (url = apiurl + "?feed=" + string.urlencode (feed) + "&title=" + string.urlencode (title) + "&link=" + string.urlencode (link) + "&description=" + string.urlencode (description));
local (s = tcp.httpReadUrl (url, 3, false, username, password, adrcode:@code));
json.compile (s, @scratchpad.jstruct);
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.