提交 20309e44 编写于 作者: B binaryify

新增关注歌手新歌/新MV接口 #1028

上级 65e9215d
# 更新日志 # 更新日志
### 3.47.2 | 2020.11.15
- 新增关注歌手新歌/新MV接口 [#1028](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1028)
### 3.47.1 | 2020.11.14 ### 3.47.1 | 2020.11.14
- 修复使用post请求取消喜欢音乐会失败的问题 [#1024](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1024) - 修复使用post请求取消喜欢音乐会失败的问题 [#1024](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1024)
......
...@@ -210,6 +210,8 @@ ...@@ -210,6 +210,8 @@
192. 抱一抱评论 192. 抱一抱评论
193. 评论抱一抱列表 193. 评论抱一抱列表
194. 收藏的专栏 194. 收藏的专栏
195. 关注歌手新歌
196. 关注歌手新MV
## 安装 ## 安装
...@@ -3098,6 +3100,30 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` ...@@ -3098,6 +3100,30 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
**调用例子 :** `/yunbei/tasks/expense?limit=1` **调用例子 :** `/yunbei/tasks/expense?limit=1`
### 关注歌手新歌
说明 :登录后调用此接口可获取关注歌手新歌
**可选参数 :** `limit`: 取出评论数量 , 默认为 20
`before`: 上一页数据返回的publishTime的数据
**接口地址 :** `/artist/new/song`
**调用例子 :** `/artist/new/song?limit=1` `/artist/new/song?limit=1&before=1602777625000`
### 关注歌手新MV
说明 :登录后调用此接口可获取关注歌手新MV
**可选参数 :** `limit`: 取出评论数量 , 默认为 20
`before`: 上一页数据返回的publishTime的数据
**接口地址 :** `/artist/new/mv`
**调用例子 :** `/artist/new/mv?limit=1` `/artist/new/mv?limit=1&before=1602777625000`
### batch批量请求接口 ### batch批量请求接口
说明 : 登录后调用此接口 ,传入接口和对应原始参数(原始参数非文档里写的参数,需参考源码),可批量请求接口 说明 : 登录后调用此接口 ,传入接口和对应原始参数(原始参数非文档里写的参数,需参考源码),可批量请求接口
......
...@@ -1333,3 +1333,24 @@ export function topic_sublist( ...@@ -1333,3 +1333,24 @@ export function topic_sublist(
offset?: number | string offset?: number | string
} & RequestBaseConfig, } & RequestBaseConfig,
): Promise<Response> ): Promise<Response>
export function topic_sublist(
params: {
limit?: number | string
offset?: number | string
} & RequestBaseConfig,
): Promise<Response>
export function artist_new_mv(
params: {
limit?: number | string
startTimestamp?: number | string
} & RequestBaseConfig,
): Promise<Response>
export function artist_new_song(
params: {
limit?: number | string
startTimestamp?: number | string
} & RequestBaseConfig,
): Promise<Response>
module.exports = (query, request) => {
query.cookie.os = 'ios'
query.cookie.appver = '7.3.40'
const data = {
limit: query.limit || 20,
startTimestamp: query.before || Date.now(),
}
return request(
'POST',
`https://music.163.com/api/sub/artist/new/works/mv/list`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}
module.exports = (query, request) => {
query.cookie.os = 'ios'
query.cookie.appver = '7.3.40'
const data = {
limit: query.limit || 20,
startTimestamp: query.before || Date.now(),
}
return request(
'POST',
`https://music.163.com/api/sub/artist/new/works/song/list`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}
{ {
"name": "NeteaseCloudMusicApi", "name": "NeteaseCloudMusicApi",
"version": "3.47.1", "version": "3.47.2",
"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.
先完成此消息的编辑!
想要评论请 注册