# taringajs

> Taringa + NodeJS

Latest version **0.1.5** (published 2016-01-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install taringajs
pnpm add taringajs
yarn add taringajs
bun add taringajs
```

## 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.1.5 |
| Published | 2016-01-14 |
| First published | 2014-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+6 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Jonathan Toledo |
| Maintainers | overjt |
| Keywords | taringa, nodejs, api |

## Links

- npm: https://www.npmjs.com/package/taringajs
- Repository: https://github.com/overjt/taringajs
- Issues: https://github.com/overjt/taringajs/issues
- npm.io page: https://npm.io/package/taringajs

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^3.10.1
- [request](https://npm.io/package/request.md) ^2.40.0

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 0.1.5 (latest) — 2016-01-14
- 0.1.4 — 2015-11-27
- 0.1.3 — 2015-10-27
- 0.1.2 — 2015-09-27
- 0.1.1 — 2015-07-14
- 0.1.0 — 2015-06-11
- 0.0.9 — 2014-09-10
- 0.0.8 — 2014-09-10
- 0.0.7 — 2014-09-09
- 0.0.6 — 2014-09-09
- 0.0.5 — 2014-09-02
- 0.0.4 — 2014-09-01
- 0.0.3 — 2014-09-01
- 0.0.2 — 2014-09-01
- 0.0.1 — 2014-08-31

## README

[![npm version](https://badge.fury.io/js/taringajs.svg)](http://badge.fury.io/js/taringajs) [![GitHub version](https://badge.fury.io/gh/overjt%2Ftaringajs.svg)](http://badge.fury.io/gh/overjt%2Ftaringajs)

#TaringaJS

Taringa + nodejs


Para instalar en su proyecto:
```bash

npm install taringajs --save

```
##Ejemplos
Todos los ejemplos tienen el siguiente encabezado
```javascript
var t = require('taringajs');
var taringa = new t('USERNAME', 'PASSWORD');
```

###Hacer un Shout
* Texto
```javascript
taringa.shout.add("Test - #NodeJS");
```
* Imagen
```javascript
taringa.shout.add("Test image", 1, 0, "http://k33.kn3.net/taringa/9/2/3/6/7/8//djtito08/9B4.jpg"); //La url debe ser de kn3
```
* Video
```javascript
taringa.shout.add("Test video", 2, 0, "https://www.youtube.com/watch?v=l7Fi8-7HRhc");
```
* Link
```javascript
taringa.shout.attach_link("http://coffeescript.org/", function(err, data) {
  if (err) {
    return console.log(err);
  }
  return taringa.shout.add("Test link", 3, 0, data);
});
```

###Comentar un shout
```javascript
taringa.shout.add_comment("Hola",60544255,19963011,"shout");
```

###Dar "Me gusta" a un shout
```javascript
taringa.shout.like(60544255,19963011);
```

###Obtener los datos de un shout utilizando el id
```javascript
taringa.shout.get_object(60544255, function(err, data) {
    if (err) {
        return console.log(err);
    }
    console.log(data);
});
```

###Importar una imagen a kn3
```javascript
taringa.kn3.import("https://i.imgur.com/s8yBeZ8.png", function(err, data) {
    if (err) {
        return console.log(err);
    }
    console.log(data);
});
```

###Obtener los datos de un usuario según el nick
```javascript
taringa.user.get_user_id_from_nick("overjt", function(err, data) {
    if (err) {
        return console.log(err);
    }
    console.log(data);
});
```

###Seguir a un usuario
```javascript
taringa.user.follow(19963011);
```

###Dejar de seguir a un usuario
```javascript
taringa.user.unfollow(19963011);
```

###Dar favorito a un shout
```javascript
taringa.shout.fav(60544255,19963011);
```


###Obtener el último MP
```javascript
taringa.message.getLast(function(err, data) {
    if (err) {
        return console.log(err);
    }
    console.log(data);
});
```

###Obtener un MP por ID
```javascript
taringa.message.get(1324344, function(err, data) {
    if (err) {
        return console.log(err);
    }
    console.log(data);
});
```
Todos los ejemplos están en el archivo `test/test.js`



##TODO
* Comentar el código
* Añadir funcionalidades para los post

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