mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 22:51:23 +08:00
feat: 增加听歌足迹相关接口
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// 听歌足迹 - 本周/本月收听时长
|
||||
const createOption = require('../util/option.js')
|
||||
module.exports = (query, request) => {
|
||||
return request(
|
||||
`/api/content/activity/listen/data/realtime/report`,
|
||||
{
|
||||
type: query.type || 'week', //周 week 月 month
|
||||
},
|
||||
createOption(query),
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// 听歌足迹 - 周/月/年收听报告
|
||||
const createOption = require('../util/option.js')
|
||||
module.exports = (query, request) => {
|
||||
return request(
|
||||
`/api/content/activity/listen/data/report`,
|
||||
{
|
||||
type: query.type || 'week', //周 week 月 month 年 year
|
||||
endTime: query.endTime, // 不填就是本周/月的
|
||||
},
|
||||
createOption(query),
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// 听歌足迹 - 今日收听
|
||||
const createOption = require('../util/option.js')
|
||||
module.exports = (query, request) => {
|
||||
return request(
|
||||
`/api/content/activity/listen/data/today/song/play/rank`,
|
||||
{},
|
||||
createOption(query),
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// 听歌足迹 - 总收听时长
|
||||
const createOption = require('../util/option.js')
|
||||
module.exports = (query, request) => {
|
||||
return request(
|
||||
`/api/content/activity/listen/data/total`,
|
||||
{},
|
||||
createOption(query),
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// 听歌足迹 - 年度听歌足迹
|
||||
const createOption = require('../util/option.js')
|
||||
module.exports = (query, request) => {
|
||||
return request(
|
||||
`/api/content/activity/listen/data/year/report`,
|
||||
{},
|
||||
createOption(query),
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user