README.MD 3.6 KB
Newer Older
B
binaryify 已提交
1
# 网易云音乐 API
B
binaryify 已提交
2
网易云音乐 NodeJS 版 API
zhuangtongfa's avatar
zhuangtongfa 已提交
3
<p>
zhuangtongfa's avatar
update  
zhuangtongfa 已提交
4
<a href="https://www.npmjs.com/package/NeteaseCloudMusicApi"><img src="https://img.shields.io/npm/v/NeteaseCloudMusicApi.svg" alt="Version"></a>
zhuangtongfa's avatar
zhuangtongfa 已提交
5
<a href="https://www.npmjs.com/package/NeteaseCloudMusicApi"><img src="https://img.shields.io/npm/l/NeteaseCloudMusicApi.svg" alt="License"></a>
zhuangtongfa's avatar
zhuangtongfa 已提交
6 7
<a href="https://www.npmjs.com/package/NeteaseCloudMusicApi"><img src="https://img.shields.io/david/dev/binaryify/NeteaseCloudMusicApi.svg" alt="devDependencies" ></a>
<a href="https://www.npmjs.com/package/NeteaseCloudMusicApi"><img src="https://img.shields.io/david/binaryify/NeteaseCloudMusicApi.svg" alt="devDependencies" ></a>
zhuangtongfa's avatar
update  
zhuangtongfa 已提交
8
<a href="https://codeclimate.com/github/Binaryify/NeteaseCloudMusicApi"><img src="https://codeclimate.com/github/Binaryify/NeteaseCloudMusicApi/badges/gpa.svg" /></a>
zhuangtongfa's avatar
zhuangtongfa 已提交
9 10
</p>  

11 12 13 14
## 灵感来自
[disoul/electron-cloud-music](https://github.com/disoul/electron-cloud-music)

[darknessomi/musicbox](https://github.com/darknessomi/musicbox)
15

16
## 版本新特性  
B
binaryify 已提交
17 18 19
### 2.5.4 | 2017.5.5
新增点赞接口,更新文档

20 21 22
### 2.5.0 | 2017.4.29
增加 mv/专辑/歌单评论接口,增加云盘相关接口,增加获取用户动态/信息接口,增加关注/粉丝列表接口,增加收藏歌单接口,增加相似 mv/歌曲/用户接口,增加 banner 接口,增加刷新登录接口,增加电台相关接口,补充评论接口,更新文档

B
binaryify 已提交
23 24 25
### 2.4.6 | 2017.4.21
增加播放 mv 接口,更新文档

B
binaryify 已提交
26 27 28
### 2.4.5 | 2017.4.20
增加歌手专辑,歌手单曲等接口,修复/album 接口描述错误,更新文档

29 30 31
### 2.4.0 | 2017.4.20
增加歌单(网友精选碟),新碟上架,热门歌手等接口,更新文档

B
binaryify 已提交
32 33 34
### 2.3.4 | 2017.4.20
增加歌曲详情接口,更新文档

B
binaryify 已提交
35 36 37
### 2.3.0 | 2017.4.15
增加排行榜接口,更新文档

B
improve  
binaryify 已提交
38
### 2.2.0 | 2017.4.14
39 40
增加私人 FM, 喜欢歌曲,垃圾桶,每日签到等接口,更新文档

B
binaryify 已提交
41
### 2.1.0 | 2017.4.6
B
binaryify 已提交
42 43
增加获取评论接口以及对应单元测试,增加更新日志

B
binaryify 已提交
44
### 2.0.0 | 2017.4.1
B
binaryify 已提交
45
版本升级到 2.0.增加使用文档,完成项目重构,增加更完善的单元测试,升级 api 到 v2+,支持登录并获取用户信息和创建的歌单,可通过获取音乐 url 接口获取用户歌单里的的音乐,获取每日推荐歌单和每日推荐音乐
46

47 48 49 50 51 52 53 54 55 56 57 58 59 60
## 功能特性
1. 登录
2. 获取用户歌单
3. 获取歌曲详情
4. 获取音乐 url
5. 搜索音乐
6. 获取歌词
7. 获取评论
8. 获取歌手专辑
9. 获取每日推荐歌单
10. 获取每日推荐歌曲
11. 喜欢歌曲
12. 私人FM
13. 把私人 FM 的歌曲移动至垃圾桶
B
binaryify 已提交
61 62
14. 签到
15. 各排行榜
63
16. 歌曲详情
B
binaryify 已提交
64

65 66
## 环境要求
需要 NodeJS 6.0+ 环境
zhuangtongfa's avatar
init  
zhuangtongfa 已提交
67

68 69 70 71
## 安装  
``` shell
$ git clone git@github.com:Binaryify/NeteaseCloudMusicApi.git
$ npm install
72
```
73 74 75
## 运行
``` shell
$ node app.js 
76
```
B
binaryify 已提交
77 78 79 80 81 82 83 84 85 86
服务器启动默认端口为3000,若不想使用3000端口,可使用以下命令:  
Mac/Linux
```shell
$ PORT=4000 node app.js
```

windows 下使用 git-bash 或者 cmder 等终端执行以下命令:  
```shell
$ set PORT=4000 && node app.js
```
87

88 89
## 使用文档
[文档地址](https://binaryify.github.io/NeteaseCloudMusicApi)
90

B
improve  
binaryify 已提交
91 92
![文档](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/docs.png)

93
## 更新日志
B
binaryify 已提交
94
[changelog](https://github.com/Binaryify/NeteaseCloudMusicApi/blob/master/CHANGELOG.MD)  
B
binaryify 已提交
95

96
## 单元测试
97

98 99
``` shell
$ npm test
B
binaryify 已提交
100
```  
zhuangtongfa's avatar
update  
zhuangtongfa 已提交
101

102 103
![单元测试](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/screenshot1.png)
![单元测试](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/screenshot2.png)
zhuangtongfa's avatar
update  
zhuangtongfa 已提交
104

105
## License
B
improve  
binaryify 已提交
106
[The MIT License (MIT)](https://github.com/Binaryify/NeteaseCloudMusicApi/blob/master/LICENSE)