Spaces:
Sleeping
Sleeping
File size: 424 Bytes
6f3cdc4 ddc8825 6f3cdc4 ddc8825 6f3cdc4 abee9b3 6f3cdc4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import requests
import urllib3
api_url = "https://ai-app-ly.infinityfreeapp.com"
# Disable SSL certificate verification
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
data = {
"register": True,
"username": "rth",
"password": "gkfgfgh"
}
response = requests.post(api_url, data=data, verify=False)
json_data = response.json()
message = json_data['message']
print(message) |