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.