mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
feat: 签到进度接口 (Binaryify#1384)
This commit is contained in:
parent
39d3fb83eb
commit
39708e48cb
@ -251,6 +251,7 @@
|
||||
233. 最近播放-歌单
|
||||
234. 最近播放-专辑
|
||||
235. 最近播放-播客
|
||||
236. 签到进度
|
||||
|
||||
|
||||
## 安装
|
||||
@ -3693,6 +3694,15 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
|
||||
|
||||
**调用例子 :** `/record/recent/dj?limit=1`
|
||||
|
||||
### 签到进度
|
||||
|
||||
说明 : 调用此接口 , 可获得签到进度
|
||||
|
||||
**可选参数 :** `moduleId` : 模块 id,默认为 '1207signin-1207signin'
|
||||
|
||||
**接口地址 :** `/signin/progress`
|
||||
|
||||
**调用例子 :** `/signin/progress`
|
||||
|
||||
|
||||
## 离线访问此文档
|
||||
|
6
interface.d.ts
vendored
6
interface.d.ts
vendored
@ -1595,3 +1595,9 @@ export function record_recent_dj(
|
||||
limit?: number | string
|
||||
} & RequestBaseConfig,
|
||||
): Promise<Response>
|
||||
|
||||
export function signin_progress(
|
||||
params: {
|
||||
moduleId?: string
|
||||
} & RequestBaseConfig,
|
||||
): Promise<Response>
|
18
module/signin_progress.js
Normal file
18
module/signin_progress.js
Normal file
@ -0,0 +1,18 @@
|
||||
// 签到进度
|
||||
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
moduleId: query.moduleId || '1207signin-1207signin',
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
`https://music.163.com/weapi/act/modules/signin/v2/progress`,
|
||||
data,
|
||||
{
|
||||
crypto: 'weapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
},
|
||||
)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user