mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
v4.2.0 新增最近播放-歌曲,最近播放-视频,最近播放-声音,最近播放-歌单,最近播放-专辑,最近播放-播客等接口
This commit is contained in:
parent
168451712f
commit
0d4f4d671e
@ -1,4 +1,9 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
### 4.2.0 | 2021.11.23
|
||||||
|
|
||||||
|
- 合并相同接口(发送文本动态,使用`/share/resource`接口代替);增加歌手视频接口;增加创建共享歌单的用法 [#1402](https://github.com/Binaryify/NeteaseCloudMusicApi/pull/1402)
|
||||||
|
|
||||||
|
- 新增最近播放-歌曲,最近播放-视频,最近播放-声音,最近播放-歌单,最近播放-专辑,最近播放-播客等接口
|
||||||
|
|
||||||
### 4.1.1 | 2021.11.20
|
### 4.1.1 | 2021.11.20
|
||||||
|
|
||||||
|
@ -349,6 +349,12 @@ banner({ type:0 }).then(res=>{
|
|||||||
227. 获取客户端歌曲下载 url
|
227. 获取客户端歌曲下载 url
|
||||||
228. 获取歌单所有歌曲
|
228. 获取歌单所有歌曲
|
||||||
229. 乐签信息
|
229. 乐签信息
|
||||||
|
230. 最近播放-歌曲
|
||||||
|
231. 最近播放-视频
|
||||||
|
232. 最近播放-声音
|
||||||
|
233. 最近播放-歌单
|
||||||
|
234. 最近播放-专辑
|
||||||
|
235. 最近播放-播客
|
||||||
|
|
||||||
## 更新日志
|
## 更新日志
|
||||||
|
|
||||||
|
@ -245,6 +245,13 @@
|
|||||||
227. 获取歌单所有歌曲
|
227. 获取歌单所有歌曲
|
||||||
228. 乐签信息
|
228. 乐签信息
|
||||||
229. 获取歌手视频
|
229. 获取歌手视频
|
||||||
|
230. 最近播放-歌曲
|
||||||
|
231. 最近播放-视频
|
||||||
|
232. 最近播放-声音
|
||||||
|
233. 最近播放-歌单
|
||||||
|
234. 最近播放-专辑
|
||||||
|
235. 最近播放-播客
|
||||||
|
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
@ -970,9 +977,9 @@ tags: 歌单标签
|
|||||||
|
|
||||||
**调用例子 :** `/event/del?evId=6712917601`
|
**调用例子 :** `/event/del?evId=6712917601`
|
||||||
|
|
||||||
### 分享歌曲、歌单、mv、电台、电台节目到动态
|
### 分享文本、歌曲、歌单、mv、电台、电台节目到动态
|
||||||
|
|
||||||
说明 : 登录后调用此接口 ,可以分享歌曲、歌单、mv、电台、电台节目到动态
|
说明 : 登录后调用此接口 ,可以分享文本、歌曲、歌单、mv、电台、电台节目到动态
|
||||||
|
|
||||||
**必选参数 :** `id` : 资源 id (歌曲,歌单,mv,电台,电台节目对应 id)
|
**必选参数 :** `id` : 资源 id (歌曲,歌单,mv,电台,电台节目对应 id)
|
||||||
|
|
||||||
@ -3614,6 +3621,68 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
|
|||||||
|
|
||||||
**调用例子 :** `/artist/video?id=2116`
|
**调用例子 :** `/artist/video?id=2116`
|
||||||
|
|
||||||
|
### 最近播放-歌曲
|
||||||
|
|
||||||
|
说明 : 调用此接口 , 可获得最近播放-歌曲
|
||||||
|
|
||||||
|
**可选参数 :** `limit` : 返回数量 , 默认为 100
|
||||||
|
|
||||||
|
**接口地址 :** `/record/recent/song`
|
||||||
|
|
||||||
|
**调用例子 :** `/record/recent/song?limit=1`
|
||||||
|
|
||||||
|
### 最近播放-视频
|
||||||
|
|
||||||
|
说明 : 调用此接口 , 可获得最近播放-视频
|
||||||
|
|
||||||
|
**可选参数 :** `limit` : 返回数量 , 默认为 100
|
||||||
|
|
||||||
|
**接口地址 :** `/record/recent/video`
|
||||||
|
|
||||||
|
**调用例子 :** `/record/recent/video?limit=1`
|
||||||
|
|
||||||
|
### 最近播放-声音
|
||||||
|
|
||||||
|
说明 : 调用此接口 , 可获得最近播放-声音
|
||||||
|
|
||||||
|
**可选参数 :** `limit` : 返回数量 , 默认为 100
|
||||||
|
|
||||||
|
**接口地址 :** `/record/recent/voice`
|
||||||
|
|
||||||
|
**调用例子 :** `/record/recent/voice?limit=1`
|
||||||
|
|
||||||
|
### 最近播放-歌单
|
||||||
|
|
||||||
|
说明 : 调用此接口 , 可获得最近播放-歌单
|
||||||
|
|
||||||
|
**可选参数 :** `limit` : 返回数量 , 默认为 100
|
||||||
|
|
||||||
|
**接口地址 :** `/record/recent/playlist`
|
||||||
|
|
||||||
|
**调用例子 :** `/record/recent/playlist?limit=1`
|
||||||
|
|
||||||
|
### 最近播放-专辑
|
||||||
|
|
||||||
|
说明 : 调用此接口 , 可获得最近播放-歌曲
|
||||||
|
|
||||||
|
**可选参数 :** `limit` : 返回数量 , 默认为 100
|
||||||
|
|
||||||
|
**接口地址 :** `/record/recent/album`
|
||||||
|
|
||||||
|
**调用例子 :** `/record/recent/album?limit=1`
|
||||||
|
|
||||||
|
### 最近播放-播客
|
||||||
|
|
||||||
|
说明 : 调用此接口 , 可获得最近播放-歌曲
|
||||||
|
|
||||||
|
**可选参数 :** `limit` : 返回数量 , 默认为 100
|
||||||
|
|
||||||
|
**接口地址 :** `/record/recent/dj`
|
||||||
|
|
||||||
|
**调用例子 :** `/record/recent/dj?limit=1`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 离线访问此文档
|
## 离线访问此文档
|
||||||
|
|
||||||
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问
|
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问
|
||||||
|
36
interface.d.ts
vendored
36
interface.d.ts
vendored
@ -1559,3 +1559,39 @@ export function artist_video(
|
|||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
export function sign_happy_info(params: RequestBaseConfig): Promise<Response>
|
export function sign_happy_info(params: RequestBaseConfig): Promise<Response>
|
||||||
|
|
||||||
|
export function record_recent_song(
|
||||||
|
params: {
|
||||||
|
limit?: number | string
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function record_recent_video(
|
||||||
|
params: {
|
||||||
|
limit?: number | string
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function record_recent_voice(
|
||||||
|
params: {
|
||||||
|
limit?: number | string
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function record_recent_playlist(
|
||||||
|
params: {
|
||||||
|
limit?: number | string
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function record_recent_album(
|
||||||
|
params: {
|
||||||
|
limit?: number | string
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function record_recent_dj(
|
||||||
|
params: {
|
||||||
|
limit?: number | string
|
||||||
|
} & RequestBaseConfig,
|
||||||
|
): Promise<Response>
|
||||||
|
16
module/record_recent_album.js
Normal file
16
module/record_recent_album.js
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
limit: query.limit || 100,
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`https://music.163.com/api/play-record/album/list`,
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'weapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
16
module/record_recent_dj.js
Normal file
16
module/record_recent_dj.js
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
limit: query.limit || 100,
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`https://music.163.com/api/play-record/djradio/list`,
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'weapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
16
module/record_recent_playlist.js
Normal file
16
module/record_recent_playlist.js
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
limit: query.limit || 100,
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`https://music.163.com/api/play-record/playlist/list`,
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'weapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
16
module/record_recent_song.js
Normal file
16
module/record_recent_song.js
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
limit: query.limit || 100,
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`https://music.163.com/api/play-record/song/list`,
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'weapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
16
module/record_recent_video.js
Normal file
16
module/record_recent_video.js
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
limit: query.limit || 100,
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`https://music.163.com/api/play-record/newvideo/list`,
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'weapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
16
module/record_recent_voice.js
Normal file
16
module/record_recent_voice.js
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
limit: query.limit || 100,
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`https://music.163.com/api/play-record/voice/list`,
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'weapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "NeteaseCloudMusicApi",
|
"name": "NeteaseCloudMusicApi",
|
||||||
"version": "4.1.1",
|
"version": "4.2.0",
|
||||||
"description": "网易云音乐 NodeJS 版 API",
|
"description": "网易云音乐 NodeJS 版 API",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node app.js",
|
"start": "node app.js",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user