Created
June 21, 2013 16:54
-
-
Save sayar/5832606 to your computer and use it in GitHub Desktop.
wporg example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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