Dev Added function to get responses using custom condition and to get a
token.