mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
新增关注歌手新歌/新MV接口 #1028
This commit is contained in:
parent
65e9215d06
commit
20309e44d1
@ -1,4 +1,6 @@
|
||||
# 更新日志
|
||||
### 3.47.2 | 2020.11.15
|
||||
- 新增关注歌手新歌/新MV接口 [#1028](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1028)
|
||||
### 3.47.1 | 2020.11.14
|
||||
- 修复使用post请求取消喜欢音乐会失败的问题 [#1024](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1024)
|
||||
|
||||
|
@ -210,6 +210,8 @@
|
||||
192. 抱一抱评论
|
||||
193. 评论抱一抱列表
|
||||
194. 收藏的专栏
|
||||
195. 关注歌手新歌
|
||||
196. 关注歌手新MV
|
||||
|
||||
## 安装
|
||||
|
||||
@ -3098,6 +3100,30 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
|
||||
|
||||
**调用例子 :** `/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批量请求接口
|
||||
说明 : 登录后调用此接口 ,传入接口和对应原始参数(原始参数非文档里写的参数,需参考源码),可批量请求接口
|
||||
|
||||
|
21
interface.d.ts
vendored
21
interface.d.ts
vendored
@ -1333,3 +1333,24 @@ export function topic_sublist(
|
||||
offset?: number | string
|
||||
} & RequestBaseConfig,
|
||||
): 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>
|
||||
|
19
module/artist_new_mv.js
Normal file
19
module/artist_new_mv.js
Normal file
@ -0,0 +1,19 @@
|
||||
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,
|
||||
},
|
||||
)
|
||||
}
|
19
module/artist_new_song.js
Normal file
19
module/artist_new_song.js
Normal file
@ -0,0 +1,19 @@
|
||||
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,
|
||||
},
|
||||
)
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "NeteaseCloudMusicApi",
|
||||
"version": "3.47.1",
|
||||
"version": "3.47.2",
|
||||
"description": "网易云音乐 NodeJS 版 API",
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user