handle encoding for json

Instead of using data=data, use json=data to ensure the requests library automatically handles the encoding for JSON:
This commit is contained in:
ssweber 2025-03-31 14:33:30 -04:00 committed by GitHub
parent b999c70f16
commit 7734e19e28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,7 +62,7 @@ To ensure secure access to the API, authentication is required 🛡️. You can
}
]
}
response = requests.post(url, headers=headers, data=data)
response = requests.post(url, headers=headers, json=data)
return response.json()
```