feat: 更新版本号到8.0.1

This commit is contained in:
Your Name
2025-02-09 23:25:21 +08:00
parent 348c233194
commit ae07d88b28
5 changed files with 165 additions and 82 deletions

29
test_mail_api.py Normal file
View File

@@ -0,0 +1,29 @@
import requests
import json
# 禁用 SSL 警告
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
def test_mail_api():
print("开始测试邮箱API...")
try:
# 发送请求
response = requests.get(
'https://cursorapi.nosqli.com/admin/api.mail/getRandom',
verify=False,
proxies={"http": None, "https": None},
timeout=10
)
# 打印响应
print("\n状态码:", response.status_code)
print("\n响应内容:")
print(json.dumps(response.json(), indent=2, ensure_ascii=False))
except Exception as e:
print(f"\n请求失败: {str(e)}")
if __name__ == "__main__":
test_mail_api()