I want to consume wordpress XMLRPC API for my latest experiment. Do you know what is the simplest library to do this? PHP4 compatibility is not important as it’s obsolete anyway.
Leave a Reply
You must be logged in to post a comment.
I want to consume wordpress XMLRPC API for my latest experiment. Do you know what is the simplest library to do this? PHP4 compatibility is not important as it’s obsolete anyway.
You must be logged in to post a comment.
Apparently, I got the answer: using WordPress’s own XMLRPC processor which is based on incutio’s XMLRPC library. The file is in /wp-includes/class-IXR.php
I won’t suggest a library. I’ll give you a simple curl example for a new wordpress post. To use it on your own, you may want to create a class for this stuff that there is no need to have user/pass as function parameters.
The question is for what reason do you need a library if it is soooo easy…
The PEAR XML-RPC package may be interessting for you.