import requests
data = {
"username": "admin",
"password": "password"
}
rs = requests.post("http://192.168.31.78:7777/login", json=data)
print(rs.status_code)
data = rs.json()
print(data)
token = data["token"]
data = {
"token": token
}
data = {}
rs = requests.post("http://192.168.31.78:7777/", json=data)
print(rs.status_code)
print(rs.json())