XML-RPC for Textpattern v1.0

OK, time to get this one out the door – having squished the outstanding “blocker” bugs, I think XRT is now ready for version 1 status. Just in time for Textpattern version 1!

1.0 fixes a number of bugs, particularly on the Mac side of things:

  1. Full MarsEdit support – no more errors when trying to get the most recent posts! No more errors at all! (That I’ve found)
  2. Fixed metaWeblog implementation – you can now use it rather than the MovableType API if you want
  3. Improved category handling on both APIs – by that, I mean they (should) work!

Obviously, I might have missed some bugs, so if you find any, please let me know in the comments below.

To install XRT, download the 10Kb ZIP file from here. Extract the contents of the zip file into your Textpattern directory then upload to your server.

Simply point your chosen blog client towards http://%5Byoursite%5D/textpattern/xmlrpcs.php to use XRT. MarsEdit users will have to enter the name of the section you want to post to as the Blog ID, i.e. “blog”, “articles”, etc.

Update 28/01/05

A small bug sneaked its way into v1.0, that affects the MetaWeblog API. To fix, change lines 326 and 430 to the following:

$incoming['Annotate'] = ($entry['mt_allow_comments']) ? $entry['mt_allow_comments'] : 1;

Version 1.1 will be out in a few days and will contain this fix, amongst others.