# node-diaspora

> NodeJS wrapper for the Diaspora API

Latest version **0.0.6** (published 2015-08-02) · LGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install node-diaspora
pnpm add node-diaspora
yarn add node-diaspora
bun add node-diaspora
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2015-08-02 |
| First published | 2015-05-03 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Martin Aranciaga |
| Maintainers | rainbowtupperware |
| Keywords | diaspora, api, wrapper |

## Links

- npm: https://www.npmjs.com/package/node-diaspora
- Issues: https://github.com/rainbowintheshell/node-diaspora/issues
- npm.io page: https://npm.io/package/node-diaspora

## Dependencies (1)

- [request](https://npm.io/package/request.md) ^2.55.0

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 0.0.6 (latest) — 2015-08-02
- 0.0.5 — 2015-06-16
- 0.0.4 — 2015-06-16
- 0.0.3 — 2015-05-04
- 0.0.2 — 2015-05-04
- 0.0.1 — 2015-05-03

## README

# node-diaspora
NodeJS wrapper for Diaspora v1.0 API

## Installation

To install node-diaspora, you can do it using NPM

	$ npm install node-diaspora

## Examples


Starter application

```
var Diaspora = require('node-diaspora');


var diasp = new Diaspora({
	user    : 'USER',
	password: 'PASSWORD',
	pod     : 'https://examplepod.com'
});

diasp.connect(function(err, suc){

	// CODE HERE


});

```

# Get stream

```
diasp.get('/stream', function(call){
	console.log(call);
});
```

# Post a status message
Replace :aspect with a aspect of Diaspora: Example: Work, public, all_aspects

```
diasp.postStatusMessage('Testing this new library', ':aspect', function(err, res){

});
```

You can also post an image with your status message.
Replace :image with the image file path.

```
diasp.postStatusMessage('Testing this new library', ':aspect', ':image', function(err, res){

});
```


# Get Activity

```
diasp.get('/activity', function(call){
	console.log(call);
});
```

# Get photos

```
diasp.get('/people/:profileid/photos', function(call){
	console.log(call);
});
```

# Get contacts

```
diasp.get('/contacts', function(call){
	console.log(call);
});
```

# Get post info and comments

```
diasp.get('/posts/:postid', function(call){
	console.log(call);
});
```

# Get tag posts

```
diasp.get('/tags/:tag', function(call){
	console.log(call);
});
```


# Delete post

```
diasp.delete('/posts/:postid', function(call){
	console.log(call);
});
```

## Bug reports
---

  * https://github.com/rainbowintheshell/node-diaspora/issues
  * rainbowtupperware at openmailbox dot org

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