You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
307 B

2 years ago
import requests
payload = {'x': 52, 'y': 20, 'color': 'r'}
#response = requests.post('http://pb.dmcraft.online', data=payload)
response = requests.post('http://127.0.0.1:3333', data=payload)
print(response)
2 years ago
#Get color
response = requests.get('http://127.0.0.1:3333/?get_color=52,20')
print(response.text)