• I am trying to write a desktop posting application. I have the application done, except the actual posting portion. I tried to use the XML-RPC, but it does not allow me to post HTML content. I also want to stay away from the e-mail tools because I don’t want to have to rely on the user having a pop3 server. I posted some notes under the topic: https://www.ads-software.com/support/topic/37184, but it doesn’t seem like it gets any response.

    Does anyone know where I can find some examples of this or something? I looked into the other API, but it also does not appear to support HTML content. I then looked into the ATOM API, but I don’t know if wordpress supports it (I don’t think it does).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The Atom API is still very unestablished, from what I see there are still five different drafts on how it should accomplish certain things.

    XML-RPC should allow you to post anything that you could post in the admin, as it works wonderfully, and browsing over the code I see nowhere where it would strip HTML tags.

    There are some open source implementations of the MetaWeblog API and the Blogger API, maybe you should consider looking some of those up.

    https://codex.www.ads-software.com/XML-RPC_Support

    There’s a couple links there to coding resources.

    Thread Starter gjconely

    (@gjconely)

    I have visited the XML-RPC support page, but have not found anything that helps me. Most of the links are dead (thank god for Google cache). Anyways, I have tried to pass html in the following methods. Maybe my content-type is not correct or something.

    — First Attempt —
    ‘<?xml version=”1.0″?>
    <methodCall>
    <methodName>blogger.newPost</methodName>
    <params>
    <param><value><string>a</string></value></param>
    <param><value><string>1</string></value></param>
    <param><value><string>username</string></value></param>
    <param><value><string>password</string></value></param>
    <param><value><string>Title of post</string></value></param>
    <param><value><string>Post 1</string></value></param>
    <param><value><boolean>true</boolean></value><param>
    etc…

    I then changed it to use the following for the content param
    ‘<param><value><string><HTML:strong>Post 1</HTML:strong></value></param>’

    This still had no luck. Each of these attempts ended up with a post with no formatting. I then tried to use BBcode within my content tag, but still no luck.

    Thread Starter gjconely

    (@gjconely)

    lol – the Post 1 actually got formatted on my post. Anyways, it should read “< strong >Post 1< / strong >” without the spaces.

    Thread Starter gjconely

    (@gjconely)

    Okay, so looking into it, I think I am out of luck on using XML-RPC. So I decided to give a try at “MetaWeblog API”. At least this way I can also post with a title, but still no luck on the html formatting. So my next thought is to use the ATOM API, but I don’t see any documentation on this. Does wordpress support Atom API or is there a plugin for this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Posting from outside of wordpress (writting a desktop poster)’ is closed to new replies.