json= vs data= is a classic confusion. Here’s the deal:
- `json=` automatically sets headers and converts your dict to JSON.
- `data=` sends it as-is (might need manual headers).
For request post Python stuff, stick with `json=` unless the API docs say otherwise.
Also, if it’s “not sending,” maybe add a `print(response)` to see if it’s even hitting the server.
- `json=` automatically sets headers and converts your dict to JSON.
- `data=` sends it as-is (might need manual headers).
For request post Python stuff, stick with `json=` unless the API docs say otherwise.
Also, if it’s “not sending,” maybe add a `print(response)` to see if it’s even hitting the server.
