mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
commit
9a42fc1a78
@ -1,4 +1,7 @@
|
||||
# 更新日志
|
||||
### 2.15.0 | 2018.07.30
|
||||
新增相关歌单推荐和付费精选接口,增加歌手列表接口按首字母索引查找参数
|
||||
|
||||
### 2.14.0 | 2018.07.03
|
||||
修复无法使用邮箱问题
|
||||
|
||||
|
@ -90,6 +90,8 @@
|
||||
68. 歌单分类
|
||||
69. 收藏的歌手列表
|
||||
70. 订阅的电台列表
|
||||
71. 相关歌单推荐
|
||||
72. 付费精选接口
|
||||
|
||||
## 环境要求
|
||||
|
||||
@ -145,7 +147,7 @@ $ npm test
|
||||
|
||||
[<img alt="nujhong" src="https://avatars1.githubusercontent.com/u/23186058?v=4&s=117" width="117">](https://github.com/nujhong)[<img alt="zhangzhengyi12" src="https://avatars1.githubusercontent.com/u/23502338?v=4&s=117" width="117">](https://github.com/zhangzhengyi12)[<img alt="mchome" src="https://avatars1.githubusercontent.com/u/7392658?v=4&s=117" width="117">](https://github.com/mchome)[<img alt="pengx17" src="https://avatars1.githubusercontent.com/u/584378?v=4&s=117" width="117">](https://github.com/pengx17)[<img alt="LengYXin" src="https://avatars1.githubusercontent.com/u/19631404?v=4&s=117" width="117">](https://github.com/LengYXin)[<img alt="rccoder" src="https://avatars3.githubusercontent.com/u/7554325?v=4&s=117" width="117">](https://github.com/rccoder)
|
||||
|
||||
[<img alt="zhixuanziben" src="https://avatars0.githubusercontent.com/u/18346513?v=4&s=117" width="117">](https://github.com/zhixuanziben)[<img alt="LightStrawberry" src="https://avatars3.githubusercontent.com/u/5920513?v=4&s=117" width="117">](https://github.com/LightStrawberry)[<img alt="CeBkCn" src="https://avatars3.githubusercontent.com/u/14861605?v=4&s=117" width="117">](https://github.com/CeBkCn)[<img alt="nondanee" src="https://avatars0.githubusercontent.com/u/26399680?v=4&s=117" width="117">](https://github.com/nondanee)[<img alt="twesix" src="https://avatars1.githubusercontent.com/u/16174733?v=4&s=117" width="117">](https://github.com/twesix)
|
||||
[<img alt="zhixuanziben" src="https://avatars0.githubusercontent.com/u/18346513?v=4&s=117" width="117">](https://github.com/zhixuanziben)[<img alt="LightStrawberry" src="https://avatars3.githubusercontent.com/u/5920513?v=4&s=117" width="117">](https://github.com/LightStrawberry)[<img alt="CeBkCn" src="https://avatars3.githubusercontent.com/u/14861605?v=4&s=117" width="117">](https://github.com/CeBkCn)[<img alt="nondanee" src="https://avatars0.githubusercontent.com/u/26399680?v=4&s=117" width="117">](https://github.com/nondanee)[<img alt="twesix" src="https://avatars1.githubusercontent.com/u/16174733?v=4&s=117" width="117">](https://github.com/twesix)[<img alt="Means88" src="https://avatars1.githubusercontent.com/u/5810331?s=460&v=47" width="117">](https://github.com/Means88)
|
||||
|
||||
|
||||
## License
|
||||
|
@ -15,6 +15,9 @@
|
||||
跨站请求伪造 (CSRF), 伪造请求头 , 调用官方 API
|
||||
|
||||
## 版本新特性
|
||||
### 2.15.0 | 2018.07.30
|
||||
新增相关歌单推荐和付费精选接口,增加歌手列表接口按首字母索引查找参数
|
||||
|
||||
### 2.14.0 | 2018.07.03
|
||||
修复无法使用邮箱问题
|
||||
|
||||
@ -126,6 +129,9 @@ banner 接口 , 增加刷新登录接口 , 增加电台相关接口 , 补充评
|
||||
68. 歌单分类
|
||||
69. 收藏的歌手列表
|
||||
70. 订阅的电台列表
|
||||
71. 相关歌单推荐
|
||||
72. 付费精选接口
|
||||
|
||||
|
||||
## 安装
|
||||
|
||||
@ -442,6 +448,8 @@ tags:歌单tag
|
||||
|
||||
`offset` : 偏移数量,用于分页 , 如
|
||||
: 如 :( 页数 -1)\*30, 其中 30 为 limit 的值 , 默认为 0
|
||||
`initial`: 按首字母索引查找参数,如 `/artist/list?cat=1001&initial=b` 返回内容将以 name 字段开头为b或者拼音开头为b为顺序排列
|
||||
|
||||
category Code 取值:
|
||||
```
|
||||
入驻歌手 5001
|
||||
@ -1266,6 +1274,14 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
|
||||
|
||||
**调用例子 :** `/dj/sublist`
|
||||
|
||||
### 电台 - 付费精选
|
||||
|
||||
说明 : 可以获取付费精选的电台列表 , 传入 `limit` 和 `offset` 可以进行分页
|
||||
|
||||
**接口地址 :** `/dj/paygift`
|
||||
|
||||
**调用例子 :** `/dj/paygift?limit=10&offset=20`
|
||||
|
||||
### 电台 - 详情
|
||||
|
||||
说明 : 登陆后调用此接口 , 传入`rid`, 可获得对应电台的详情介绍
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "NeteaseCloudMusicApi",
|
||||
"version": "2.14.0",
|
||||
"version": "2.15.0",
|
||||
"description": "网易云音乐 NodeJS 版 API",
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
|
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