Skip to content

电台节目评论

调用此接口,传入音乐 id 和 limit 参数,可获得该 电台节目 的所有评论 (

接口信息

项目
接口地址/comment/dj
请求方式GET / POST
需要登录
对应模块comment_dj
文档分类评论

请求参数

参数类型必填默认值说明
idstring-电台节目的 id
limitnumber | string20取出评论数量,默认为 20
offsetnumber | string-偏移数量,用于分页,如:(评论页数 - 1)*20, 其中 20 为 limit 的值
beforenumber | string-分页参数,取上一页最后一项的 time 获取下一页数据(获取超过 5000 条评论的时候需要用到)

HTTP 示例

bash
GET /comment/dj?id=794062371

编程式调用

ts
import { commentDj } from 'hana-music-api'

const result = await commentDj({
  id: '794062371',
})

console.log(result.body)

补充说明

说明 : 调用此接口,传入音乐 id 和 limit 参数,可获得该 电台节目 的所有评论 ( 不需要登录 )

必选参数 : id: 电台节目的 id

可选参数 : limit: 取出评论数量,默认为 20

offset: 偏移数量,用于分页,如:(评论页数 - 1)*20, 其中 20 为 limit 的值

before: 分页参数,取上一页最后一项的 time 获取下一页数据(获取超过 5000 条评论的时候需要用到)

接口地址 : /comment/dj

调用例子 : /comment/dj?id=794062371

Released under the MIT License.