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

Commit

Permalink
新增独家放送列表接口
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaryify committed Jun 5, 2020
1 parent b7f8d9d commit 1a36224
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# 更新日志
### 3.32.2 | 2020.06.05
- 新增独家放送列表接口 [#808](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/808)

### 3.32.1 | 2020.06.03
- 新增歌曲排序接口

Expand Down
3 changes: 3 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@
145. 购买数字专辑
146. 获取 mv 点赞转发评论数数据
147. 获取视频点赞转发评论数数据
148. 调整歌单顺序
149. 调整歌曲顺序
150. 独家放送列表

## 环境要求

Expand Down
19 changes: 18 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@
145. 购买数字专辑
146. 获取 mv 点赞转发评论数数据
147. 获取视频点赞转发评论数数据
148. 调整歌单顺序
149. 调整歌曲顺序
150. 独家放送列表

## 安装

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

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

### 独家放送
### 独家放送(入口列表)

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

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

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

### 独家放送列表

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

**可选参数 :**

`limit` : 返回数量 , 默认为 60

`offset` : 偏移数量,用于分页 , 如 :( 页数 -1)\*60, 其中 60 为 limit 的值 , 默认为 0

**接口地址 :** `/personalized/privatecontent/list`

**调用例子 :** `/personalized/privatecontent/list?limit=1&offset=2`

### mv 排行

说明 : 调用此接口 , 可获取 mv 排行
Expand Down
14 changes: 14 additions & 0 deletions module/personalized_privatecontent_list.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// 独家放送列表

module.exports = (query, request) => {
const data = {
offset: query.offset || 0,
total: 'true',
limit: query.limit || 60,
}
return request(
'POST',
`https://music.163.com/api/v2/privatecontent/list`, 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.32.1",
"version": "3.32.2",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
Expand Down

0 comments on commit 1a36224

Please sign in to comment.