So, Mark and I have yet another project in the works. I can't go into any detail about it at the moment, but one aspect is IM integration.
Your blog software must support the Blogger API. It must implement the following Blogger API methods: getUserInfo, getUsersBlogs, newPost, deletePost. These are the commands that the service supports.
- login {username} {password}
- logout
- seturl {XML-RPC for your blog}
- setblogid {blog ID to which entries will be posted
- getuserinfo
- getusersblogs
- newpost
- endpost {true|false} (if true, the post is made, otherwise it is discarded)
- deletepost {post ID}
So, how would an interaction look like with the service after adding the service to your buddy list?
- login {username} {password}
- seturl {XML-RPC for your blog}
- setblogid {blog ID to which entries will be posted
- newpost
- {You are now editing your post. Keep sending messages to the service. When you are finished with the post, then you send the following command.}
- endpost true
- deletepost {post ID}
- logout
The AIM library is currently stripping out HTML. This will change if I change the AIM library. For some reason, it looks like international characters are not received correctly. I'll have to look into this in more detail.
I guess if you really wanted to test this out, I can point you at the buddy to add to your list. You'll have to send me an e-mail directly (david (here is where you'd put an @ symbol) blojsom (dot) com). I'm not after anyone's blog usernames and passwords. If you don't trust me then don't send me an e-mail asking me to point you at the buddy.
This was my 2nd post via IM to this blog. I deleted the first when I tested the deletepost functionality
Update: After talking with the author of the AIM library, looks like the stripping of HTML also rips out international characters. So, I'll have to noodle more on a better way to handle this, but stripping of HTML can/should/must be done in the state when you're not editing a post. Otherwise, if you are editing a post, it simply takes content between Tag X and Tag Y. That should be fun since different IM clients can each send different markup around the message. So Tag X and Tag Y might be different depending on the IM client. At least I've got some options.