update:文档结构调整
@ -1,4 +1 @@
|
||||
static
|
||||
docs
|
||||
node_modules
|
||||
module_example
|
||||
|
@ -131,7 +131,7 @@ banner({ type:0 }).then(res=>{
|
||||
[文档地址](http://docs.neteasecloudmusicapi.binaryify.com/#/)
|
||||
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
## 功能特性
|
||||
@ -417,8 +417,8 @@ banner({ type:0 }).then(res=>{
|
||||
$ npm test
|
||||
```
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
## SDK
|
||||
|
||||
|
1430
docs/v2.md
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "NeteaseCloudMusicApi",
|
||||
"version": "4.14.1",
|
||||
"version": "4.14.2",
|
||||
"description": "网易云音乐 NodeJS 版 API",
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
|
@ -861,8 +861,6 @@ signature:用户签名
|
||||
|
||||
**调用例子 :** `/user/playlist?uid=32953014`
|
||||
|
||||
返回数据如下图 :
|
||||

|
||||
|
||||
### 更新歌单
|
||||
|
||||
@ -1686,8 +1684,6 @@ tags: 歌单标签
|
||||
|
||||
**调用例子 :** `/lyric?id=33894312`
|
||||
|
||||
返回数据如下图 :
|
||||

|
||||
|
||||
### 获取逐字歌词
|
||||
|
||||
@ -1789,8 +1785,6 @@ tags: 歌单标签
|
||||
|
||||
**调用例子 :** `/comment/music?id=186016&limit=1` 对应晴天评论
|
||||
|
||||
返回数据如下图 :
|
||||

|
||||
|
||||
### 楼层评论
|
||||
|
||||
@ -2360,8 +2354,6 @@ pc: 云盘歌曲信息,如果不存在该字段,则为非云盘歌曲
|
||||
|
||||
**调用例子 :** `/artists?id=6452`
|
||||
|
||||
返回数据如下图 :
|
||||

|
||||
|
||||
### 获取歌手 mv
|
||||
|
||||
@ -2390,8 +2382,6 @@ pc: 云盘歌曲信息,如果不存在该字段,则为非云盘歌曲
|
||||
|
||||
**调用例子 :** `/artist/album?id=6452&limit=5` ( 周杰伦 )
|
||||
|
||||
返回数据如下图 :
|
||||

|
||||
|
||||
### 获取歌手描述
|
||||
|
||||
@ -2471,8 +2461,6 @@ pc: 云盘歌曲信息,如果不存在该字段,则为非云盘歌曲
|
||||
|
||||
**调用例子 :** `/recommend/resource`
|
||||
|
||||
返回数据如下图 :
|
||||

|
||||
|
||||
### 获取每日推荐歌曲
|
||||
|
||||
@ -2482,8 +2470,6 @@ pc: 云盘歌曲信息,如果不存在该字段,则为非云盘歌曲
|
||||
|
||||
**调用例子 :** `/recommend/songs`
|
||||
|
||||
返回数据如下图 :
|
||||

|
||||
|
||||
### 每日推荐歌曲-不感兴趣
|
||||
|
||||
@ -2535,9 +2521,7 @@ pc: 云盘歌曲信息,如果不存在该字段,则为非云盘歌曲
|
||||
|
||||
**调用例子 :** `/personal_fm`
|
||||
|
||||
返回数据如下图 :
|
||||
|
||||

|
||||
|
||||
### 签到
|
||||
|
||||
@ -2550,11 +2534,8 @@ pc: 云盘歌曲信息,如果不存在该字段,则为非云盘歌曲
|
||||
|
||||
**调用例子 :** `/daily_signin`
|
||||
|
||||
返回数据如下图 :
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
### 乐签信息
|
||||
|
||||
@ -2574,13 +2555,10 @@ pc: 云盘歌曲信息,如果不存在该字段,则为非云盘歌曲
|
||||
|
||||
**调用例子 :** `/like?id=347230`
|
||||
|
||||
返回数据如下图 :
|
||||
|
||||

|
||||
|
||||
喜欢成功则返回数据的 code 为 200, 其余为失败
|
||||
|
||||

|
||||
|
||||
### 喜欢音乐列表
|
||||
|
||||
@ -2602,9 +2580,7 @@ pc: 云盘歌曲信息,如果不存在该字段,则为非云盘歌曲
|
||||
|
||||
**调用例子 :** `/fm_trash?id=347230`
|
||||
|
||||
返回数据如下图 :
|
||||
|
||||

|
||||
|
||||
### 新碟上架
|
||||
|
||||
@ -2676,9 +2652,7 @@ pc: 云盘歌曲信息,如果不存在该字段,则为非云盘歌曲
|
||||
|
||||
**调用例子 :** `/top/artists?offset=0&limit=30`
|
||||
|
||||
返回数据如下图 :
|
||||
|
||||

|
||||
|
||||
### 全部 mv
|
||||
|
||||
@ -2823,9 +2797,7 @@ MV 数据 , 数据包含 mv 名字 , 歌手 , 发布时间 , mv 视频地址等
|
||||
|
||||
**调用例子 :** `/mv/detail?mvid=5436712`
|
||||
|
||||
返回数据如下图 :
|
||||
|
||||

|
||||
|
||||
### 获取 mv 点赞转发评论数数据
|
||||
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -11,7 +11,7 @@
|
||||
<body>
|
||||
<h1>网易云音乐 API</h1>
|
||||
当你看到这个页面时,这个服务已经成功跑起来了~
|
||||
<a href="http://docs.neteasecloudmusicapi.binaryify.com">查看文档</a>
|
||||
<a href="/docs">查看文档</a>
|
||||
<h2>例子:</h2>
|
||||
<ul>
|
||||
<li>1. <a href="./search?keywords=海阔天空">搜索</a></li>
|
||||
|
Before Width: | Height: | Size: 627 KiB After Width: | Height: | Size: 627 KiB |
Before Width: | Height: | Size: 243 KiB After Width: | Height: | Size: 243 KiB |
Before Width: | Height: | Size: 659 KiB After Width: | Height: | Size: 659 KiB |
10
server.js
@ -135,7 +135,10 @@ async function consturctServer(moduleDefs) {
|
||||
const app = express()
|
||||
const { CORS_ALLOW_ORIGIN } = process.env
|
||||
app.set('trust proxy', true)
|
||||
|
||||
/**
|
||||
* Serving static files
|
||||
*/
|
||||
app.use(express.static(path.join(__dirname, 'public')))
|
||||
/**
|
||||
* CORS & Preflight request
|
||||
*/
|
||||
@ -177,11 +180,6 @@ async function consturctServer(moduleDefs) {
|
||||
|
||||
app.use(fileUpload())
|
||||
|
||||
/**
|
||||
* Serving static files
|
||||
*/
|
||||
app.use(express.static(path.join(__dirname, 'public')))
|
||||
|
||||
/**
|
||||
* Cache
|
||||
*/
|
||||
|
Before Width: | Height: | Size: 345 KiB |
Before Width: | Height: | Size: 336 KiB |
Before Width: | Height: | Size: 357 KiB |
Before Width: | Height: | Size: 364 KiB |
Before Width: | Height: | Size: 147 KiB |
BIN
static/like.png
Before Width: | Height: | Size: 142 KiB |
Before Width: | Height: | Size: 27 KiB |
BIN
static/mv.png
Before Width: | Height: | Size: 381 KiB |
Before Width: | Height: | Size: 386 KiB |
Before Width: | Height: | Size: 397 KiB |
Before Width: | Height: | Size: 192 KiB |
Before Width: | Height: | Size: 304 KiB |
Before Width: | Height: | Size: 122 KiB |
Before Width: | Height: | Size: 317 KiB |
Before Width: | Height: | Size: 359 KiB |
Before Width: | Height: | Size: 394 KiB |
Before Width: | Height: | Size: 404 KiB |
BIN
static/专辑.png
Before Width: | Height: | Size: 334 KiB |
BIN
static/推荐歌单.png
Before Width: | Height: | Size: 404 KiB |
BIN
static/推荐歌曲.png
Before Width: | Height: | Size: 380 KiB |
BIN
static/搜索.png
Before Width: | Height: | Size: 357 KiB |
BIN
static/歌单详情.png
Before Width: | Height: | Size: 398 KiB |
BIN
static/歌词.png
Before Width: | Height: | Size: 1.5 MiB |
BIN
static/用户歌单.png
Before Width: | Height: | Size: 401 KiB |
BIN
static/登录.png
Before Width: | Height: | Size: 158 KiB |
Before Width: | Height: | Size: 283 KiB |