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 #851 from hcanyz/master
新增移动端 首页发现页 接口
- Loading branch information
Showing
2 changed files
with
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// 首页-发现 block page | ||
// 这个接口为移动端接口,首页-发现页,数据结构可以参考 https://github.com/hcanyz/flutter-netease-music-api/blob/master/lib/src/api/uncategorized/bean.dart#L259 HomeBlockPageWrap | ||
// query.refresh 是否刷新数据 | ||
module.exports = (query, request) => { | ||
const data = { 'refresh': query.refresh || true } | ||
return request( | ||
'POST', `https://music.163.com/api/homepage/block/page`, data, | ||
{ crypto: 'weapi', cookie: query.cookie, proxy: query.proxy } | ||
) | ||
} |
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,16 @@ | ||
// 首页-发现 dragon ball | ||
// 这个接口为移动端接口,首页-发现页(每日推荐、歌单、排行榜 那些入口) | ||
// 数据结构可以参考 https://github.com/hcanyz/flutter-netease-music-api/blob/master/lib/src/api/uncategorized/bean.dart#L290 HomeDragonBallWrap | ||
// !需要登录或者匿名登录,非登录返回 [] | ||
module.exports = (query, request) => { | ||
const data = {} | ||
return request( | ||
'POST', `https://music.163.com/eapi/homepage/dragon/ball/static`, data, | ||
{ | ||
crypto: 'eapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
url: '/api/homepage/dragon/ball/static' | ||
} | ||
) | ||
} |