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 #1246 from chen310/master
增加云贝推歌接口
- Loading branch information
Showing
3 changed files
with
68 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// 云贝推歌 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
songId: query.id, | ||
reason: query.reason || '好歌献给你', | ||
scene: '', | ||
fromUserId: -1, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/yunbei/rcmd/song/submit`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} | ||
|
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,22 @@ | ||
// 云贝推歌历史记录 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
page: JSON.stringify({ | ||
size: query.size || 20, | ||
cursor: query.cursor || '', | ||
}) | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/yunbei/rcmd/song/history/list`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} | ||
|
af27f1a
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
neteasecloudmusicapi.vercel.app
netease-cloud-music-api-git-master-binaryify.vercel.app
af27f1a
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-binaryify.vercel.app
netease-cloud-music-api-binaryify-git-master-binaryify.vercel.app