提交 aed229e2 编写于 作者: B binaryify

新增删除歌单接口 #570

上级 f67f2b49
# 更新日志
### 3.21.0 | 2019.08.20
- 新增`歌单删除接口`[#570](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/570)
### 3.20.0 | 2019.08.06
- 新增`更新歌单描述`,`更新歌单名`,`更新歌单标签`,`默认搜索关键词` 接口,更新文档[#547](https://github.com/Binaryify/NeteaseCloudMusicApi/pull/547)
......
......@@ -150,6 +150,7 @@
127. 更新歌单名
128. 更新歌单标签
129. 默认搜索关键词
130. 删除歌单
## 环境要求
......
......@@ -145,6 +145,7 @@
127. 更新歌单名
128. 更新歌单标签
129. 默认搜索关键词
130. 删除歌单
## 安装
......@@ -992,6 +993,18 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
返回数据如下图:
![数据](https://ws1.sinaimg.cn/large/006tKfTcgy1fr3va885z5j31a617qwjy.jpg)
### 删除歌单
说明 : 调用此接口 , 传入歌单id可删除歌单
**必选参数 :** `id` : 歌单id
**接口地址 :** `/playlist/delete`
**调用例子 :** `/playlist/delete?id=2947311456`
### 收藏/取消收藏歌单
说明 : 调用此接口 , 传入类型和歌单 id 可收藏歌单或者取消收藏歌单
......
// 创建歌单
module.exports = (query, request) => {
query.cookie.os = 'pc';
const data = {
pid: query.id
};
return request('POST', `https://music.163.com/weapi/playlist/delete`, data, {
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy
});
};
{
"name": "NeteaseCloudMusicApi",
"version": "3.20.0",
"version": "3.21.0",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册