mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
添加 VIP 信息接口
This commit is contained in:
parent
1cdc09226f
commit
7f644bf61f
@ -335,6 +335,7 @@ banner({ type:0 }).then(res=>{
|
|||||||
220. 音乐人任务
|
220. 音乐人任务
|
||||||
221. 账号云豆数
|
221. 账号云豆数
|
||||||
222. 领取云豆
|
222. 领取云豆
|
||||||
|
223. 获取 VIP 信息
|
||||||
|
|
||||||
## 更新日志
|
## 更新日志
|
||||||
|
|
||||||
|
@ -239,6 +239,7 @@
|
|||||||
220. 音乐人任务
|
220. 音乐人任务
|
||||||
221. 账号云豆数
|
221. 账号云豆数
|
||||||
222. 领取云豆
|
222. 领取云豆
|
||||||
|
223. 获取 VIP 信息
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
@ -3466,7 +3467,13 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
|
|||||||
|
|
||||||
**调用例子 :** `/musician/cloudbean/obtain?id=7036416928&period=1`
|
**调用例子 :** `/musician/cloudbean/obtain?id=7036416928&period=1`
|
||||||
|
|
||||||
|
# 获取 VIP 信息
|
||||||
|
|
||||||
|
说明: 登录后调用此接口,可获取当前 VIP 信息。
|
||||||
|
|
||||||
|
**接口地址 :** `/vip/info`
|
||||||
|
|
||||||
|
**调用例子 :** `/vip/info`
|
||||||
|
|
||||||
## 离线访问此文档
|
## 离线访问此文档
|
||||||
|
|
||||||
|
2
interface.d.ts
vendored
2
interface.d.ts
vendored
@ -1515,3 +1515,5 @@ export function musician_cloudbean_obtain(
|
|||||||
period: number | string
|
period: number | string
|
||||||
} & RequestBaseConfig,
|
} & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
|
||||||
|
export function vip_info(params: RequestBaseConfig): Promise<Response>
|
||||||
|
15
module/vip_info.js
Normal file
15
module/vip_info.js
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
// 获取 VIP 信息
|
||||||
|
|
||||||
|
module.exports = (query, request) => {
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`https://music.163.com/weapi/music-vip-membership/front/vip/info`,
|
||||||
|
{},
|
||||||
|
{
|
||||||
|
crypto: 'weapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user