获取热门话题
调用此接口,可获取热门话题
接口信息
| 项目 | 值 |
|---|---|
| 接口地址 | /hot/topic |
| 请求方式 | GET / POST |
| 需要登录 | 否 |
| 对应模块 | hot_topic |
| 文档分类 | 社交与消息 |
请求参数
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
limit | number | string | — | 20 | 取出评论数量,默认为 20 |
offset | number | 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