Skip to content

Commit

Permalink
添加 VIP 信息接口
Browse files Browse the repository at this point in the history
  • Loading branch information
WooMai committed Jul 6, 2021
1 parent 1cdc092 commit 7f644bf
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ banner({ type:0 }).then(res=>{
220. 音乐人任务
221. 账号云豆数
222. 领取云豆
223. 获取 VIP 信息

## 更新日志

Expand Down
7 changes: 7 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@
220. 音乐人任务
221. 账号云豆数
222. 领取云豆
223. 获取 VIP 信息

## 安装

Expand Down Expand Up @@ -3466,7 +3467,13 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`

**调用例子 :** `/musician/cloudbean/obtain?id=7036416928&period=1`

# 获取 VIP 信息

说明: 登录后调用此接口,可获取当前 VIP 信息。

**接口地址 :** `/vip/info`

**调用例子 :** `/vip/info`

## 离线访问此文档

Expand Down
2 changes: 2 additions & 0 deletions interface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1515,3 +1515,5 @@ export function musician_cloudbean_obtain(
period: number | string
} & RequestBaseConfig,
): Promise<Response>

export function vip_info(params: RequestBaseConfig): Promise<Response>
15 changes: 15 additions & 0 deletions module/vip_info.js
Original file line number Diff line number Diff line change
@@ -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,
},
)
}

0 comments on commit 7f644bf

Please sign in to comment.