sobota, 30 sierpnia 2008

Jommla XML-RPC

Text from: http://www.waltercedric.com/joomla-mainmenu-247/303-how-to/1271-joomla-xmlrpc-.html

XML-RPC allow other programs to interact with the backend of your publishing system. In practical terms, You can post an entry to a Metaweblog API-compatible site from an external program!

Using such tool has a lot of advantages:

  • Post and Publish on most blogs/cms, one tool to rule them all
  • Edit Posts and Templates without timeout, browser crash ;-)
  • Save Posts locally for further publishing,
  • Import Text files,
  • Add links and images, more complex formatting
  • Format text font and alignment faster,
  • Multiple accounts and blogs supported in one tools
  • Post/visualize preview
  • Colorized HTML code
  • Find/Replace option
  • Post to many blogs at the same time!
  • Spell Checking
  • File and Image Upload
Back to joomla! There is a lot of API to interact with Joomla: XML-RPC, Blogger and MetaWeblog API.

The MetaWeblog API, is an application programming interface created by Dave Winer that enables blog entries to be written, edited, and deleted using client software or web services. The API is implemented as an XML-RPC web service with three methods whose names describe their function: metaweblog.newPost(), metaweblog.getPost() and metaweblog.editPost(). These methods take arguments that specify the blog author's username and password along with information related to an individual weblog entry (also called a "post."). [from wikipedia]

For Joomla 1.5 you can use Metaweblog API, which can be dwonloaded here: download MetaWeblog API at JoomlaCode The latest version that has work for me is the version 0.9. Working yes but with some limitations, you can't for example put any pictures in your post. Movable API is another 3rd party plugin developed in japan by Jomler!.net exist for both Joomla 1.0 and Joomla! 1.5 (Metaweblog plugin for Joomla). Movable API is much more powerful than Metaweblog, but I did not succeed in making it running