Created API call for Sentiment analysis