← 返回 |
外部系统可以直接 POST 写入新消息:
POST https://cafe.neverworkhard.top/api/notes
curl -X POST https://cafe.neverworkhard.top/api/notes \
  -H "Content-Type: application/json" \
  -d '{"content":"消息内容","source":"系统名"}'
source 字段可选,用来标注消息来自哪个系统,不传默认是 web。
历史记录