Skip to content

Instantly share code, notes, and snippets.

@lmccart
Created March 10, 2015 20:12
Show Gist options
  • Save lmccart/6349e5f5a5d8ba5e78e6 to your computer and use it in GitHub Desktop.
Save lmccart/6349e5f5a5d8ba5e78e6 to your computer and use it in GitHub Desktop.
alchemy + jquery
var params = {
url: encodeURI('http://p5js.org/'),
apikey: 'YOUR_KEY',
outputMode: 'json'
}
// Get sentiment of web page.
var url = 'http://access.alchemyapi.com/calls/url/URLGetTextSentiment';
$.getJSON(url, params, function(data) {
console.log('url sentiment');
console.log(data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment