I'm getting a response from Alchemy API's Sentiment Analysis that says I have an invalid API key.
I'm using a basic HTTP GET request with the params encoded in a js object, like so:
var params = {
apiKey: kAlchemyApiKey,
text: text,
outputMode: 'json'
};
The request is then made like so:
HTTP.get(kSentimentUrl, params);
The API key should be valid (it's a free one though, so I don't know if I need to set up something for it to work).
What could be the problem? Should I use the node.js sdk?
================
Update
the parameter for the api key should be 'apikey' not 'apiKey' as I had done before.
it's now working as expected.