headers = { "content-type": "application/json", "Authorization": "JWT " + token, } post_data = json.dumps({"content": "Some Random Content"}) posted_response = requests.post(ENDPOINT, data=post_data, headers=headers) print(posted_response.text)
遇到此错误
{{1}}
权限和身份验证
{"detail":"Authentication credentials were not provided."}