This package has been deprecated

Author message:

Replaced by sentiment140

sentiment140-nodejs-client

1.1.3 • Public • Published

This is an unofficial library allowing developers to easily interact with the Sentiment140 Natural Language Processing Service API.

Offical Website: http://www.sentiment140.com/
API Documentation: http://help.sentiment140.com/api


Sample Usage:

var Sentiment140 = require('sentiment140-nodejs-client');
var sentiment140 = new Sentiment140({
	auth: '[INSERT YOUR EMAIL HERE]'
});

var dataSimple = {
	"data": {
    	"id": 1,
    	"text": "I love Titanic.",
    	"query": "Titanic"
	}
}
sentiment140.sentiment(dataSimple, function(error, result) {
	console.log(JSON.stringify(result));
});

var dataBulk = {
	"data": [
   		{"text": "I love Titanic.", "id": 1 },
    	{"text": "I hate Titanic.", "id": 2 },
    	{"text": "I like Titanic.", "id": 3 }
	]
}
sentiment140.sentiment(dataBulk, function(error, result) {
	console.log(JSON.stringify(result));
});

/sentiment140-nodejs-client/

    Package Sidebar

    Install

    npm i sentiment140-nodejs-client

    Weekly Downloads

    6

    Version

    1.1.3

    License

    Apache-2.0

    Last publish

    Collaborators

    • pmoelgaard