Skip to content

uhavemyword/metaweblog-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

MetaWeblog API for node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published