How to properly use requests.post in Python for API calls? or What's the best way to handle requests.

20 Replies, 1522 Views

Thanks everyone! Tried adding headers and timeout, and it worked! Still getting a 400 sometimes tho.

One thing—how do I know if the API wants `json=` or `data=`? The docs aren’t clear.

Also, is there a tool to see raw HTTP requests? Like, what’s actually being sent?

Messages In This Thread



Users browsing this thread: 2 Guest(s)