diagnose-backend/test_api.py
pzc-x99 f56b66d8f1 /health/
/error_code_map/
/ec_user/*
/diagnose/*
/admin/*
2025-02-28 23:05:31 +08:00

19 lines
476 B
Python

import requests
# 设置请求头
headers = {
'token': 'Token 486ef8198bb10ba6878eba95771c064ff64db81a' # 替换 your_token_here 为实际的 token
}
# 发送 GET 请求
url = 'http://a.debin.cc:55800/auth/' # 目标 URL
response = requests.get(url, headers=headers)
# 输出响应
if response.status_code == 200:
print("Response JSON:", response.json()) # 输出响应的 JSON 数据
else:
print(f"Request failed with status code {response.status_code}")