Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
新增删除歌单接口 #570
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaryify committed Aug 20, 2019
1 parent f67f2b4 commit aed229e
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# 更新日志
### 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)

Expand Down
1 change: 1 addition & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
127. 更新歌单名
128. 更新歌单标签
129. 默认搜索关键词
130. 删除歌单


## 环境要求
Expand Down
13 changes: 13 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
127. 更新歌单名
128. 更新歌单标签
129. 默认搜索关键词
130. 删除歌单

## 安装

Expand Down Expand Up @@ -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 可收藏歌单或者取消收藏歌单
Expand Down
13 changes: 13 additions & 0 deletions module/playlist_delete.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// 创建歌单

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
});
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "NeteaseCloudMusicApi",
"version": "3.20.0",
"version": "3.21.0",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
Expand Down

0 comments on commit aed229e

Please sign in to comment.