Back to All

Basic Rest call to snatchbot agent using python

I am trying to communicate with my bot using http request in python. I am using a post method with 'user_id' and 'message' as parameters. My code is as follows.

URL =
PARAMS = {'user_id':'1234567890', 'message':'Hi'}
r = requests.post(URL, params=PARMAS)
print r.text

I am getting the welcome response for the first time and for all subsequent http calls I am not getting any response. The response is blank. Can someone pleases help me with this?