Unirest is not compatible with python3 and that's the library that mashape APIs' use on python projects.
I've decided to use python request library to make a POST request, but I'm getting a 400 HTTP error. Everything looks good to me, but I can't figure out what I'm doing wrong.
url = "https://japerk-text-processing.p.mashape.com/sentiment/"
myHeaders={
"X-Mashape-Key": mashape_key,
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json"
}
myParams={
"language": "english",
"text": tweet_text
}
r = requests.post(url, headers=myHeaders, params=myParams)
print(r)