Appearance
调用此接口,传入音乐 id 和 limit 参数,可获得该 电台节目 的所有评论 (
/comment/dj
GET
POST
comment_dj
id
limit
offset
before
time
GET /comment/dj?id=794062371
import { commentDj } from 'hana-music-api'; const result = await commentDj({ id: '794062371', }); console.log(result.body);
body.code、body.comments、body.comments[].commentId 收紧;body.hotComments 是可以没有的路径:越界分页时整个缺失,出现时 hotComments[].commentId 收紧。评论记录复用 CommentRecord,user、beReplied、likedCount、time、decoration、ipLocation、pendantData 等其余声明字段都宽松。零评论电台(录制 comment_dj.empty.json,电台 1230174483)返回空的 comments、hotComments;越界分页(录制 comment_dj.out-of-range.json,offset=100000,节目 794062371)返回 comments: [] 且没有 hotComments。非空录制 comment_dj.default.json(节目 794062371)保留 9 条评论。topComments 只见过空数组、commentBanner 只见过 null,没有声明,原样保留。登录对照先用 login_status 确认 account.anonimousUser: false,只抽查了本批匿名录制中非 null 的路径与类型;登录录制未保留;不对公开结构作相同性断言。
body.code
body.comments
body.comments[].commentId
body.hotComments
hotComments[].commentId
CommentRecord
user
beReplied
likedCount
decoration
ipLocation
pendantData
comment_dj.empty.json
comments
hotComments
comment_dj.out-of-range.json
offset=100000
comments: []
comment_dj.default.json
topComments
commentBanner
null
login_status
account.anonimousUser: false
说明 : 调用此接口,传入音乐 id 和 limit 参数,可获得该 电台节目 的所有评论 ( 不需要登录 )
必选参数 : id: 电台节目的 id
可选参数 : limit: 取出评论数量,默认为 20
offset: 偏移数量,用于分页,如:(评论页数 - 1)*20, 其中 20 为 limit 的值
before: 分页参数,取上一页最后一项的 time 获取下一页数据(获取超过 5000 条评论的时候需要用到)
接口地址 : /comment/dj
调用例子 : /comment/dj?id=794062371
/comment/dj?id=794062371
电台节目评论
接口信息
/comment/djGET/POSTcomment_dj请求参数
idlimitoffsetbeforetime获取下一页数据(获取超过 5000 条评论的时候需要用到)HTTP 示例
编程式调用
返回内容
body.code、body.comments、body.comments[].commentId收紧;body.hotComments是可以没有的路径:越界分页时整个缺失,出现时hotComments[].commentId收紧。评论记录复用CommentRecord,user、beReplied、likedCount、time、decoration、ipLocation、pendantData等其余声明字段都宽松。零评论电台(录制comment_dj.empty.json,电台 1230174483)返回空的comments、hotComments;越界分页(录制comment_dj.out-of-range.json,offset=100000,节目 794062371)返回comments: []且没有hotComments。非空录制comment_dj.default.json(节目 794062371)保留 9 条评论。topComments只见过空数组、commentBanner只见过null,没有声明,原样保留。登录对照先用login_status确认account.anonimousUser: false,只抽查了本批匿名录制中非null的路径与类型;登录录制未保留;不对公开结构作相同性断言。补充说明
说明 : 调用此接口,传入音乐 id 和 limit 参数,可获得该 电台节目 的所有评论 ( 不需要登录 )
必选参数 :
id: 电台节目的 id可选参数 :
limit: 取出评论数量,默认为 20offset: 偏移数量,用于分页,如:(评论页数 - 1)*20, 其中 20 为 limit 的值before: 分页参数,取上一页最后一项的time获取下一页数据(获取超过 5000 条评论的时候需要用到)接口地址 :
/comment/dj调用例子 :
/comment/dj?id=794062371