提交 05084c7f 编写于 作者: B binaryify

新增云盘歌曲信息匹配纠正接口 #1212

上级 bf8f98d7
# 更新日志
### 4.0.11 | 2021.4.26
- 新增云盘歌曲信息匹配纠正接口 [#1212](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1212)
### 4.0.10 | 2021.4.09
- 新增用户历史评论接口 [#1197](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1197)
......
......@@ -316,6 +316,8 @@ banner({ type:0 }).then(res=>{
202. 歌单详情动态
203. 绑定手机
204. 一起听状态
205. 用户历史评论
206. 云盘歌曲信息匹配纠正
## 更新日志
......
......@@ -221,6 +221,7 @@
203. 绑定手机
204. 一起听状态
205. 用户历史评论
206. 云盘歌曲信息匹配纠正
## 安装
......@@ -826,7 +827,8 @@ tags: 歌单标签
**必选参数 :** `uid` : 用户 id
**可选参数 :**
**可选参数 :**
`limit` : 返回数量 , 默认为 10
`time`: 上一条数据的time,第一页不需要传,默认为0
......@@ -2631,6 +2633,20 @@ type : 地区
**调用例子 :** `/cloud`
### 云盘歌曲信息匹配纠正
说明 : 登录后调用此接口,可对云盘歌曲信息匹配纠正
**必选参数 :**
`uid`: 用户id
`sid`: 云盘的歌曲id
`asid`: 要匹配的歌曲id
**接口地址 :** `/cloud/match`
**调用例子 :** `/cloud/match?uid=32953014&asid=0&sid=1321856840`
### 电台banner
说明 : 调用此接口,可获取电台banner
......
......@@ -1417,3 +1417,11 @@ export function user_comment_history(
time?: number | string
} & RequestBaseConfig,
): Promise<Response>
export function cloud_match(
params: {
uid: number | string
sid: number | string
asid: number | string
} & RequestBaseConfig,
): Promise<Response>
module.exports = (query, request) => {
query.cookie.os = 'ios'
query.cookie.appver = '8.1.20'
const data = {
userId: query.uid,
songId: query.sid,
adjustSongId: query.asid,
}
return request(
'POST',
`https://music.163.com/api/cloud/user/song/match`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}
{
"name": "NeteaseCloudMusicApi",
"version": "4.0.10",
"version": "4.0.11",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册