Skip to content

xhs_like_comment ​

点赞或取消点赞评论。

参数 ​

参数类型必填说明
noteIdstring是笔记 ID
xsecTokenstring是安全令牌
commentIdstring是评论 ID
unlikeboolean否是否取消点赞(默认 false)
accountstring否使用的账号
accountsstring[] | "all"否多账号操作

返回值 ​

json
{
  "success": true,
  "action": "like_comment",
  "commentId": "xxx"
}

示例 ​

点赞评论 ​

xhs_like_comment({
  noteId: "abc123",
  xsecToken: "token",
  commentId: "comment-id"
})

取消点赞评论 ​

xhs_like_comment({
  noteId: "abc123",
  xsecToken: "token",
  commentId: "comment-id",
  unlike: true
})

Released under the MIT License.