Sentiment Analysis

FREEMIUM
Por MeaningCloud | Atualizado vor 16 Tagen | Data
Popularidade

7.9 / 10

Latência

892ms

Nível de serviço

100%

Health Check

N/A

Voltar para todas as discussões

Newbie Problems

Rapid account: Saurabhmenon
saurabhmenon
vor 10 Jahren

Hi, I’m just starting out with programming in general and cant seem to get the api to work properly
$response = Unirest::get(
"https://textalytics-textalytics-sentiment-analysis-11.p.mashape.com/sentiment-1.1?of=json&txt=This is not a

%20good%20start.",
array(
“X-Mashape-Authorization” => “XXX”
),
null
);
When this is the get request made, i get
{“status”:{“code”:“0”,“msg”:“OK”,“credits”:“3”},“model”:“en-general”}
array (size=2)
‘status’ =>
array (size=3)
‘code’ => string ‘0’ (length=1)
‘msg’ => string ‘OK’ (length=2)
‘credits’ => string ‘3’ (length=1)
‘model’ => string ‘en-general’ (length=10)

as the reply from the server. What am i doing wrong?

Junte-se à discussão - adicione o comentário abaixo:

Efetue login / inscreva-se para postar novos comentários