Fixes & Updates - 2026-06-01: Integrate Back-End v3 updates, fix call/connection issues across apps
This commit is contained in:
17
scratch/test_api.py
Normal file
17
scratch/test_api.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import urllib.request
|
||||
import json
|
||||
|
||||
def check_country(country):
|
||||
url = "https://api.intaleq.xyz/intaleq_v3/ride/kazan/get.php"
|
||||
data = json.dumps({"country": country}).encode('utf-8')
|
||||
req = urllib.request.Request(url, data=data, headers={'Content-Type': 'application/json'})
|
||||
try:
|
||||
with urllib.request.urlopen(req) as response:
|
||||
res = response.read().decode('utf-8')
|
||||
print(f"Country: {country} -> {res}")
|
||||
except Exception as e:
|
||||
print(f"Country: {country} -> Error: {e}")
|
||||
|
||||
check_country("Jordan")
|
||||
check_country("Syria")
|
||||
check_country("Egypt")
|
||||
Reference in New Issue
Block a user