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

Commit 9430758

Browse files
committed
新增歌单详情动态接口 #1088
1 parent ffaa742 commit 9430758

6 files changed

+44
-4
lines changed

CHANGELOG.MD

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# 更新日志
2+
### 4.0.1 | 2021.1.09
3+
- 新增歌单详情动态接口 [#1088](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1088)
4+
25
### 4.0.0 | 2021.1.03
36
- 新增云盘上传接口,新增二维码登录相关接口和相关demo(http://localhost:3000/qrlogin.html, http://localhost:3000/cloud.html),更新 d.ts
47

README.MD

+5
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,11 @@ banner({ type:0 }).then(res=>{
299299
195. 关注歌手新歌
300300
196. 关注歌手新MV
301301
197. 歌手详情
302+
198. 云盘上传
303+
199. 二维码登录
304+
200. 话题详情
305+
201. 话题详情热门动态
306+
202. 歌单详情动态
302307

303308
## 更新日志
304309

docs/README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@
217217
199. 二维码登录
218218
200. 话题详情
219219
201. 话题详情热门动态
220+
202. 歌单详情动态
220221

221222
## 安装
222223

@@ -1221,8 +1222,15 @@ tags: 歌单标签
12211222

12221223
**调用例子 :** `/playlist/detail?id=24381616`
12231224

1224-
返回数据如下图 :
1225-
![歌单详情](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/%E6%AD%8C%E5%8D%95%E8%AF%A6%E6%83%85.png)
1225+
### 歌单详情动态
1226+
1227+
说明 : 调用后可获取歌单详情动态部分,如评论数,是否收藏,播放数
1228+
1229+
**必选参数 :** `id` : 歌单 id
1230+
1231+
**接口地址 :** `/playlist/detail/dynamic`
1232+
1233+
**调用例子 :** `/playlist/detail/dynamic?id=24381616`
12261234

12271235
### 获取音乐 url
12281236

docs/_coverpage.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
> 网易云音乐 NodeJS 版 API
44
55
- 全部接口已升级到最新
6-
- 具备登录接口,多达100多个接口
6+
- 具备登录接口,多达200多个接口
77
- 更完善的文档
88

99

1010
[GitHub](https://github.com/Binaryify/NeteaseCloudMusicApi)
1111
[Get Started](#neteasecloudmusicapi)
1212

13-
![color](#ffffff)
13+
![color](#ffffff)

interface.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1389,3 +1389,7 @@ export function login_qr_check(
13891389
key?: number | string
13901390
} & RequestBaseConfig,
13911391
): Promise<Response>
1392+
1393+
export function playlist_detail_dynamic(
1394+
params: { id: string | number } & RequestBaseConfig,
1395+
): Promise<Response>

module/playlist_detail_dynamic.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// 初始化名字
2+
3+
module.exports = (query, request) => {
4+
const data = {
5+
id: query.id,
6+
n: 100000,
7+
s: query.s || 8,
8+
}
9+
return request(
10+
'POST',
11+
`https://music.163.com/api/playlist/detail/dynamic`,
12+
data,
13+
{
14+
crypto: 'api',
15+
cookie: query.cookie,
16+
proxy: query.proxy,
17+
realIP: query.realIP,
18+
},
19+
)
20+
}

0 commit comments

Comments
 (0)