6 Replies Latest reply on Feb 1, 2008 10:17 AM by ajohnson1200

    Supported Blogging APIs

      What Blogging APIs are officially supported by CS, and to what extent?  Is Blogger 1.0 fully implemented?  If not, what is missing?

       

      I've been testing a few GUI blogging clients with CS and I'm running into issues with the blogging APIs.   I get a variety of exceptions using several clients such as ScribeFire, Drivel, BloGTK (yes, I'm on Linux) complaining about missing handlers, such as the ones below, which I get when using Blogger 1.0 or MetaWeblogAPI (Blogger 2.0 doesn't work at all).

       

      The most important issue to me is blog post editing, which does not work from any of the clients I've tried so far.  Should editing work? 

       

       

      • No such handler: blogger.getRecentPosts

       

      • Failed to invoke method editPost in class com.jivesoftware.community.webservices.xmlrpc.MetaWeblogAPIHandler: [Ljava.lang.Object; cannot be cast to java.util.List

       

      • ERROR in BlooggerAPIHander.deletePost 

       

       

      Is that last error a typo in the code? Shouldn't it be "BloggerAPIHandler" not "Bloogger..."?  The weird string does not appear anywhere in the source code of the client, so I'm guessing it's from the server.

       

      -Mike

        • Re: Supported Blogging APIs
          aron.racho

          Hi,

           

          I believe that we support subsets of the Blogger v1 API, the MetaWeblog API, and MovableType API. Not all methods have been implemented. Below is a list of the implemented methods per API:

           

          Blogger v1      API

               validate(String blogid, String username, String password)

               validateUser(String username, String password)

               getUsersBlogs(String appkey, String userid, String password)

               deletePost(String appkey, String postID, String username, String password, boolean publish)

               newPost(String appkey, String blogid, String userid, String password, String body, boolean publish)

           

          MetaWeblog      API

               validate(String blogid, String username, String password)

               validateUser(String username, String password)

               getUsersBlogs(String appkey, String userid, String password)

               deletePost(String appkey, String postID, String username, String password, boolean publish)

               newPost(String appkey, String blogid, String userid, String password, String body, boolean publish)

               getCategories(String blogid, String userid, String password)

               editPost(String postid, String userid, String password, Map<?,?> struct, int publish) throws Exception

               getPost(String postid, String userid, String password)

               getRecentPosts(String blogid, String userid, String password, int numposts)

                

          MovableType      API

               validate(String blogid, String username, String password)

               validateUser(String username, String password)

               getUsersBlogs(String appkey, String userid, String password)

               deletePost(String appkey, String postID, String username, String password, boolean publish)

               newPost(String appkey, String blogid, String userid, String password, String body, boolean publish)

               getPostCategories(String postid, String username, String password)

               setPostCategories(String postid, String username, String password, List<Map<String, String>> categories)

               getCategoryList(String blogid, String username, String password)

           

          Yes, 'Bloogger' is a typo

           

          Hope this helps.

           

          Thanks,

           

          Aron