This commit is contained in:
hackrobot
2024-07-18 09:14:39 +08:00
parent 34ceac3076
commit 9f89799e8d
2 changed files with 54 additions and 0 deletions

8
test.py Normal file
View File

@@ -0,0 +1,8 @@
import requests
url = "http://127.0.0.1:8000/send_message"
data = {"message": "Hello, World!"}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=data, headers=headers)
print(response.json())