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

local (blogid = "home");
local (username =;
local (password =;

local (struct);
bundle { //set up struct
	new (tabletype, @struct);
	struct.title = "Playing with a new API"; = "";
	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://"].metaWeblog.newPost (blogid, username, password, struct, true));

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

scratchpad.poststruct = ["xmlrpc://"].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.