Closed dhimmel closed 6 years ago
Hey Daniel, I'm glad my bot can help you! I guess what you described is not an issue with the bot itself. Rather you probably need to tell requests
that your payload is JSON-encoded. Try response = requests.post(url, json=payload)
. If it doesn't work, get back to me.
json=payload
did the trick! Awesome.
I'm really excited to message myself via MiddleManBot to alert me when trailhead spots open for the John Muir Trail.
I'm calling the public bot in python as follows:
I'm getting a response with status code
400
, whose text is:Any idea what the issue could be?