Coder Social home page Coder Social logo

node-wporg's Introduction

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

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

node-wporg's People

Contributors

sayar avatar

Watchers

James Cloos avatar truongcuong90 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.