i'm getting response alchemy api's sentiment analysis says have invalid api key.
i'm using basic http request params encoded in js object, so:
var params = { apikey: kalchemyapikey, text: text, outputmode: 'json' }; the request made so:
http.get(ksentimenturl, params); the api key should valid (it's free 1 though, don't know if need set work).
what problem? should use node.js sdk?
================
update
the parameter api key should 'apikey' not 'apikey' had done before.
it's working expected.
not sure api tried call, looking @ documentation htmlgettextsentiment see following remark :
- calls htmlgettextsentiment should made using http post.
- http post calls should include content-type header: application/x-www-form-urlencoded
looking @ text see using request , see reference form encoding.
this should make no difference kind of client technology use make rest calls.
see http://www.alchemyapi.com/api/sentiment/htmlc.html reference of api.
Comments
Post a Comment