Skip to content

Commit

Permalink
feat: 新增私信和通知接口
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaryify committed Apr 7, 2023
1 parent 5e3c84e commit 7eca25d
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# 更新日志
### 4.8.10 | 2023.04.07
- 补充私信和通知接口

### 4.8.9 | 2023.01.18
- 补充一起听相关接口 #1677

Expand Down
11 changes: 11 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,17 @@ banner({ type:0 }).then(res=>{
239. 音乐人任务(新)
240. 内部版本接口
241. 歌单更新播放量
242. 黑胶时光机
243. 音乐百科 - 简要信息
244. 乐谱列表
245. 乐谱内容
246. 曲风列表
247. 曲风偏好
248. 曲风详情
249. 曲风-歌曲
250. 曲风-专辑
251. 曲风-歌单
252. 曲风-歌手

## 更新日志

Expand Down
21 changes: 15 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@
250. 曲风-专辑
251. 曲风-歌单
252. 曲风-歌手
253. 私信和通知接口

## 安装

Expand Down Expand Up @@ -802,6 +803,14 @@ signature:用户签名

**调用例子 :** `/avatar/upload?imgSize=200`

### 私信和通知接口

说明 : 登录后调用此接口,可获取私信和通知数量信息

**接口地址 :** `/pl/count`

**调用例子 :** `/pl/count`

### 国家编码列表

说明 : 调用此接口,可获取国家编码列表
Expand Down Expand Up @@ -1396,13 +1405,13 @@ tags: 歌单标签

**调用例子 :** `/playlist/track/all?id=24381616&limit=10&offset=1`

> 注:关于`offset`,你可以这样理解,假设你当前的歌单有100首歌
> 注:关于`offset`,你可以这样理解,假设你当前的歌单有200首歌
>
> 你传入limit=10&offset=0等价于limit=10,你会得到第1-10首歌曲
>
> 你传入limit=10&offset=1,你会得到第2-11首歌曲
>
> 如果你设置limit=10&offset=2,你就会得到第3-12首歌曲
> 你传入limit=50&offset=0等价于limit=50,你会得到第1-50首歌曲
> 你传入limit=50&offset=50,你会得到第51-100首歌曲
> 如果你设置limit=50&offset=100,你就会得到第101-150首歌曲

### 歌单详情动态
Expand Down
2 changes: 2 additions & 0 deletions interface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1686,3 +1686,5 @@ export function style_artist(
cursor?: number | string
} & RequestBaseConfig,
): Promise<Response>

export function pl_count(params: RequestBaseConfig): Promise<Response>
10 changes: 10 additions & 0 deletions module/pl_count.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// 数字专辑-新碟上架
module.exports = (query, request) => {
const data = {}
return request('POST', `https://music.163.com/weapi/pl/count`, data, {
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
})
}
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": "4.8.9",
"version": "4.8.10",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
Expand Down

0 comments on commit 7eca25d

Please sign in to comment.