made sentiment analysis api caller