This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1391 from XiaoMengXinX/master
新增发送文本动态接口、获取客户端歌曲下载链接url接口
- Loading branch information
Showing
4 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// 发送文本动态 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
msg: query.msg, | ||
type: 'noresource', | ||
} | ||
return request( | ||
'POST', | ||
`https://interface.music.163.com/eapi/share/friends/resource`, | ||
data, | ||
{ | ||
crypto: 'eapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
url: '/api/share/friends/resource', | ||
}, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// 获取客户端歌曲下载链接 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
id: query.id, | ||
br: parseInt(query.br || 999000), | ||
} | ||
return request( | ||
'POST', | ||
`https://interface.music.163.com/eapi/song/enhance/download/url`, | ||
data, | ||
{ | ||
crypto: 'eapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
url: '/api/song/enhance/download/url', | ||
}, | ||
) | ||
} |
e15e7ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
netease-cloud-music-api – ./docs
netease-cloud-music-api-git-master-binaryify.vercel.app
neteasecloudmusicapi.vercel.app
e15e7ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
netease-cloud-music-api-binaryify – ./
netease-cloud-music-api-binaryify.vercel.app
netease-cloud-music-api-binaryify-git-master-binaryify.vercel.app
netease-cloud-music-api-binaryify-binaryify.vercel.app