/wordpress-xmlrpc-javascript-api

WordPress XmlRpc Javascript Api (Written for Wordpress Markdown Poster)

Primary LanguageJavaScript

WordPress XmlRpc Javascript Api

Node: This lib was not developed Please use https://github.com/armand1m/wordpress-api

WordPress XmlRpc Javascript Api is a wordpress api javascript client based on mimic xmlrpc client. It implement all interfaces descripted at XML-RPC_WordPress_API.

Examples:

var connection = {
    url : "your xmlprc url such as http://www.exmaple.com/xmlrpc.php",
    username : "you login name",
    password : "you password"
};
var wp = new WordPress(connection.url, connection.username, connection.password);
var blogId = 1;
var postId = 1;
var object = wp.getPost(blogId, postId);
// run console.log(object); to output the attributes of the object 

About others api usage details, you can see tests/wordpress-test.js