mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
commit
b95dd6e069
@ -1266,6 +1266,14 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
|
||||
|
||||
**调用例子 :** `/dj/sublist`
|
||||
|
||||
### 电台 - 付费精选
|
||||
|
||||
说明 : 可以获取付费精选的电台列表 , 传入 `limit` 和 `offset` 可以进行分页
|
||||
|
||||
**接口地址 :** `/dj/paygift`
|
||||
|
||||
**调用例子 :** `/dj/paygift?limit=10&offset=20`
|
||||
|
||||
### 电台 - 详情
|
||||
|
||||
说明 : 登陆后调用此接口 , 传入`rid`, 可获得对应电台的详情介绍
|
||||
|
20
router/dj_paygift.js
Normal file
20
router/dj_paygift.js
Normal file
@ -0,0 +1,20 @@
|
||||
// 付费电台
|
||||
module.exports = (req, res, createWebAPIRequest, request) => {
|
||||
const cookie = req.get("Cookie") ? req.get("Cookie") : "";
|
||||
const data = {
|
||||
csrf_token: "",
|
||||
limit: req.query.limit || 10,
|
||||
offset: req.query.offset || 0,
|
||||
};
|
||||
createWebAPIRequest(
|
||||
"music.163.com",
|
||||
"/weapi/djradio/home/paygift/list?_nmclfl=1",
|
||||
"POST",
|
||||
data,
|
||||
cookie,
|
||||
music_req => {
|
||||
res.send(music_req);
|
||||
},
|
||||
err => res.status(502).send("fetch error")
|
||||
);
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user