mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
feat: 增加接口:最近听歌列表
This commit is contained in:
parent
e933c00ee8
commit
a75565929b
@ -422,7 +422,10 @@ banner({ type: 0 }).then((res) => {
|
||||
276. 私人 FM 模式选择
|
||||
277. 播客删除
|
||||
278. 电台排行榜获取
|
||||
279. 获取声音歌词
|
||||
279. 获取声音歌词
|
||||
280. 获取专辑歌曲的音质
|
||||
281. 歌手动态信息
|
||||
282. 最近听歌列表
|
||||
|
||||
## 单元测试
|
||||
|
||||
|
18
module/recent_listen_list.js
Normal file
18
module/recent_listen_list.js
Normal file
@ -0,0 +1,18 @@
|
||||
// 最近听歌列表
|
||||
|
||||
module.exports = (query, request) => {
|
||||
const data = {}
|
||||
return request(
|
||||
'POST',
|
||||
`https://interface.music.163.com/eapi/pc/recent/listen/list`,
|
||||
data,
|
||||
{
|
||||
crypto: 'eapi',
|
||||
cookie: query.cookie,
|
||||
ua: query.ua || '',
|
||||
proxy: query.proxy,
|
||||
url: '/api/pc/recent/listen/list',
|
||||
realIP: query.realIP,
|
||||
},
|
||||
)
|
||||
}
|
@ -297,6 +297,7 @@
|
||||
279. 获取声音歌词
|
||||
280. 获取专辑歌曲的音质
|
||||
281. 歌手动态信息
|
||||
282. 最近听歌列表
|
||||
|
||||
## 安装
|
||||
|
||||
@ -4619,6 +4620,13 @@ qrCodeStatus:20,detailReason:0 验证成功qrCodeStatus:21,detailReason:0 二
|
||||
|
||||
**调用例子 :** `/artist/detail/dynamic?id=15396`
|
||||
|
||||
|
||||
### 最近听歌列表
|
||||
|
||||
说明 : 调用后可获取最近听歌列表
|
||||
|
||||
**接口地址 :** `/recent/listen/list`
|
||||
|
||||
## 离线访问此文档
|
||||
|
||||
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问
|
||||
|
Loading…
x
Reference in New Issue
Block a user