Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_47285076
NeteaseCloudMusicApi_nicole-n
提交
f420959d
N
NeteaseCloudMusicApi_nicole-n
项目概览
weixin_47285076
/
NeteaseCloudMusicApi_nicole-n
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
NeteaseCloudMusicApi_nicole-n
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
f420959d
编写于
6月 03, 2020
作者:
B
binaryify
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
v3.32.0
上级
56168e17
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
39 addition
and
8 deletion
+39
-8
CHANGELOG.MD
CHANGELOG.MD
+5
-0
app.js
app.js
+1
-1
docs/README.md
docs/README.md
+13
-1
module/playlist_order_update.js
module/playlist_order_update.js
+12
-0
module/top_list.js
module/top_list.js
+6
-4
module/toplist.js
module/toplist.js
+1
-1
package.json
package.json
+1
-1
未找到文件。
CHANGELOG.MD
浏览文件 @
f420959d
# 更新日志
### 3.32.0 | 2020.06.03
-
更新排行榜接口,支持传入榜单id
-
新增榜单顺序调整接口
[
#806
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/806
)
-
完善错误提示信息
### 3.31.1 | 2020.05.19
-
修复
`cookie`
没返回的问题
[
#778
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/778
)
...
...
app.js
浏览文件 @
f420959d
...
...
@@ -74,7 +74,7 @@ fs.readdirSync(path.join(__dirname, 'module')).reverse().forEach(file => {
res
.
status
(
answer
.
status
).
send
(
answer
.
body
)
})
.
catch
(
answer
=>
{
console
.
log
(
'
[ERR]
'
,
decodeURIComponent
(
req
.
originalUrl
))
console
.
log
(
'
[ERR]
'
,
decodeURIComponent
(
req
.
originalUrl
)
,
{
status
:
answer
.
status
,
body
:
answer
.
body
}
)
if
(
answer
.
body
.
code
==
'
301
'
)
answer
.
body
.
msg
=
'
需要登录
'
res
.
append
(
'
Set-Cookie
'
,
answer
.
cookie
)
res
.
status
(
answer
.
status
).
send
(
answer
.
body
)
...
...
docs/README.md
浏览文件 @
f420959d
...
...
@@ -574,6 +574,17 @@ tags: 歌单标签
**调用例子 :**
`/playlist/tags/update?id=24381616&tags=学习`
### 调整歌单顺序
说明 : 登陆后调用此接口,可以根据歌单id顺序调整歌单顺序
参数:
**必选参数 :**
`ids`
: 歌单id列表
**接口地址 :**
`/playlist/order/update`
**调用例子 :**
`/playlist/order/update?ids=[111,222]`
### 获取用户电台
说明 : 登陆后调用此接口 , 传入用户 id, 可以获取用户电台
...
...
@@ -2047,10 +2058,11 @@ MV 点赞转发评论数数据
"33": 说唱TOP榜
```
**可选参数 :**
`id`
: 榜单id,传入后idx将失效
**接口地址 :**
`/top/list`
**调用例子 :**
`/top/list?idx=6`
**调用例子 :**
`/top/list?idx=6`
,
`/top/list?id=2809577409`
返回数据如下图 :
...
...
module/playlist_order_update.js
0 → 100644
浏览文件 @
f420959d
// 编辑歌单顺序
module
.
exports
=
(
query
,
request
)
=>
{
query
.
cookie
.
os
=
'
pc
'
const
data
=
{
ids
:
query
.
ids
}
return
request
(
'
POST
'
,
`https://music.163.com/api/playlist/order/update`
,
data
,
{
crypto
:
'
weapi
'
,
cookie
:
query
.
cookie
,
proxy
:
query
.
proxy
}
)
}
\ No newline at end of file
module/top_list.js
浏览文件 @
f420959d
...
...
@@ -43,11 +43,13 @@ const topList = {
module
.
exports
=
(
query
,
request
)
=>
{
const
data
=
{
id
:
topList
[
query
.
idx
],
n
:
10000
id
:
query
.
id
||
topList
[
query
.
idx
],
n
:
1000
,
s
:
'
5
'
,
shareUserId
:
'
0
'
,
}
return
request
(
'
POST
'
,
`https://
music.163.com/weapi/v3/playlist
/detail`
,
data
,
{
crypto
:
'
linux
api
'
,
cookie
:
query
.
cookie
,
proxy
:
query
.
proxy
}
'
POST
'
,
`https://
interface3.music.163.com/api/playlist/v4
/detail`
,
data
,
{
crypto
:
'
we
api
'
,
cookie
:
query
.
cookie
,
proxy
:
query
.
proxy
}
)
}
\ No newline at end of file
module/toplist.js
浏览文件 @
f420959d
...
...
@@ -2,7 +2,7 @@
module
.
exports
=
(
query
,
request
)
=>
{
return
request
(
'
POST
'
,
`https://music.163.com/
we
api/toplist`
,
{},
'
POST
'
,
`https://music.163.com/api/toplist`
,
{},
{
crypto
:
'
linuxapi
'
,
cookie
:
query
.
cookie
,
proxy
:
query
.
proxy
}
)
}
\ No newline at end of file
package.json
浏览文件 @
f420959d
{
"name"
:
"NeteaseCloudMusicApi"
,
"version"
:
"3.3
1.1
"
,
"version"
:
"3.3
2.0
"
,
"description"
:
"网易云音乐 NodeJS 版 API"
,
"scripts"
:
{
"start"
:
"node app.js"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录