diff --git a/.gitignore b/.gitignore index f284b53..c9735e7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ node_modules *.log .idea -.vscode \ No newline at end of file +.vscode +.history diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 244a19f..da5788f 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,7 @@ # 更新日志 +### 4.0.9 | 2021.3.13 +- 新增一起听状态接口 [#1170](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1170) + ### 4.0.8 | 2021.2.27 - 加入vercel 配置文件,支持 vercel 部署 diff --git a/docs/README.md b/docs/README.md index b08776e..ee4d9a5 100644 --- a/docs/README.md +++ b/docs/README.md @@ -219,6 +219,7 @@ 201. 话题详情热门动态 202. 歌单详情动态 203. 绑定手机 +204. 一起听状态 ## 安装 @@ -3228,6 +3229,12 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` **调用例子 :** `/artist/new/mv?limit=1` `/artist/new/mv?limit=1&before=1602777625000` +### 一起听状态 +说明 :登录后调用此接口可获取一起听状态 + +**接口地址 :** `/listen/together/status` + +**调用例子 :** `/listen/together/status` ### batch批量请求接口 说明 : 登录后调用此接口 ,传入接口和对应原始参数(原始参数非文档里写的参数,需参考源码),可批量请求接口 diff --git a/interface.d.ts b/interface.d.ts index 4a7687b..677be8b 100644 --- a/interface.d.ts +++ b/interface.d.ts @@ -1405,3 +1405,7 @@ export function user_bindingcellphone( password?: string } & RequestBaseConfig, ): Promise + +export function listen_together_status( + params: RequestBaseConfig, +): Promise diff --git a/module/listen_together_status.js b/module/listen_together_status.js new file mode 100644 index 0000000..61fd902 --- /dev/null +++ b/module/listen_together_status.js @@ -0,0 +1,15 @@ +// 一起听状态 + +module.exports = (query, request) => { + return request( + 'POST', + `https://music.163.com/api/listen/together/status/get`, + {}, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) +} diff --git a/package.json b/package.json index 0556354..72ba044 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "4.0.8", + "version": "4.0.9", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js",