Skip to content

获取热门话题

调用此接口,可获取热门话题

接口信息

项目
接口地址/hot/topic
请求方式GET / POST
需要登录
对应模块hot_topic
文档分类社交与消息

请求参数

参数类型必填默认值说明
limitnumber | string20取出评论数量,默认为 20
offsetnumber | string-偏移数量,用于分页,如:(评论页数 - 1)*20, 其中 20 为 limit 的值

HTTP 示例

bash
GET /hot/topic?limit=30&offset=30

编程式调用

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

const result = await hotTopic({
  limit: '30',
  offset: '30',
})

console.log(result.body)

补充说明

说明 : 调用此接口,可获取热门话题

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

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

接口地址 : /hot/topic

调用例子 : /hot/topic?limit=30&offset=30

Released under the MIT License.