After some digging around with the WordPress XML-RPC documentation, it seems that there isn’t a way to remotely obtain a “post” (such as a news article) through the XML-RPC interface. The documentation only mentions wp.getPage – if I try and pass in a PostID to this method, it returns:
[faultCode] => 404 [faultString] => Sorry, no such page.
… but wp.GetPage obviously does work when I pass a valid PageID. Does anyone have any ideas how I might go about solving this? Ideally, without extending the XML-RPC mechanism on the remote site (as access to these could be tricky)
I managed to figure this out. You can do this by using the “blogger.getPost” method. There isn’t much documentation for this on the WordPress site, but if you check out xmlrpc.php in the root of the WordPress directory you will find a complete list of XML-RPC functions, including:
Hope this helps anyone who struggles with this in future.
See:
WordPress XMLRPC API | Remote Control WordPress
Check this site out. It explains the Blogger API, and the parameters that each method consumes:
http://xmlrpc.free-conversant.com/docs/bloggerAPI#newPost
I relocated elWpAPI to its own domain. And improved it a lot, including media uploads and full WordPress 3.2.1 compatibility of both the Core API and the rFC/rSQL plugin. Just saying… 😉
And the morally incompatible browser ‘error’ is gone. Failed forcing people into minimal privacy defense mode.