1.1.3 • Published 10 years ago

sentiment140-nodejs-client v1.1.3

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
10 years ago

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));
});
1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago