mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
新增接口 #971
This commit is contained in:
parent
edf7077a47
commit
b59eaf492b
@ -1,4 +1,7 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
### 3.43.0 | 2020.10.16
|
||||||
|
- 新增`电台订阅者列表`接口 [#971](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/971)
|
||||||
|
|
||||||
### 3.42.4 | 2020.10.07
|
### 3.42.4 | 2020.10.07
|
||||||
- 修复新评论接口分页参数问题
|
- 修复新评论接口分页参数问题
|
||||||
|
|
||||||
|
@ -278,6 +278,7 @@ banner({ type:0 }).then(res=>{
|
|||||||
176. 删除视频歌单里的视频
|
176. 删除视频歌单里的视频
|
||||||
177. 最近播放的视频
|
177. 最近播放的视频
|
||||||
178. 音乐日历
|
178. 音乐日历
|
||||||
|
179. 电台订阅者列表
|
||||||
|
|
||||||
|
|
||||||
## 更新日志
|
## 更新日志
|
||||||
|
@ -194,6 +194,7 @@
|
|||||||
176. 删除视频歌单里的视频
|
176. 删除视频歌单里的视频
|
||||||
177. 最近播放的视频
|
177. 最近播放的视频
|
||||||
178. 音乐日历
|
178. 音乐日历
|
||||||
|
179. 电台订阅者列表
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
@ -2460,6 +2461,19 @@ type : 地区
|
|||||||
|
|
||||||
**调用例子 :** `/dj/personalize/recommend?limit=5`
|
**调用例子 :** `/dj/personalize/recommend?limit=5`
|
||||||
|
|
||||||
|
### 电台订阅者列表
|
||||||
|
说明 : 调用此接口,可获取电台订阅者列表
|
||||||
|
**必选参数 :** `id`: 电台id
|
||||||
|
|
||||||
|
**可选参数 :**
|
||||||
|
`time` : 分页参数,默认-1,传入上一次返回结果的 time,将会返回下一页的数据
|
||||||
|
|
||||||
|
`limit` : 返回数量,默认为 20
|
||||||
|
|
||||||
|
**接口地址 :** `/dj/subscriber`
|
||||||
|
|
||||||
|
**调用例子 :** `/dj/subscriber?id=335425050` , `/dj/subscriber?id=335425050&time=1602761825390`
|
||||||
|
|
||||||
### 用户电台
|
### 用户电台
|
||||||
|
|
||||||
说明 : 调用此接口, 传入用户id可获取用户创建的电台
|
说明 : 调用此接口, 传入用户id可获取用户创建的电台
|
||||||
|
6
interface.d.ts
vendored
6
interface.d.ts
vendored
@ -1261,3 +1261,9 @@ export function user_replacephone(
|
|||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
export function user_safe(params: RequestBaseConfig): Promise<Response>
|
export function user_safe(params: RequestBaseConfig): Promise<Response>
|
||||||
|
|
||||||
|
export function dj_subscriber(params: {
|
||||||
|
id: number | string
|
||||||
|
limit?: number | string
|
||||||
|
time?: number | string
|
||||||
|
} & RequestBaseConfig,): Promise<Response>
|
||||||
|
16
module/dj_subscriber.js
Normal file
16
module/dj_subscriber.js
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// 电台详情
|
||||||
|
|
||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
time: query.time || '-1',
|
||||||
|
id: query.id,
|
||||||
|
limit: query.limit || '20',
|
||||||
|
total: 'true',
|
||||||
|
}
|
||||||
|
return request('POST', `https://music.163.com/api/djradio/subscriber`, data, {
|
||||||
|
crypto: 'weapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
})
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "NeteaseCloudMusicApi",
|
"name": "NeteaseCloudMusicApi",
|
||||||
"version": "3.42.4",
|
"version": "3.43.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