Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,20 @@
|
|
1 |
import requests
|
|
|
2 |
|
3 |
-
|
4 |
-
payload = {
|
5 |
-
"id": "4",
|
6 |
-
"firstname": "Hulo",
|
7 |
-
"lastname": "Nuawara",
|
8 |
-
"token": "23eere32r43r543543t"
|
9 |
-
}
|
10 |
|
11 |
-
|
|
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import requests
|
2 |
+
import urllib3
|
3 |
|
4 |
+
api_url = "https://ai-app-ly.infinityfreeapp.com/tele.php"
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
+
# Disable SSL certificate verification
|
7 |
+
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
8 |
|
9 |
+
|
10 |
+
data = {
|
11 |
+
"register": True,
|
12 |
+
"username": "rth",
|
13 |
+
"password": "gkfgfgh"
|
14 |
+
}
|
15 |
+
|
16 |
+
response = requests.post(api_url, data=data, verify=False)
|
17 |
+
json_data = response.json()
|
18 |
+
message = json_data['message']
|
19 |
+
|
20 |
+
print(message)
|