提交 a38d314e 编写于 作者: B binaryify

增加首页-发现和首页-发现-圆形图标入口列表接口

上级 1c88464f
# 更新日志 # 更新日志
### 3.35.0 | 2020.07.18
- 新增`首页-发现`,`首页-发现-圆形图标入口列表`接口 [#851](https://github.com/Binaryify/NeteaseCloudMusicApi/pull/851)
### 3.34.2 | 2020.07.13 ### 3.34.2 | 2020.07.13
- 修复`获取用户播放记录`接口参数错误问题 [#849](https://github.com/Binaryify/NeteaseCloudMusicApi/pull/849) - 修复`获取用户播放记录`接口参数错误问题 [#849](https://github.com/Binaryify/NeteaseCloudMusicApi/pull/849)
......
...@@ -175,6 +175,8 @@ ...@@ -175,6 +175,8 @@
154. 获取历史日推可用日期列表 154. 获取历史日推可用日期列表
155. 获取历史日推详细数据 155. 获取历史日推详细数据
156. 国家编码列表 156. 国家编码列表
157. 首页-发现
158. 首页-发现-圆形图标入口列表
## 环境要求 ## 环境要求
......
...@@ -172,6 +172,8 @@ ...@@ -172,6 +172,8 @@
154. 获取历史日推可用日期列表 154. 获取历史日推可用日期列表
155. 获取历史日推详细数据 155. 获取历史日推详细数据
156. 国家编码列表 156. 国家编码列表
157. 首页-发现
158. 首页-发现-圆形图标入口列表
## 安装 ## 安装
...@@ -986,7 +988,7 @@ tags: 歌单标签 ...@@ -986,7 +988,7 @@ tags: 歌单标签
**必选参数 :** `id` : 歌单 id **必选参数 :** `id` : 歌单 id
**可选参数 :** `s` : 歌单最近的 s 个收藏者 **可选参数 :** `s` : 歌单最近的 s 个收藏者,默认为8
**接口地址 :** `/playlist/detail` **接口地址 :** `/playlist/detail`
...@@ -1199,6 +1201,17 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具 ...@@ -1199,6 +1201,17 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
**调用例子 :** `/top/song?type=96` **调用例子 :** `/top/song?type=96`
### 首页-发现
说明 : 调用此接口 , 可获取APP首页信息
**接口地址 :** `/homepage/block/page`
### 首页-发现-圆形图标入口列表
说明 : 调用此接口 , 可获取APP首页圆形图标入口列表
**接口地址 :** `/homepage/dragon/ball`
### 歌曲评论 ### 歌曲评论
说明 : 调用此接口 , 传入音乐 id 和 limit 参数 , 可获得该音乐的所有评论 ( 不需要 说明 : 调用此接口 , 传入音乐 id 和 limit 参数 , 可获得该音乐的所有评论 ( 不需要
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
// 这个接口为移动端接口,首页-发现页,数据结构可以参考 https://github.com/hcanyz/flutter-netease-music-api/blob/master/lib/src/api/uncategorized/bean.dart#L259 HomeBlockPageWrap // 这个接口为移动端接口,首页-发现页,数据结构可以参考 https://github.com/hcanyz/flutter-netease-music-api/blob/master/lib/src/api/uncategorized/bean.dart#L259 HomeBlockPageWrap
// query.refresh 是否刷新数据 // query.refresh 是否刷新数据
module.exports = (query, request) => { module.exports = (query, request) => {
const data = { 'refresh': query.refresh || true } const data = { 'refresh': query.refresh || true }
return request( return request(
'POST', `https://music.163.com/api/homepage/block/page`, data, 'POST', `https://music.163.com/api/homepage/block/page`, data,
{ crypto: 'weapi', cookie: query.cookie, proxy: query.proxy } { crypto: 'weapi', cookie: query.cookie, proxy: query.proxy }
) )
} }
\ No newline at end of file
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
// 数据结构可以参考 https://github.com/hcanyz/flutter-netease-music-api/blob/master/lib/src/api/uncategorized/bean.dart#L290 HomeDragonBallWrap // 数据结构可以参考 https://github.com/hcanyz/flutter-netease-music-api/blob/master/lib/src/api/uncategorized/bean.dart#L290 HomeDragonBallWrap
// !需要登录或者匿名登录,非登录返回 [] // !需要登录或者匿名登录,非登录返回 []
module.exports = (query, request) => { module.exports = (query, request) => {
const data = {} const data = {}
return request( return request(
'POST', `https://music.163.com/eapi/homepage/dragon/ball/static`, data, 'POST', `https://music.163.com/eapi/homepage/dragon/ball/static`, data,
{ {
crypto: 'eapi', crypto: 'eapi',
cookie: query.cookie, cookie: query.cookie,
proxy: query.proxy, proxy: query.proxy,
url: '/api/homepage/dragon/ball/static' url: '/api/homepage/dragon/ball/static'
} }
) )
} }
\ No newline at end of file
{ {
"name": "NeteaseCloudMusicApi", "name": "NeteaseCloudMusicApi",
"version": "3.34.2", "version": "3.35.0",
"description": "网易云音乐 NodeJS 版 API", "description": "网易云音乐 NodeJS 版 API",
"scripts": { "scripts": {
"start": "node app.js", "start": "node app.js",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册