Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Morgan committed May 18, 2016
1 parent 0e6a681 commit 3b9882c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,20 @@ Sentiment Analysis
// Do something with data
});

Emotions
------------------
var AlchemyAPI = require('alchemy-api');
var alchemy = new AlchemyAPI('<YOUR API KEY>');
alchemy.emotions('<URL|HTML|TEXT>', {}, function(err, response) {
if (err) throw err;

// See http://www.alchemyapi.com/api/html-api-1 for format of returned object
var emotions = response.docEmotions;

// Do something with data
});


Targeted Sentiment Analysis
------------------
var AlchemyAPI = require('alchemy-api');
Expand Down

0 comments on commit 3b9882c

Please sign in to comment.