新增一起听状态接口 #1170 #1098

This commit is contained in:
binaryify
2021-03-13 13:37:09 +08:00
parent 044ac78c17
commit b6edef640a
6 changed files with 32 additions and 2 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ node_modules
*.log
.idea
.vscode
.history

View File

@ -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 部署

View File

@ -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批量请求接口
说明 : 登录后调用此接口 ,传入接口和对应原始参数(原始参数非文档里写的参数,需参考源码),可批量请求接口

4
interface.d.ts vendored
View File

@ -1405,3 +1405,7 @@ export function user_bindingcellphone(
password?: string
} & RequestBaseConfig,
): Promise<Response>
export function listen_together_status(
params: RequestBaseConfig,
): Promise<Response>

View File

@ -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,
},
)
}

View File

@ -1,6 +1,6 @@
{
"name": "NeteaseCloudMusicApi",
"version": "4.0.8",
"version": "4.0.9",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",