Skip to content

收藏/取消收藏专辑 ​

调用此接口,可收藏/取消收藏专辑

接口信息 ​

项目值
接口地址/album/sub
请求方式GET / POST
需要登录否
对应模块album_sub
文档分类专辑

请求参数 ​

参数类型必填默认值说明
idstring✅-专辑 id
tstring✅-1 为收藏,其他为取消收藏

HTTP 示例 ​

bash
GET /album/sub?t=1
GET /album/sub?t=0

编程式调用 ​

ts
import { albumSub } from 'hana-music-api';

const result = await albumSub({
  t: '1',
});

console.log(result.body);

补充说明 ​

说明 : 调用此接口,可收藏/取消收藏专辑

必选参数 :

id : 专辑 id

t : 1 为收藏,其他为取消收藏

接口地址 : /album/sub

调用例子 : /album/sub?t=1 /album/sub?t=0

Released under the MIT License.