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.
新增已购单曲,获取mlog播放地址,将mlog id转为视频id,vip成长值,vip成长值获取记录,vip任务,领取vip成长值 等接口 #…
- Loading branch information
Showing
14 changed files
with
141 additions
and
157 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
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 |
---|---|---|
@@ -1,19 +1,18 @@ | ||
// 将mlog id转为video id | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
mlogId: query.id, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/mlog/video/convert/id`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
const data = { | ||
mlogId: query.id, | ||
} | ||
|
||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/mlog/video/convert/id`, | ||
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 |
---|---|---|
@@ -1,21 +1,15 @@ | ||
// mlog链接 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
id: query.id, | ||
resolution: query.res || 1080, | ||
type: 1, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/mlog/detail/v1`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
const data = { | ||
id: query.id, | ||
resolution: query.res || 1080, | ||
type: 1, | ||
} | ||
|
||
return request('POST', `https://music.163.com/weapi/mlog/detail/v1`, 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
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 |
---|---|---|
@@ -1,20 +1,19 @@ | ||
// 已购单曲 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
limit: query.limit || 20, | ||
offset: query.offset || 0, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/single/mybought/song/list`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
const data = { | ||
limit: query.limit || 20, | ||
offset: query.offset || 0, | ||
} | ||
|
||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/single/mybought/song/list`, | ||
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 |
---|---|---|
@@ -1,17 +1,16 @@ | ||
// 会员成长值 | ||
|
||
module.exports = (query, request) => { | ||
const data = {} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/vipnewcenter/app/level/growhpoint/basic`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} | ||
|
||
const data = {} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/vipnewcenter/app/level/growhpoint/basic`, | ||
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 |
---|---|---|
@@ -1,20 +1,19 @@ | ||
// 会员成长值领取记录 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
limit: query.limit || 20, | ||
offset: query.offset || 0, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/vipnewcenter/app/level/growth/details`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
const data = { | ||
limit: query.limit || 20, | ||
offset: query.offset || 0, | ||
} | ||
|
||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/vipnewcenter/app/level/growth/details`, | ||
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 |
---|---|---|
@@ -1,19 +1,18 @@ | ||
// 领取会员成长值 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
taskIds: query.id, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/vipnewcenter/app/level/task/reward/get`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
const data = { | ||
taskIds: query.id, | ||
} | ||
|
||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/vipnewcenter/app/level/task/reward/get`, | ||
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 |
---|---|---|
@@ -1,17 +1,16 @@ | ||
// 会员任务 | ||
|
||
module.exports = (query, request) => { | ||
const data = {} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/vipnewcenter/app/level/task/list`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} | ||
|
||
const data = {} | ||
return request( | ||
'POST', | ||
`https://music.163.com/weapi/vipnewcenter/app/level/task/list`, | ||
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 |
---|---|---|
@@ -1,22 +1,21 @@ | ||
// 云贝推歌 | ||
|
||
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, | ||
}, | ||
) | ||
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 |
---|---|---|
@@ -1,22 +1,21 @@ | ||
// 云贝推歌历史记录 | ||
|
||
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, | ||
}, | ||
) | ||
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, | ||
}, | ||
) | ||
} |
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
ea86e5b
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-git-master-binaryify.vercel.app
netease-cloud-music-api-binaryify.vercel.app
netease-cloud-music-api-binaryify-binaryify.vercel.app
ea86e5b
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