mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-08-12 08:50:38 +00:00
feat(artist): 添加关注歌手新歌播放全部功能
- 新增 module/artist_new_song_playall.js 文件实现获取所有关注歌手最近50首新歌的功能 - 在文档中添加关注歌手最近新歌播放全部接口说明和调用示例 - 在类型定义文件中添加 artist_new_song_playall 函数声明
This commit is contained in:
parent
63f669d7f8
commit
1491b91829
4
interface.d.ts
vendored
4
interface.d.ts
vendored
@ -1474,6 +1474,10 @@ export function artist_new_song(
|
||||
} & RequestBaseConfig,
|
||||
): Promise<Response>
|
||||
|
||||
export function artist_new_song_playall(
|
||||
params: RequestBaseConfig,
|
||||
): Promise<Response>
|
||||
|
||||
export function artist_detail(
|
||||
params: {
|
||||
id: number | string
|
||||
|
||||
10
module/artist_new_song_playall.js
Normal file
10
module/artist_new_song_playall.js
Normal file
@ -0,0 +1,10 @@
|
||||
// 获取所有关注歌手最近的 50 首新歌
|
||||
|
||||
const createOption = require('../util/option.js')
|
||||
module.exports = (query, request) => {
|
||||
return request(
|
||||
`/api/sub/artist/new/works/song/playall`,
|
||||
{},
|
||||
createOption(query, 'eapi'),
|
||||
)
|
||||
}
|
||||
@ -3612,6 +3612,14 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
|
||||
|
||||
**调用例子 :** `/artist/new/song?limit=1` `/artist/new/song?limit=1&before=1602777625000`
|
||||
|
||||
### 关注歌手最近新歌 - 播放全部
|
||||
|
||||
说明 : 登录后调用此接口可获取所有关注歌手最近的 50 首新歌
|
||||
|
||||
**接口地址 :** `/artist/new/song/playall`
|
||||
|
||||
**调用例子 :** `/artist/new/song/playall`
|
||||
|
||||
### 关注歌手新 MV
|
||||
|
||||
说明 :登录后调用此接口可获取关注歌手新 MV
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user