Created
March 10, 2015 20:12
-
-
Save lmccart/6349e5f5a5d8ba5e78e6 to your computer and use it in GitHub Desktop.
alchemy + jquery
This file contains hidden or 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
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