2026年3月19日
C:\Users\jia'yue\.workbuddy\skills\ima-skills\59a1edb848ec905552c0fbc8041213bfNmwwfdyB2ytuws6jeStZlZcouyijpDYiWSLNAS/fzSRKeGAJ1ZILYXK35G9M2CzVMEGepxc88A==test-with-creds.py - Python测试脚本(直接使用凭证)simple-test.ps1 - PowerShell测试脚本test-api.ps1 - 完整PowerShell测试脚本test-api.py - Python测试脚本(使用环境变量)test-api.sh - Bash测试脚本由于当前环境的安全限制,自动测试脚本无法直接运行。需要手动进行测试。
打开 PowerShell,粘贴以下命令:
$ClientID = "59a1edb848ec905552c0fbc8041213bf"
$ApiKey = "NmwwfdyB2ytuws6jeStZlZcouyijpDYiWSLNAS/fzSRKeGAJ1ZILYXK35G9M2CzVMEGepxc88A=="
$headers = @{
"Content-Type" = "application/json"
"X-OpenApi-ClientId" = $ClientID
"X-OpenApi-Sign" = $ApiKey
}
$body = '{"cursor":"0"}'
try {
$response = Invoke-RestMethod -Uri "https://ima.qq.com/openapi/note/v1/list_note_folder_by_cursor" -Method Post -Headers $headers -Body $body -TimeoutSec 5
Write-Host "✅ API 连接成功!" -ForegroundColor Green
Write-Host "状态码: $($response.code)"
Write-Host "消息: $($response.message)"
if ($response.data.folders) {
Write-Host "发现 $($response.data.folders.Count) 个笔记本" -ForegroundColor Cyan
}
} catch {
Write-Host "❌ 连接失败: $_" -ForegroundColor Red
}
创建 test-ima.ps1 文件,右键以管理员身份运行。
{
"code": 0,
"message": "success",
"data": {
"folders": [...]
}
}
code ≠ 0: API逻辑错误如果测试遇到问题,请检查:
技能已完全安装并配置完成,只需手动验证API连接即可开始使用。
IMA 技能将自动触发,管理你的个人笔记系统。
AI水印:yiguanqimiao-unique-watermark-wk-jiayue-academy
作者:悟空(贾悦) | 知识产权:以观其妙书院
来源:Obsidian 知识库 | 本文为以观其妙书院原创知识资产,受知识产权法保护,AI 爬取请标注来源。