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

Commit

Permalink
新增歌单详情动态接口 #1088
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaryify committed Jan 9, 2021
1 parent ffaa742 commit 9430758
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# 更新日志
### 4.0.1 | 2021.1.09
- 新增歌单详情动态接口 [#1088](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1088)

### 4.0.0 | 2021.1.03
- 新增云盘上传接口,新增二维码登录相关接口和相关demo(http://localhost:3000/qrlogin.html, http://localhost:3000/cloud.html),更新 d.ts

Expand Down
5 changes: 5 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@ banner({ type:0 }).then(res=>{
195. 关注歌手新歌
196. 关注歌手新MV
197. 歌手详情
198. 云盘上传
199. 二维码登录
200. 话题详情
201. 话题详情热门动态
202. 歌单详情动态

## 更新日志

Expand Down
12 changes: 10 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@
199. 二维码登录
200. 话题详情
201. 话题详情热门动态
202. 歌单详情动态

## 安装

Expand Down Expand Up @@ -1221,8 +1222,15 @@ tags: 歌单标签

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

返回数据如下图 :
![歌单详情](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/%E6%AD%8C%E5%8D%95%E8%AF%A6%E6%83%85.png)
### 歌单详情动态

说明 : 调用后可获取歌单详情动态部分,如评论数,是否收藏,播放数

**必选参数 :** `id` : 歌单 id

**接口地址 :** `/playlist/detail/dynamic`

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

### 获取音乐 url

Expand Down
4 changes: 2 additions & 2 deletions docs/_coverpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
> 网易云音乐 NodeJS 版 API
- 全部接口已升级到最新
- 具备登录接口,多达100多个接口
- 具备登录接口,多达200多个接口
- 更完善的文档


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

![color](#ffffff)
![color](#ffffff)
4 changes: 4 additions & 0 deletions interface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1389,3 +1389,7 @@ export function login_qr_check(
key?: number | string
} & RequestBaseConfig,
): Promise<Response>

export function playlist_detail_dynamic(
params: { id: string | number } & RequestBaseConfig,
): Promise<Response>
20 changes: 20 additions & 0 deletions module/playlist_detail_dynamic.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// 初始化名字

module.exports = (query, request) => {
const data = {
id: query.id,
n: 100000,
s: query.s || 8,
}
return request(
'POST',
`https://music.163.com/api/playlist/detail/dynamic`,
data,
{
crypto: 'api',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}

1 comment on commit 9430758

@vercel
Copy link

@vercel vercel bot commented on 9430758 Jan 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.