Skip to content

xhs_post_comment

发表评论。

参数

参数类型必填说明
noteIdstring笔记 ID
xsecTokenstring安全令牌
contentstring评论内容
accountstring使用的账号
accountsstring[] | "all"多账号操作

返回值

json
{
  "success": true,
  "commentId": "comment-id"
}

示例

发表评论

xhs_post_comment({
  noteId: "abc123",
  xsecToken: "token",
  content: "写得真好!"
})

多账号评论

xhs_post_comment({
  noteId: "abc123",
  xsecToken: "token",
  content: "支持!",
  accounts: ["账号1", "账号2"]
})

注意事项

  • 评论内容需遵守社区规范
  • 频繁评论可能触发限制

Released under the MIT License.