# metaweblog-api

> MetaWeblog API for node.js

Latest version **1.2.0** (published 2019-07-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install metaweblog-api
pnpm add metaweblog-api
yarn add metaweblog-api
bun add metaweblog-api
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2019-07-08 |
| First published | 2016-07-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 41.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Peng Chen |
| Maintainers | uhavemyword |
| Keywords | MetaWeblog, API |

## Links

- npm: https://www.npmjs.com/package/metaweblog-api
- Repository: https://github.com/uhavemyword/metaweblog-api
- Homepage: https://github.com/uhavemyword/metaweblog-api#readme
- Issues: https://github.com/uhavemyword/metaweblog-api/issues
- npm.io page: https://npm.io/package/metaweblog-api

## Dependencies (3)

- [xmlrpc](https://npm.io/package/xmlrpc.md) ^1.3.2
- [@types/node](https://npm.io/package/@types/node.md) ^6.0.31
- [@types/es6-promise](https://npm.io/package/@types/es6-promise.md) 0.0.28

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.2.0 (latest) — 2019-07-08
- 1.1.2 — 2016-11-23
- 1.1.1 — 2016-08-04
- 1.1.0 — 2016-08-04
- 1.0.2 — 2016-07-26
- 1.0.1 — 2016-07-05
- 1.0.0 — 2016-07-05

## README

# 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](https://en.wikipedia.org/wiki/XML-RPC) web services. Please refer to [Wiki](https://en.wikipedia.org/wiki/MetaWeblog) 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

```bash
npm install metaweblog-api
```

## API Documentation

http://uhavemyword.github.io/metaweblog-api/MetaWeblog.html

## Usage

```javascript
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`:

```bash
npm install
npm test
```

## License

[MIT](LICENSE)

**Enjoy!**

---
_Source: https://npm.io/package/metaweblog-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
