Flash-XML-RPC->WordPress!

Hi,
if you had a chance to look at the Flash->XML-RPC->Magento post then you have all you need to achieve similar with wordpress:) how cool is that? And I have lost so many years by not adding this (webservices) into my consideration.

Steps to update previous example to run with WordPress, order top down:) first take the final code from the previous post then:

lines 22-24 requires update to include WordPress credentials and gateway (http://localhost/wordpress/xmlrpc.php)

public static const API_USER:String = "wordpressUser";
public static const API_KEY:String = "wordpressUserPass";
public static const GATEWAY:String = "http://example.com/blog/xmlrpc.php";

then we will modify command in login method to say:

m_sCurrentCommand = "wp.getUsersBlogs";

and after clicking on green button you will get a lengthy output, which might look similar to this (incomplete):

<methodResponse>
  <params>
    <param>
      <value>
        <array>
          <data>
            <value>
              <struct>
                <member>
                  <name>isAdmin</name>
                  <value>
                    <boolean>1</boolean>
                  </value>
...

🙂
happy coding, and I mean it:)

I Forgot to mention that you have to enable Remote Publishing in your WordPress settings, go to admin area Settings -> Writing -> Under “Remote Publishing” section you have XML-RPC checkbox – check it, and you’re done.

This entry was posted in flash, xml-rpc and tagged , , , . Bookmark the permalink.

1 Response to Flash-XML-RPC->WordPress!

  1. Corrina Cozier says:

    Resources like the one you mentioned here will be very useful to me! I will post a link to this page on my blog. I am sure my visitors will find that very useful.

Comments are closed.