Appearance
登录后调用此接口 ,可获取评论
/msg/comments
GET
POST
msg_comments
uid
limit
before
updateTime
GET /msg/comments?uid=32953014
import { msgComments } from 'hana-music-api'; const result = await msgComments({ uid: '32953014', }); console.log(result.body);
body.comments 是收到的评论列表,每条评论复用 CommentRecord 的字段,并补上 beRepliedContent、beRepliedUser、combindId、commentExist、commentStatus、resourceJson、resourceType、subCommentExist、threadId 等宽松字段。只有 code、comments、comments[].commentId 收紧;total、more 和评论的其他字段宽松。没有收到的评论或 before 越界时返回空数组。未登录时上游返回 code: 301,SDK 按业务拒绝原样转交。结构定义和类型是 MsgCommentsBody。
body.comments
CommentRecord
beRepliedContent
beRepliedUser
combindId
commentExist
commentStatus
resourceJson
resourceType
subCommentExist
threadId
code
comments
comments[].commentId
total
more
code: 301
MsgCommentsBody
说明 : 登录后调用此接口 ,可获取评论
必选参数 : uid: 用户 的 id,只能和登录账号的 id 一致
可选参数 :
limit : 返回数量,默认为 30
before : 分页参数,取上一页最后一个歌单的 updateTime 获取下一页数据
接口地址 : /msg/comments
调用例子 : /msg/comments?uid=32953014
/msg/comments?uid=32953014
通知 - 评论
接口信息
/msg/commentsGET/POSTmsg_comments请求参数
uidlimitbeforeupdateTime获取下一页数据HTTP 示例
编程式调用
返回内容
body.comments是收到的评论列表,每条评论复用CommentRecord的字段,并补上beRepliedContent、beRepliedUser、combindId、commentExist、commentStatus、resourceJson、resourceType、subCommentExist、threadId等宽松字段。只有code、comments、comments[].commentId收紧;total、more和评论的其他字段宽松。没有收到的评论或before越界时返回空数组。未登录时上游返回code: 301,SDK 按业务拒绝原样转交。结构定义和类型是MsgCommentsBody。补充说明
说明 : 登录后调用此接口 ,可获取评论
必选参数 :
uid: 用户 的 id,只能和登录账号的 id 一致可选参数 :
limit: 返回数量,默认为 30before: 分页参数,取上一页最后一个歌单的updateTime获取下一页数据接口地址 :
/msg/comments调用例子 :
/msg/comments?uid=32953014