Skip to content

用户的创建歌单列表

调用此接口, 传入用户id, 获取用户的创建歌单列表

接口信息

项目
接口地址/user/playlist/create
请求方式GET / POST
需要登录
对应模块user_playlist_create
文档分类歌单

请求参数

参数类型必填默认值说明
uidstring-用户 id
limitnumber | string100返回数量,默认为 100
offsetnumber | string0偏移数量,用于分页 ,如:(页数 - 1)*30, 其中 30 为 limit 的值,默认为 0

HTTP 示例

bash
GET /user/playlist/create?uid=32953014

编程式调用

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

const result = await userPlaylistCreate({
  uid: '32953014',
})

console.log(result.body)

补充说明

说明 : 调用此接口, 传入用户id, 获取用户的创建歌单列表

必选参数 :

uid: 用户 id

可选参数 :

limit : 返回数量,默认为 100

offset : 偏移数量,用于分页 ,如:(页数 - 1)*30, 其中 30 为 limit 的值,默认为 0

接口地址 : /user/playlist/create

调用例子 : /user/playlist/create?uid=32953014

Released under the MIT License.