GetSentiment

FREEMIUM
By GetSentiment | Updated 15 days ago | Tools
Health Check

N/A

Back to All Discussions

text missing

Rapid account: Bdelamatre
bdelamatre
7 years ago

response of the default PHP example:

object(Unirest\Response)#1542 (4) {
[“code”]=>
int(200)
[“raw_body”]=>
string(83) “{
“docs”: [],
“warnings”: [
“A required field is missing: “text””
]
}

[“body”]=>
object(stdClass)#1543 (2) {
[“docs”]=>
array(0) {
}
[“warnings”]=>
array(1) {
[0]=>
string(35) “A required field is missing: “text””
}
}
[“headers”]=>
array(9) {
[0]=>
string(15) “HTTP/1.1 200 OK”
[“Content-Type”]=>
string(16) “application/json”
[“Date”]=>
string(29) “Wed, 29 Mar 2017 21:54:34 GMT”
[“Server”]=>
string(13) “Mashape/5.0.6”
[“X-RateLimit-Daily-limit-Limit”]=>
string(3) “100”
[“X-RateLimit-Daily-limit-Remaining”]=>
string(2) “98”
[“X-Vcap-Request-Id”]=>
string(36) “d73b8e56-864e-4d3c-461c-dbb6d335112e”
[“Content-Length”]=>
string(2) “83”
[“Connection”]=>
string(10) “keep-alive”
}
}

Rapid account: Getsentiment
getsentiment Commented 7 years ago

Closing the ticket - please get in touch if the problem is still there.

Rapid account: Getsentiment
getsentiment Commented 7 years ago

This may be an issue with the Unirest client library. Calling from the test console on Mashape does work. You can try using this php example: https://gist.github.com/vpekar/0b527032a43ab9d73ff0.

Join in the discussion - add comment below:

Login / Signup to post new comments