Skip to content

当前账号关注的用户/歌手

调用此接口, 可获得当前账号关注的用户/歌手

接口信息

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

请求参数

参数类型必填默认值说明
sizenumber | string30返回数量,默认为 30
cursornumber | string0返回数据的 cursor, 默认为 0,传入上一次返回结果的 cursor,将会返回下一页的数据
scenestring0场景, 0 表示所有关注, 1 表示关注的歌手, 2 表示关注的用户, 默认为 0

HTTP 示例

bash
GET /user/follow/mixed?scene=1

编程式调用

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

const result = await userFollowMixed({
  scene: '1',
})

console.log(result.body)

补充说明

说明 : 调用此接口, 可获得当前账号关注的用户/歌手

可选参数 : size : 返回数量,默认为 30

cursor : 返回数据的 cursor, 默认为 0,传入上一次返回结果的 cursor,将会返回下一页的数据

scene : 场景, 0 表示所有关注, 1 表示关注的歌手, 2 表示关注的用户, 默认为 0

接口地址 : /user/follow/mixed

调用例子 : /user/follow/mixed?scene=1

Released under the MIT License.