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

Commit b6edef6

Browse files
committed
新增一起听状态接口 #1170 #1098
1 parent 044ac78 commit b6edef6

6 files changed

+32
-2
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
node_modules
33
*.log
44
.idea
5-
.vscode
5+
.vscode
6+
.history

CHANGELOG.MD

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# 更新日志
2+
### 4.0.9 | 2021.3.13
3+
- 新增一起听状态接口 [#1170](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1170)
4+
25
### 4.0.8 | 2021.2.27
36
- 加入vercel 配置文件,支持 vercel 部署
47

docs/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219
201. 话题详情热门动态
220220
202. 歌单详情动态
221221
203. 绑定手机
222+
204. 一起听状态
222223

223224
## 安装
224225

@@ -3228,6 +3229,12 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
32283229

32293230
**调用例子 :** `/artist/new/mv?limit=1` `/artist/new/mv?limit=1&before=1602777625000`
32303231

3232+
### 一起听状态
3233+
说明 :登录后调用此接口可获取一起听状态
3234+
3235+
**接口地址 :** `/listen/together/status`
3236+
3237+
**调用例子 :** `/listen/together/status`
32313238

32323239
### batch批量请求接口
32333240
说明 : 登录后调用此接口 ,传入接口和对应原始参数(原始参数非文档里写的参数,需参考源码),可批量请求接口

interface.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1405,3 +1405,7 @@ export function user_bindingcellphone(
14051405
password?: string
14061406
} & RequestBaseConfig,
14071407
): Promise<Response>
1408+
1409+
export function listen_together_status(
1410+
params: RequestBaseConfig,
1411+
): Promise<Response>

module/listen_together_status.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// 一起听状态
2+
3+
module.exports = (query, request) => {
4+
return request(
5+
'POST',
6+
`https://music.163.com/api/listen/together/status/get`,
7+
{},
8+
{
9+
crypto: 'weapi',
10+
cookie: query.cookie,
11+
proxy: query.proxy,
12+
realIP: query.realIP,
13+
},
14+
)
15+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "NeteaseCloudMusicApi",
3-
"version": "4.0.8",
3+
"version": "4.0.9",
44
"description": "网易云音乐 NodeJS 版 API",
55
"scripts": {
66
"start": "node app.js",

0 commit comments

Comments
 (0)