收藏/取消收藏歌手
调用此接口,可收藏歌手
接口信息
| 项目 | 值 |
|---|---|
| 接口地址 | /artist/sub |
| 请求方式 | GET / POST |
| 需要登录 | 否 |
| 对应模块 | artist_sub |
| 文档分类 | 歌手 |
请求参数
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
id | string | ✅ | - | 歌手 id |
t | string | ✅ | - | 操作,1 为收藏,其他为取消收藏 |
HTTP 示例
bash
GET /artist/sub?id=6452&t=1编程式调用
ts
import { artistSub } from 'hana-music-api'
const result = await artistSub({
id: '6452',
t: '1',
})
console.log(result.body)补充说明
说明 : 调用此接口,可收藏歌手
必选参数 :
id : 歌手 id
t:操作,1 为收藏,其他为取消收藏
接口地址 : /artist/sub
调用例子 : /artist/sub?id=6452&t=1