update
This commit is contained in:
34
previousversion/0.2/test/test_2.jl
Normal file
34
previousversion/0.2/test/test_2.jl
Normal file
@@ -0,0 +1,34 @@
|
||||
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())
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user