mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-07 03:32:07 +08:00
新增 API: 乐谱相关 API
新增: * 获取乐谱列表 * 获取乐谱内容 !!! 请注意, 乐谱内容的 id 为 乐谱 ID, 请不要提交错误
This commit is contained in:
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',// 我没写错! 他们就是这么请求的!
|
||||
},
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user