Monday, November 08, 2010 at 12:05 AM.

system.verbs.builtins.radio.weblog.metaWeblogApi.testing.threeCalls

local (blogid = "home");
local (username = user.radio.prefs.security.remoteUsername);
local (password = user.radio.prefs.security.remotePassword);

local (struct);
bundle { //set up struct
	new (tabletype, @struct);
	struct.title = "Playing with a new API";
	struct.link = "http://radio.userland.com/emulatingBloggerInRadio";
	struct.description = "Now that we have Links and Titles, everyone wants an XML-RPC interface that includes that. If all goes well, we should have such an interface that does that, and a bunch more."};
local (postid = ["xmlrpc://127.0.0.1:5335/RPC2"].metaWeblog.newPost (blogid, username, password, struct, true));

struct.description = string.upper (struct.description);
struct.categories = {"Michegas", "Mind Bombs"};
["xmlrpc://127.0.0.1:5335/RPC2"].metaWeblog.editPost (postid, username, password, struct, true);

scratchpad.poststruct = ["xmlrpc://127.0.0.1:5335/RPC2"].metaWeblog.getPost (postid, username, password)



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.