YesPlayMusic/netease_api/module/artist_new_song.js
2021-03-06 22:07:16 +08:00

20 lines
425 B
JavaScript

module.exports = (query, request) => {
query.cookie.os = 'ios'
query.cookie.appver = '8.1.20'
const data = {
limit: query.limit || 20,
startTimestamp: query.before || Date.now(),
}
return request(
'POST',
`https://music.163.com/api/sub/artist/new/works/song/list`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}