metaweblog-api
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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!

Readme

Keywords

Package Sidebar

Install

npm i metaweblog-api

Weekly Downloads

2

Version

1.2.0

License

MIT

Unpacked Size

42.3 kB

Total Files

10

Last publish

Collaborators

  • uhavemyword