Socket
Socket
Sign inDemoInstall

sentiment140-nodejs-client

Package Overview
Dependencies
47
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sentiment140-nodejs-client

This is a NodeJS Client Library for the sentiment140 Natural Language Processing Service API


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 21 Feb 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc