Skip to content

收藏/取消收藏歌手 ​

调用此接口,可收藏歌手

接口信息 ​

项目值
接口地址/artist/sub
请求方式GET / POST
需要登录否
对应模块artist_sub
文档分类歌手

请求参数 ​

参数类型必填默认值说明
idstring✅-歌手 id
tstring✅-操作,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

Released under the MIT License.