Created
October 17, 2016 18:28
-
-
Save tylernappy/4fd296238fc876830f70402444193058 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// install the official Haven OnDemand node module: https://github.com/HPE-Haven-OnDemand/havenondemand-node | |
// npm install --save havenondemand | |
var havenondemand = require('havenondemand') | |
var client = new havenondemand.HODClient('APIKEY', 'v2') | |
var util = require('util') | |
var data = {url: 'http://www.galactanet.com/oneoff/theegg_mod.html', language: 'eng', mode: 'precision'} // uncomment if using 'precision' mode | |
// var data = {url: 'http://www.galactanet.com/oneoff/theegg_mod.html', language: 'eng', mode: 'recall'} // uncomment if using 'recall' mode | |
client.post('analyzesentiment', data, function(err, resp, body) { | |
console.log(util.inspect(resp.body, false, null)) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment