Files
OS-Copilot/friday/api/wolfram_alpha/test.py
2024-02-05 15:44:07 +08:00

21 lines
334 B
Python

import requests
import json
# API endpoint
url = "http://43.159.144.130:8079/tools/wolframalpha"
# Headers
headers = {
'Content-Type': 'application/json'
}
# Data
data = {
"query": "5+6"
}
# Send the request
response = requests.post(url, headers=headers, data=json.dumps(data))
# Print the response
print(response.json())