支持以下两种方式(任选其一):
Authorization: Bearer YOUR_API_KEY
"api_key": "YOUR_API_KEY"
| 参数名 | 类型 | 说明 |
|---|---|---|
api_id |
Int | 固定值: 7 |
api_key |
String | (可选)如果不使用Header鉴权,请在此传入 Key |
params.note_id |
string | |
params.xsec_token |
string |
curl -X POST "https://api2.haofangkeji.com/api/run" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-xxxxxxxx" \
-d '{
"api_id": 7,
"params": {
"note_id": "",
"xsec_token": ""
}
}'
如果您不习惯使用 Header,可以将 API Key 直接放在 Body 里:
{
"api_key": "sk-xxxxxxxx",
"api_id": 7,
"params": {
"note_id": "",
"xsec_token": ""
}
}
[
{
"nickname": "momo",
"content": "Aqara的U400已经国外上市了,等就是了。",
"create_time": 1768904611000
}
]