From 7eca25d390241eeef8351ead30055f5e17d2c0be Mon Sep 17 00:00:00 2001 From: binaryify Date: Fri, 7 Apr 2023 09:39:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E7=A7=81=E4=BF=A1?= =?UTF-8?q?=E5=92=8C=E9=80=9A=E7=9F=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 3 +++ README.MD | 11 +++++++++++ docs/README.md | 21 +++++++++++++++------ interface.d.ts | 2 ++ module/pl_count.js | 10 ++++++++++ package.json | 2 +- 6 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 module/pl_count.js diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 50e4994..cbc8f58 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,7 @@ # 更新日志 +### 4.8.10 | 2023.04.07 +- 补充私信和通知接口 + ### 4.8.9 | 2023.01.18 - 补充一起听相关接口 #1677 diff --git a/README.MD b/README.MD index 357f93a..97c0420 100644 --- a/README.MD +++ b/README.MD @@ -378,6 +378,17 @@ banner({ type:0 }).then(res=>{ 239. 音乐人任务(新) 240. 内部版本接口 241. 歌单更新播放量 +242. 黑胶时光机 +243. 音乐百科 - 简要信息 +244. 乐谱列表 +245. 乐谱内容 +246. 曲风列表 +247. 曲风偏好 +248. 曲风详情 +249. 曲风-歌曲 +250. 曲风-专辑 +251. 曲风-歌单 +252. 曲风-歌手 ## 更新日志 diff --git a/docs/README.md b/docs/README.md index fa507f0..261d308 100644 --- a/docs/README.md +++ b/docs/README.md @@ -268,6 +268,7 @@ 250. 曲风-专辑 251. 曲风-歌单 252. 曲风-歌手 +253. 私信和通知接口 ## 安装 @@ -802,6 +803,14 @@ signature:用户签名 **调用例子 :** `/avatar/upload?imgSize=200` +### 私信和通知接口 + +说明 : 登录后调用此接口,可获取私信和通知数量信息 + +**接口地址 :** `/pl/count` + +**调用例子 :** `/pl/count` + ### 国家编码列表 说明 : 调用此接口,可获取国家编码列表 @@ -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首歌曲 ### 歌单详情动态 diff --git a/interface.d.ts b/interface.d.ts index 4338e84..bbded17 100644 --- a/interface.d.ts +++ b/interface.d.ts @@ -1686,3 +1686,5 @@ export function style_artist( cursor?: number | string } & RequestBaseConfig, ): Promise + +export function pl_count(params: RequestBaseConfig): Promise diff --git a/module/pl_count.js b/module/pl_count.js new file mode 100644 index 0000000..78423c7 --- /dev/null +++ b/module/pl_count.js @@ -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, + }) +} diff --git a/package.json b/package.json index 3410b39..81ba078 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "4.8.9", + "version": "4.8.10", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js",