Issue with placing a bet #38
-
Please help. I keep getting a 400: MALFORMED_REQUEST response when I send a betting request using the template provided. Specifically, the error message reads 'invalid body payload'. Here is the request code in Python: url = "https://sports-api.cloudbet.com/pub/v3/bets/place" payload = { headers = { response = requests.request("POST", url, headers=headers, data=payload) Has the api changed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ah, I fixed the problem by changing the request function parameter "data = payload" to "json = payload". Silly mistake. |
Beta Was this translation helpful? Give feedback.
Ah, I fixed the problem by changing the request function parameter "data = payload" to "json = payload". Silly mistake.