Skip to content

xhs_reply_comment

回复评论。

参数

参数类型必填说明
noteIdstring笔记 ID
xsecTokenstring安全令牌
commentIdstring要回复的评论 ID
contentstring回复内容
accountstring使用的账号

返回值

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

示例

xhs_reply_comment({
  noteId: "abc123",
  xsecToken: "token",
  commentId: "comment-456",
  content: "谢谢你的喜欢!"
})

获取评论 ID

评论 ID 可以从 xhs_get_note 返回的 comments 数组中获取:

xhs_get_note({ noteId: "abc123", xsecToken: "token" })
// 返回中包含 comments[].id

Released under the MIT License.