mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-03 17:12:09 +08:00
新增 API: 乐谱相关 API
新增: * 获取乐谱列表 * 获取乐谱内容 !!! 请注意, 乐谱内容的 id 为 乐谱 ID, 请不要提交错误
This commit is contained in:
parent
b9e3b8f016
commit
be156c5d22
@ -3889,6 +3889,26 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
|
||||
|
||||
**调用例子:** `/song/wiki/about?id=1958384591`
|
||||
|
||||
### 乐谱列表
|
||||
|
||||
说明: 调用此接口可以获取歌曲的乐谱列表
|
||||
|
||||
**接口地址:** `/sheet/list`
|
||||
|
||||
**必选参数:** `id`: 歌曲 ID
|
||||
|
||||
**调用例子:** `/sheet/list?id=1815684465`
|
||||
|
||||
### 乐谱内容
|
||||
|
||||
说明: 调用此接口获取乐谱的内容
|
||||
|
||||
**接口地址:** `/sheet/preview`
|
||||
|
||||
**必选参数:** `id`: **乐谱** ID
|
||||
|
||||
**调用例子:** `/sheet/list?id=245206`
|
||||
|
||||
|
||||
|
||||
## 离线访问此文档
|
||||
|
20
module/sheet_list.js
Normal file
20
module/sheet_list.js
Normal file
@ -0,0 +1,20 @@
|
||||
// 乐谱列表
|
||||
const crypto = require('crypto')
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
id: query.id,
|
||||
abTest: query.ab || 'b'
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
`https://interface3.music.163.com/eapi/music/sheet/list/v1`,
|
||||
data,
|
||||
{
|
||||
crypto: 'eapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
url: '/api/music/sheet/list/v1',
|
||||
},
|
||||
)
|
||||
}
|
19
module/sheet_preview.js
Normal file
19
module/sheet_preview.js
Normal file
@ -0,0 +1,19 @@
|
||||
// 乐谱预览
|
||||
const crypto = require('crypto')
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
id: query.id,
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
`https://interface3.music.163.com/eapi//music/sheet/preview/info?id=${query.id}`,
|
||||
data,
|
||||
{
|
||||
crypto: 'eapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
url: '/api//music/sheet/preview/info',// 我没写错! 他们就是这么请求的!
|
||||
},
|
||||
)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user