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

Commit 1a36224

Browse files
committed
新增独家放送列表接口
1 parent b7f8d9d commit 1a36224

File tree

5 files changed

+39
-2
lines changed

5 files changed

+39
-2
lines changed

CHANGELOG.MD

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# 更新日志
2+
### 3.32.2 | 2020.06.05
3+
- 新增独家放送列表接口 [#808](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/808)
4+
25
### 3.32.1 | 2020.06.03
36
- 新增歌曲排序接口
47

README.MD

+3
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@
168168
145. 购买数字专辑
169169
146. 获取 mv 点赞转发评论数数据
170170
147. 获取视频点赞转发评论数数据
171+
148. 调整歌单顺序
172+
149. 调整歌曲顺序
173+
150. 独家放送列表
171174

172175
## 环境要求
173176

docs/README.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@
163163
145. 购买数字专辑
164164
146. 获取 mv 点赞转发评论数数据
165165
147. 获取视频点赞转发评论数数据
166+
148. 调整歌单顺序
167+
149. 调整歌曲顺序
168+
150. 独家放送列表
166169

167170
## 安装
168171

@@ -1882,14 +1885,28 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
18821885

18831886
**调用例子 :** `/program/recommend`
18841887

1885-
### 独家放送
1888+
### 独家放送(入口列表)
18861889

18871890
说明 : 调用此接口 , 可获取独家放送
18881891

18891892
**接口地址 :** `/personalized/privatecontent`
18901893

18911894
**调用例子 :** `/personalized/privatecontent`
18921895

1896+
### 独家放送列表
1897+
1898+
说明 : 调用此接口 , 可获取独家放送列表
1899+
1900+
**可选参数 :**
1901+
1902+
`limit` : 返回数量 , 默认为 60
1903+
1904+
`offset` : 偏移数量,用于分页 , 如 :( 页数 -1)\*60, 其中 60 为 limit 的值 , 默认为 0
1905+
1906+
**接口地址 :** `/personalized/privatecontent/list`
1907+
1908+
**调用例子 :** `/personalized/privatecontent/list?limit=1&offset=2`
1909+
18931910
### mv 排行
18941911

18951912
说明 : 调用此接口 , 可获取 mv 排行
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// 独家放送列表
2+
3+
module.exports = (query, request) => {
4+
const data = {
5+
offset: query.offset || 0,
6+
total: 'true',
7+
limit: query.limit || 60,
8+
}
9+
return request(
10+
'POST',
11+
`https://music.163.com/api/v2/privatecontent/list`, data,
12+
{ crypto: 'weapi', cookie: query.cookie, proxy: query.proxy }
13+
)
14+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "NeteaseCloudMusicApi",
3-
"version": "3.32.1",
3+
"version": "3.32.2",
44
"description": "网易云音乐 NodeJS 版 API",
55
"scripts": {
66
"start": "node app.js",

0 commit comments

Comments
 (0)