This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

wporg

0.1.0 • Public • Published

node-wporg

By @ramisayar

node-wporg is a complete node WordPress(.org) client. It will let you query any part of the WordPress XML-RPC API with ease. It covers the entire API and performs simple validation. It is immediately usable, see the examples below.

NOTE: Some APIs may not be available depending on your WordPress version install.

Installation

To install run:

npm install wporg

Example

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.
    }
});

Documentation

You can generate documentation (as well as run jshint and tests) by running:

Note: JAVA_HOME needs to be set.

npm install
./node_modules/grunt-cli/bin/grunt

or

./node_modules/jsdoc/jsdoc lib -d docs

License

Copyright (c) 2013 Rami Sayar Licensed under the The MIT License (MIT)

See LICENSE

Readme

Keywords

none

Package Sidebar

Install

npm i wporg

Weekly Downloads

2

Version

0.1.0

License

none

Last publish

Collaborators

  • sayar