forked from Binaryify/NeteaseCloudMusicApi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 新增云盘歌曲信息匹配纠正接口 Binaryify#1212 * update docs * update docs * 首页-发现接口增加 cursor 参数,refresh默认设为false Binaryify#1217 Co-authored-by: binaryify <binaryify@gmail.com>
- Loading branch information
1 parent
cf0d6e4
commit c499979
Showing
10 changed files
with
173 additions
and
13 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
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) => { | ||
query.cookie.os = 'ios' | ||
query.cookie.appver = '8.1.20' | ||
const data = { | ||
userId: query.uid, | ||
songId: query.sid, | ||
adjustSongId: query.asid, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/api/cloud/user/song/match`, | ||
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
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,58 @@ | ||
<!DOCTYPE html> | ||
<html lang="zh"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>home</title> | ||
</head> | ||
|
||
<body> | ||
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.20.0-0/axios.min.js"></script> | ||
<script> | ||
const phone = '' // 这里填手机号 | ||
const password = '' // 这里填密码 | ||
const fileUpdateTime = {} | ||
let cookieToken = '' | ||
if (!phone || !password) { | ||
const msg = '请设置你的手机号码和密码' | ||
alert(msg) | ||
throw new Error(msg) | ||
} | ||
|
||
async function login() { | ||
const res = await axios({ | ||
url: `/login/cellphone?phone=${phone}&password=${encodeURIComponent( | ||
password, | ||
)}`, | ||
}) | ||
cookieToken = res.data.cookie | ||
} | ||
async function main() { | ||
await login() | ||
const res = await axios({ | ||
url: `/homepage/block/page`, | ||
data: { | ||
cookie: cookieToken, | ||
}, | ||
method: 'post', | ||
}) | ||
let cursor = '' | ||
console.log(res.data.data) | ||
if (res.data.data.hasMore) { | ||
cursor = res.data.data.cursor | ||
const res2 = await axios({ | ||
url: `/homepage/block/page?time=${Date.now()}`, | ||
data: { | ||
cookie: cookieToken, | ||
cursor: cursor, | ||
}, | ||
method: 'post', | ||
}) | ||
} | ||
} | ||
main() | ||
</script> | ||
</body> | ||
|
||
</html> |
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,47 @@ | ||
<!DOCTYPE html> | ||
<html lang="zh"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>登录</title> | ||
</head> | ||
|
||
<body> | ||
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.20.0-0/axios.min.js"></script> | ||
<script> | ||
const phone = '' // 这里填手机号 | ||
const password = '' // 这里填密码 | ||
const fileUpdateTime = {} | ||
if (!phone || !password) { | ||
const msg = '请设置你的手机号码和密码' | ||
alert(msg) | ||
throw new Error(msg) | ||
} | ||
|
||
async function login() { | ||
const res = await axios({ | ||
url: `/login/cellphone`, | ||
method: 'post', | ||
data: { | ||
phone: phone, | ||
password: password, | ||
}, | ||
}) | ||
return res.data.cookie | ||
} | ||
async function main() { | ||
const cookieToken = await login() | ||
const res = await axios({ | ||
url: `/login/status`, | ||
method: 'post', | ||
data: { | ||
cookie: cookieToken, | ||
}, | ||
}) | ||
} | ||
main() | ||
</script> | ||
</body> | ||
|
||
</html> |
c499979
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: