mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
电台个性推荐接口 #824
This commit is contained in:
parent
b935a55356
commit
372a81fb6e
@ -1,4 +1,7 @@
|
||||
# 更新日志
|
||||
### 3.41.1 | 2020.09.19
|
||||
- 新增`电台个性推荐接口` [#824](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/824)
|
||||
|
||||
### 3.41.0 | 2020.09.19
|
||||
- 新增`精品歌单标签列表`接口 [#921](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/921)
|
||||
|
||||
|
@ -269,6 +269,7 @@ banner({ type:0 }).then(res=>{
|
||||
167. 歌手全部歌曲
|
||||
168. 精品歌单标签列表
|
||||
169. 用户等级信息
|
||||
170. 电台个性推荐
|
||||
|
||||
|
||||
## 更新日志
|
||||
|
@ -185,6 +185,7 @@
|
||||
167. 歌手全部歌曲
|
||||
168. 精品歌单标签列表
|
||||
169. 用户等级信息
|
||||
170. 电台个性推荐
|
||||
|
||||
## 安装
|
||||
|
||||
@ -2333,6 +2334,15 @@ type : 地区
|
||||
|
||||
**调用例子 :** `/dj/banner`
|
||||
|
||||
### 电台个性推荐
|
||||
说明 : 调用此接口,可获取电台个性推荐列表
|
||||
**可选参数 :**
|
||||
|
||||
`limit` : 返回数量,默认为 6,总条数最多6条
|
||||
|
||||
**接口地址 :** `/dj/personalize/recommend`
|
||||
|
||||
**调用例子 :** `/dj/personalize/recommend?limit=5`
|
||||
|
||||
### 用户电台
|
||||
|
||||
|
1
interface.d.ts
vendored
1
interface.d.ts
vendored
@ -180,3 +180,4 @@ export * from './module_types/weblog'
|
||||
export * from './module_types/base'
|
||||
export * from './module_types/user_level'
|
||||
export * from './module_types/playlist_highquality_tags'
|
||||
export * from './module_types/dj_personalize_recommend'
|
||||
|
4
main.d.ts
vendored
4
main.d.ts
vendored
@ -182,6 +182,7 @@ import {
|
||||
APIBaseResponse,
|
||||
UserLevelRequestConfig,
|
||||
PlaylistHighqualityTagsRequestConfig,
|
||||
DjPersonalizeRecommendRequestConfig,
|
||||
} from './interface'
|
||||
// Start
|
||||
// export interface Response<T> {
|
||||
@ -333,6 +334,9 @@ interface APIInstance {
|
||||
dj_paygift: (
|
||||
params: DjPaygiftRequestConfig,
|
||||
) => Promise<Response<APIBaseResponse>>
|
||||
dj_personalize_recommend: (
|
||||
params: DjPersonalizeRecommendRequestConfig,
|
||||
) => Promise<Response<APIBaseResponse>>
|
||||
dj_program: (
|
||||
params: DjProgramRequestConfig,
|
||||
) => Promise<Response<APIBaseResponse>>
|
||||
|
17
module/dj_personalize_recommend.js
Normal file
17
module/dj_personalize_recommend.js
Normal file
@ -0,0 +1,17 @@
|
||||
// 电台个性推荐
|
||||
|
||||
module.exports = (query, request) => {
|
||||
return request(
|
||||
'POST',
|
||||
`https://music.163.com/api/djradio/personalize/rcmd`,
|
||||
{
|
||||
limit: query.limit || 6,
|
||||
},
|
||||
{
|
||||
crypto: 'weapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
},
|
||||
)
|
||||
}
|
5
module_types/dj_personalize_recommend.d.ts
vendored
Normal file
5
module_types/dj_personalize_recommend.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
import { RequestBaseConfig } from './base'
|
||||
|
||||
export interface DjPersonalizeRecommendRequestConfig extends RequestBaseConfig {
|
||||
limit?: string | number
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "NeteaseCloudMusicApi",
|
||||
"version": "3.41.0",
|
||||
"version": "3.41.1",
|
||||
"description": "网易云音乐 NodeJS 版 API",
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user