first commit
This commit is contained in:
24
test_api.py
Normal file
24
test_api.py
Normal file
@@ -0,0 +1,24 @@
|
||||
import requests
|
||||
import json
|
||||
|
||||
# 禁用 SSL 警告
|
||||
import urllib3
|
||||
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
||||
|
||||
# 测试数据
|
||||
test_data = {
|
||||
'keyword': '12132ed@qq.com'
|
||||
}
|
||||
|
||||
# 发送请求
|
||||
response = requests.post(
|
||||
'https://cursorapi.nosqli.com/admin/api.member/check',
|
||||
json=test_data,
|
||||
verify=False,
|
||||
proxies={"http": None, "https": None}
|
||||
)
|
||||
|
||||
# 打印响应
|
||||
print("Status Code:", response.status_code)
|
||||
print("\nResponse:")
|
||||
print(json.dumps(response.json(), indent=2, ensure_ascii=False))
|
||||
Reference in New Issue
Block a user