35 lines
395 B
Julia
35 lines
395 B
Julia
import requests
|
|
|
|
# URL of the API endpoint
|
|
url = 'https://api.yiem.cc/wine/agent/sommelier/prompt/apiv1'
|
|
|
|
# Data to be sent in the JSON request
|
|
data = {
|
|
'sid': 'dummySID',
|
|
'txt': 'hello'
|
|
}
|
|
|
|
# Sending the POST request
|
|
response = requests.post(url, json=data)
|
|
|
|
# Displaying the response
|
|
print('Status Code:', response.status_code)
|
|
print('Response JSON:', response.json())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|