1.2.0 • Published 5 years ago

metaweblog-api v1.2.0

Weekly downloads
10
License
MIT
Repository
github
Last release
5 years ago

MetaWeblog API for node.js

The MetaWeblog API is a programming interface that enables weblog entries to be written, edited, and deleted using XML-PRC web services. Please refer to Wiki for more information.

MetaWeblog API for node.js is a node module which implements the API, and provides you full features of the API with well documented functions.

Installation

npm install metaweblog-api

API Documentation

http://uhavemyword.github.io/metaweblog-api/MetaWeblog.html

Usage

var MetaWeblog = require('metaweblog-api');
var apiUrl = 'http://localhost:3000/'; // use your blog API instead
var metaWeblog = new MetaWeblog(apiUrl);

// getUsersBlogs
metaWeblog.getUsersBlogs(appKey, username, password)
  .then(blogInfo => {
    // handle the blog information here
  });
  .catch(error => {
    console.log(error);
  });

Please check tests\test.js for more examples.

Features

All method calls will return a Promise object which enables you to handle response async.

Tests

To run the test suite, first install the dependencies, then run npm test:

npm install
npm test

License

MIT

Enjoy!