add sentiment api post function