请求头信息:
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Accept: application/json
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
query | string | 是 | 查询参数 |
curl -X POST 'https://cross.cybermagi.space/api/v1/review'
# Python调用示例
import requests
API_KEY = "YOUR_API_KEY"
BASE_URL = "https://cross.cybermagi.space"
headers = {
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json"
}
data = {
"target": "SU"
}
response = requests.post(
f"{BASE_URL}/api/v1/review",
json=data,
headers=headers
)
result = response.json()
print(result)
{"success": true}
点击返回主页,获取API密钥并在线测试