Skip to content

Instantly share code, notes, and snippets.

@sayar
Created June 21, 2013 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sayar/5832606 to your computer and use it in GitHub Desktop.
Save sayar/5832606 to your computer and use it in GitHub Desktop.
wporg example
var wp = require('wporg');
var client = wp.createClient({
username: "username",
password: "password",
url: "http://example.com/xmlrpc.php"
});
client.getUsersBlogs(function(err, data){
if(err){
console.log(err);
}
else {
console.log(data);
// Do something.
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment