Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
m0_57517058
NeteaseCloudMusicApi
提交
40fe20db
N
NeteaseCloudMusicApi
项目概览
m0_57517058
/
NeteaseCloudMusicApi
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
NeteaseCloudMusicApi
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
40fe20db
编写于
1月 04, 2018
作者:
B
binaryify
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加 proxy 功能,修复 cookie 丢失问题
上级
752d1965
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
21 addition
and
17 deletion
+21
-17
CHANGELOG.MD
CHANGELOG.MD
+4
-0
README.MD
README.MD
+10
-10
docs/README.md
docs/README.md
+6
-6
package.json
package.json
+1
-1
未找到文件。
CHANGELOG.MD
浏览文件 @
40fe20db
# 更新日志
# 更新日志
### 2.8.1 | 2018.01.04
添加了proxy功能
### 2.8.0 | 2018.01.04
### 2.8.0 | 2018.01.04
用 'request' 重写了请求函数
用 'request' 重写了请求函数
...
...
README.MD
浏览文件 @
40fe20db
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +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/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>
<a
href=
"https://www.npmjs.com/package/NeteaseCloudMusicApi"
><img
src=
"https://img.shields.io/david/binaryify/NeteaseCloudMusicApi.svg"
alt=
"devDependencies"
></a>
<a
href=
"https://codeclimate.com/github/Binaryify/NeteaseCloudMusicApi"
><img
src=
"https://codeclimate.com/github/Binaryify/NeteaseCloudMusicApi/badges/gpa.svg"
/></a>
<a
href=
"https://codeclimate.com/github/Binaryify/NeteaseCloudMusicApi"
><img
src=
"https://codeclimate.com/github/Binaryify/NeteaseCloudMusicApi/badges/gpa.svg"
/></a>
</p>
</p>
## 灵感来自
## 灵感来自
[
disoul/electron-cloud-music
](
https://github.com/disoul/electron-cloud-music
)
[
disoul/electron-cloud-music
](
https://github.com/disoul/electron-cloud-music
)
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
## 版本新特性
## 版本新特性
###
? ? ?
| 2018.01.04
###
2.8.1
| 2018.01.04
添加了proxy功能
添加了proxy功能
### 2.8.0 | 2018.01.04
### 2.8.0 | 2018.01.04
...
@@ -28,9 +28,9 @@
...
@@ -28,9 +28,9 @@
优化 CORS 设置
优化 CORS 设置
### 2.6.4 | 2017.7.16
### 2.6.4 | 2017.7.16
添加缓存机制和随机 UA 机制 感谢
[
@u3u
](
https://github.com/u3u
)
添加缓存机制和随机 UA 机制 感谢
[
@u3u
](
https://github.com/u3u
)
[
issue:77
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/77
)
[
issue:77
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/77
)
优化请求代码 感谢
[
@huhuime
](
https://github.com/huhuime
)
优化请求代码 感谢
[
@huhuime
](
https://github.com/huhuime
)
[
issue:83
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/83
)
[
issue:83
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/83
)
### 2.6.2 | 2017.7.16
### 2.6.2 | 2017.7.16
...
@@ -160,22 +160,22 @@
...
@@ -160,22 +160,22 @@
## 环境要求
## 环境要求
需要 NodeJS 6.0+ 环境
需要 NodeJS 6.0+ 环境
## 安装
## 安装
```
shell
```
shell
$
git clone git@github.com:Binaryify/NeteaseCloudMusicApi.git
$
git clone git@github.com:Binaryify/NeteaseCloudMusicApi.git
$
npm
install
$
npm
install
```
```
## 运行
## 运行
```
shell
```
shell
$
node app.js
$
node app.js
```
```
服务器启动默认端口为3000,若不想使用3000端口,可使用以下命令:
服务器启动默认端口为3000,若不想使用3000端口,可使用以下命令:
Mac/Linux
Mac/Linux
```
shell
```
shell
$ PORT
=
4000 node app.js
$ PORT
=
4000 node app.js
```
```
windows 下使用 git-bash 或者 cmder 等终端执行以下命令:
windows 下使用 git-bash 或者 cmder 等终端执行以下命令:
```
shell
```
shell
$
set
PORT
=
4000
&&
node app.js
$
set
PORT
=
4000
&&
node app.js
```
```
...
@@ -186,13 +186,13 @@ $ set PORT=4000 && node app.js
...
@@ -186,13 +186,13 @@ $ set PORT=4000 && node app.js
![
文档
](
https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/docs.png
)
![
文档
](
https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/docs.png
)
## 更新日志
## 更新日志
[
changelog
](
https://github.com/Binaryify/NeteaseCloudMusicApi/blob/master/CHANGELOG.MD
)
[
changelog
](
https://github.com/Binaryify/NeteaseCloudMusicApi/blob/master/CHANGELOG.MD
)
## 单元测试
## 单元测试
```
shell
```
shell
$
npm
test
$
npm
test
```
```
![
单元测试
](
https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/screenshot1.png
)
![
单元测试
](
https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/screenshot1.png
)
![
单元测试
](
https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/screenshot2.png
)
![
单元测试
](
https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/screenshot2.png
)
...
...
docs/README.md
浏览文件 @
40fe20db
...
@@ -30,7 +30,7 @@ fetch(url)
...
@@ -30,7 +30,7 @@ fetch(url)
## 版本新特性
## 版本新特性
###
? ? ?
| 2018.01.04
###
2.8.1
| 2018.01.04
添加了proxy功能
添加了proxy功能
### 2.8.0 | 2018.01.04
### 2.8.0 | 2018.01.04
...
@@ -353,8 +353,8 @@ $ set PORT=4000 && node app.js
...
@@ -353,8 +353,8 @@ $ set PORT=4000 && node app.js
**接口地址:**
**接口地址:**
`/music/url`
`/music/url`
**调用例子:**
**调用例子:**
`/music/url?id=33894312`
`/music/url?id=33894312`
`/music/url?id=405998841,33894312`
`/music/url?id=405998841,33894312`
返回数据如下图:
返回数据如下图:
...
@@ -432,7 +432,7 @@ $ set PORT=4000 && node app.js
...
@@ -432,7 +432,7 @@ $ set PORT=4000 && node app.js
`/search/multimatch?keywords=海阔天空`
`/search/multimatch?keywords=海阔天空`
### 对歌单添加或删除歌曲
### 对歌单添加或删除歌曲
说明:调用此接口,可以添加歌曲到歌单或者从歌单删除某首歌曲(需要登录)
说明:调用此接口,可以添加歌曲到歌单或者从歌单删除某首歌曲(需要登录)
**必选参数:**
**必选参数:**
`op`
: 从歌单增加单曲为add,删除为 del
`op`
: 从歌单增加单曲为add,删除为 del
...
@@ -455,8 +455,8 @@ $ set PORT=4000 && node app.js
...
@@ -455,8 +455,8 @@ $ set PORT=4000 && node app.js
**接口地址:**
**接口地址:**
`/lyric`
`/lyric`
**调用例子:**
**调用例子:**
`/lyric?id=33894312`
`/lyric?id=33894312`
返回数据如下图:
返回数据如下图:
![
获取歌词
](
https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/%E6%AD%8C%E8%AF%8D.png
)
![
获取歌词
](
https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/%E6%AD%8C%E8%AF%8D.png
)
...
...
package.json
浏览文件 @
40fe20db
{
{
"name"
:
"NeteaseCloudMusicApi"
,
"name"
:
"NeteaseCloudMusicApi"
,
"version"
:
"2.8.
0
"
,
"version"
:
"2.8.
1
"
,
"description"
:
"网易云音乐 NodeJS 版 API"
,
"description"
:
"网易云音乐 NodeJS 版 API"
,
"scripts"
:
{
"scripts"
:
{
"start"
:
"node app.js"
,
"start"
:
"node app.js"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录