Sentiment Analysis

FREEMIUM
Verified
By Twinword API | Updated hace un mes | Text Analysis
Popularity

9.6 / 10

Latency

215ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Keeps saying invlad Mashape Aplication Key 401 error

Rapid account: Mtsvelik
mtsvelik
hace 10 años
Rapid account: Chaitupramod
chaitupramod Commented hace 8 años

I am also facing the same problem . there is an error which states ‘{“result_code”:“415”,“result_msg”:“Does not look like a valid request”}’ in my json output.

The code I am using is :

$response = Unirest\Request::post(“https://twinword-sentiment-analysis.p.mashape.com/analyze/”,

array(

"X-Mashape-Key" => "xxxxx",


"Content-Type" => "application/x-www-form-urlencoded",


"Accept" => "application/json"

),

array(

"text" => "great value in its price range!"

)

);

Can somebody help me with this please ?

Rapid account: Cmorisetty
cmorisetty Commented hace 9 años

Thank you

Rapid account: Twinword
twinword Commented hace 9 años

Hi cmorisetty,

First, thanks for trying our API!

That error appears when the endpoint does not receive a POST or GET parameter called “text” containing the string of text you want to analyze.

Please let us know if you need more help! Thanks!

Rapid account: Cmorisetty
cmorisetty Commented hace 9 años

Hi,

I am trying to access your API however, I keep receiving an error response as “415: Does not look like a valid request”.

When does the api return this result? If there is something wrong with the data or something wrong with JSON object passed to the API? I am using .Net to connect to it.

Thank you.

Note: I am quite new to all this

Rapid account: Twinword
twinword Commented hace 9 años
Rapid account: Mtsvelik
mtsvelik Commented hace 10 años

Not to worry, solved!

Join in the discussion - add comment below:

Login / Signup to post new comments