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

Commit

Permalink
新增一起听状态接口 #1170 #1098
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaryify committed Mar 13, 2021
1 parent 044ac78 commit b6edef6
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
node_modules
*.log
.idea
.vscode
.vscode
.history
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -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 部署

Expand Down
7 changes: 7 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@
201. 话题详情热门动态
202. 歌单详情动态
203. 绑定手机
204. 一起听状态

## 安装

Expand Down Expand Up @@ -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批量请求接口
说明 : 登录后调用此接口 ,传入接口和对应原始参数(原始参数非文档里写的参数,需参考源码),可批量请求接口
Expand Down
4 changes: 4 additions & 0 deletions interface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1405,3 +1405,7 @@ export function user_bindingcellphone(
password?: string
} & RequestBaseConfig,
): Promise<Response>

export function listen_together_status(
params: RequestBaseConfig,
): Promise<Response>
15 changes: 15 additions & 0 deletions module/listen_together_status.js
Original file line number Diff line number Diff line change
@@ -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,
},
)
}
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.0.8",
"version": "4.0.9",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
Expand Down

0 comments on commit b6edef6

Please sign in to comment.