« New Alpha Available | Main| Insert HTML into your content »

MetaWebLog API And Really Simple Discovery

Category
Bookmark : del.icio.us  Technorati  Digg This  Add To Furl  Add To YahooMyWeb  Add To Reddit  Add To NewsVine 


Previous versions of BlogSphere had an implementation of the blogger API so that you could post to your blog from 3rd party tools but unfortunitly it wasn't perfect. Apart from the fact that the blogger API is fairly simplistic and is not very powerful there were problems with it's implementation like posting from Flickr would result in blog entries with no title and it doesn;t support categories.

So today I looked at the code and decided to remove the blogger API support and replace it with the MetaWebLog API. Now I'm not a Java developer, it's not a language I know but I was able to look at the specs from the API and look at the old code for the blogger API and work out what changes I needed to make using methods described at the Java Jumpstart session at Lotusphere the past few years and I have to say I'm fairly happy with the results so far. You can create new posts, edit existing posts, get a list of all posts and even delete posts, the only part of the API I have left to figure out is the metaWeblog.newMediaObject that will allow you to upload images to your blog.

I have also implemented the Really Simple Discovery API which is a small XML file that is referenced in your blogs homepage. Some 3rd party blogging tools will look for this file and from it be able to work out what API to use and what the url for the xml-rpx endpoint it so you don't have to enter it in yourself.. The Microsoft Windows Live Writer tool uses this feature and also supports the MetaWebLog API and it's one of the many 3rd party tools I'm testing with to make sure my first java agent is working correctly.

Oh and one thing I would like to add is Domiclipse is a wonderful tool for editing java agents in Domino.  It's a plug-in for Eclipse that I decided to try out after I found that the built in java editor for Domino just isn't really all that good...

Comments

Gravatar Image1 - Cool keep it coming. I could test it from mo:blog (a Palm Blogging software) -- let me know where to post to.

P.S.: the BloggerAPI does support Title and Category. You have to put them into <> <category>The Category</category><title>The Title</title>. But it is OK if its gone (at least for me)

Gravatar Image2 - Brilliant, Dec! You are on a serious roll.

Once this shows up in an Alpha build, I'll give it a try with the Google Docs tool - I wasn't able to get the Blogger API working with that yet, and it would be handy for authoring.

Gravatar Image3 - The problem with the blogger API is that it used a fixed string for the content and title and categories and extracting the items from the string was not easy. The MetaWebLog API uses a proper XML structure to contain all the details and it can be expanded to contain new options so it makes more sense to use it.

Most blogging tools will support blogger api and metaweblog api's

I've done a test from Google Docs and I can confirm that it works as expected.

Gravatar Image4 - Funnily enough, been drinking a few times now with Keith "Mr Domeclipse" Smillie. Nice guy.

---* Bill "Its a small world - unlike my stomach" Buchan

Calendar