Sentiment Analysis

免费增值
通过 MeaningCloud | 已更新 25 days ago | Data
人气

8.3 / 10

延迟

887ms

服务等级

100%

Health Check

N/A

返回所有讨论

Newbie Problems

Rapid account: Saurabhmenon
saurabhmenon
10 years ago

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?

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论