Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
嘻哈兔来辽
NeteaseCloudMusicApi
提交
ec140017
N
NeteaseCloudMusicApi
项目概览
嘻哈兔来辽
/
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,发现更多精彩内容 >>
提交
ec140017
编写于
6月 30, 2019
作者:
B
binaryify
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
v3.18.1评论接口增加 `before` 参数以获取超过5000条评论数据 #521 修复 `/msg/comments` 传入参数和文档描述不一致问题
上级
6bc08d95
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
61 addition
and
27 deletion
+61
-27
CHANGELOG.MD
CHANGELOG.MD
+6
-0
docs/README.md
docs/README.md
+24
-6
module/comment_album.js
module/comment_album.js
+2
-1
module/comment_dj.js
module/comment_dj.js
+2
-1
module/comment_event.js
module/comment_event.js
+2
-1
module/comment_hot.js
module/comment_hot.js
+2
-1
module/comment_music.js
module/comment_music.js
+14
-11
module/comment_mv.js
module/comment_mv.js
+2
-1
module/comment_playlist.js
module/comment_playlist.js
+2
-1
module/comment_video.js
module/comment_video.js
+2
-1
module/msg_comments.js
module/msg_comments.js
+2
-2
package.json
package.json
+1
-1
未找到文件。
CHANGELOG.MD
浏览文件 @
ec140017
# 更新日志
# 更新日志
### 3.18.1 | 2019.06.30
-
评论接口增加
`before`
参数以获取超过5000条评论数据
[
#521
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/521
)
-
修复
`/msg/comments`
传入参数和文档描述不一致问题
### 3.18.0 | 2019.06.29
### 3.18.0 | 2019.06.29
-
新增
`更换绑定手机接口`
-
新增
`更换绑定手机接口`
...
...
docs/README.md
浏览文件 @
ec140017
...
@@ -1012,7 +1012,9 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
...
@@ -1012,7 +1012,9 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
**可选参数 :**
`limit`
: 取出评论数量 , 默认为 20
**可选参数 :**
`limit`
: 取出评论数量 , 默认为 20
`offset`
: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)
\*
20, 其中 20 为 limit 的值
`offset`
: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)
\*
20, 其中 20 为 limit 的值
`before`
: 分页参数,取上一页最后一项的
`time`
获取下一页数据(获取超过5000条评论的时候需要用到)
**接口地址 :**
`/comment/music`
**接口地址 :**
`/comment/music`
...
@@ -1030,7 +1032,9 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
...
@@ -1030,7 +1032,9 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
**可选参数 :**
`limit`
: 取出评论数量 , 默认为 20
**可选参数 :**
`limit`
: 取出评论数量 , 默认为 20
`offset`
: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)
\*
20, 其中 20 为 limit 的值
`offset`
: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)
\*
20, 其中 20 为 limit 的值
`before`
: 分页参数,取上一页最后一项的
`time`
获取下一页数据(获取超过5000条评论的时候需要用到)
**接口地址 :**
`/comment/album`
**接口地址 :**
`/comment/album`
...
@@ -1045,7 +1049,9 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
...
@@ -1045,7 +1049,9 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
**可选参数 :**
`limit`
: 取出评论数量 , 默认为 20
**可选参数 :**
`limit`
: 取出评论数量 , 默认为 20
`offset`
: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)
\*
20, 其中 20 为 limit 的值
`offset`
: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)
\*
20, 其中 20 为 limit 的值
`before`
: 分页参数,取上一页最后一项的
`time`
获取下一页数据(获取超过5000条评论的时候需要用到)
**接口地址 :**
`/comment/playlist`
**接口地址 :**
`/comment/playlist`
...
@@ -1060,7 +1066,9 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
...
@@ -1060,7 +1066,9 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
**可选参数 :**
`limit`
: 取出评论数量 , 默认为 20
**可选参数 :**
`limit`
: 取出评论数量 , 默认为 20
`offset`
: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)
\*
20, 其中 20 为 limit 的值
`offset`
: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)
\*
20, 其中 20 为 limit 的值
`before`
: 分页参数,取上一页最后一项的
`time`
获取下一页数据(获取超过5000条评论的时候需要用到)
**接口地址 :**
`/comment/mv`
**接口地址 :**
`/comment/mv`
...
@@ -1075,7 +1083,9 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
...
@@ -1075,7 +1083,9 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
**可选参数 :**
`limit`
: 取出评论数量 , 默认为 20
**可选参数 :**
`limit`
: 取出评论数量 , 默认为 20
`offset`
: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)
\*
20, 其中 20 为 limit 的值
`offset`
: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)
\*
20, 其中 20 为 limit 的值
`before`
: 分页参数,取上一页最后一项的
`time`
获取下一页数据(获取超过5000条评论的时候需要用到)
**接口地址 :**
`/comment/dj`
**接口地址 :**
`/comment/dj`
...
@@ -1090,7 +1100,9 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
...
@@ -1090,7 +1100,9 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
**可选参数 :**
`limit`
: 取出评论数量 , 默认为 20
**可选参数 :**
`limit`
: 取出评论数量 , 默认为 20
`offset`
: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)
\*
20, 其中 20 为 limit 的值
`offset`
: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)
\*
20, 其中 20 为 limit 的值
`before`
: 分页参数,取上一页最后一项的
`time`
获取下一页数据(获取超过5000条评论的时候需要用到)
**接口地址 :**
`/comment/video`
**接口地址 :**
`/comment/video`
...
@@ -1120,6 +1132,12 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
...
@@ -1120,6 +1132,12 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
5: 视频
5: 视频
```
```
**可选参数 :**
`limit`
: 取出评论数量 , 默认为 20
`offset`
: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)
\*
20, 其中 20 为 limit 的值
`before`
: 分页参数,取上一页最后一项的
`time`
获取下一页数据(获取超过5000条评论的时候需要用到)
**接口地址 :**
`/comment/hot`
**接口地址 :**
`/comment/hot`
**调用例子 :**
`/comment/hot?id=186016&type=0`
**调用例子 :**
`/comment/hot?id=186016&type=0`
...
...
module/comment_album.js
浏览文件 @
ec140017
...
@@ -5,7 +5,8 @@ module.exports = (query, request) => {
...
@@ -5,7 +5,8 @@ module.exports = (query, request) => {
const
data
=
{
const
data
=
{
rid
:
query
.
id
,
rid
:
query
.
id
,
limit
:
query
.
limit
||
20
,
limit
:
query
.
limit
||
20
,
offset
:
query
.
offset
||
0
offset
:
query
.
offset
||
0
,
beforeTime
:
query
.
before
||
0
}
}
return
request
(
return
request
(
'
POST
'
,
`https://music.163.com/weapi/v1/resource/comments/R_AL_3_
${
query
.
id
}
`
,
data
,
'
POST
'
,
`https://music.163.com/weapi/v1/resource/comments/R_AL_3_
${
query
.
id
}
`
,
data
,
...
...
module/comment_dj.js
浏览文件 @
ec140017
...
@@ -5,7 +5,8 @@ module.exports = (query, request) => {
...
@@ -5,7 +5,8 @@ module.exports = (query, request) => {
const
data
=
{
const
data
=
{
rid
:
query
.
id
,
rid
:
query
.
id
,
limit
:
query
.
limit
||
20
,
limit
:
query
.
limit
||
20
,
offset
:
query
.
offset
||
0
offset
:
query
.
offset
||
0
,
beforeTime
:
query
.
before
||
0
}
}
return
request
(
return
request
(
'
POST
'
,
`https://music.163.com/weapi/v1/resource/comments/A_DJ_1_
${
query
.
id
}
`
,
data
,
'
POST
'
,
`https://music.163.com/weapi/v1/resource/comments/A_DJ_1_
${
query
.
id
}
`
,
data
,
...
...
module/comment_event.js
浏览文件 @
ec140017
module
.
exports
=
(
query
,
request
)
=>
{
module
.
exports
=
(
query
,
request
)
=>
{
const
data
=
{
const
data
=
{
limit
:
query
.
limit
||
20
,
limit
:
query
.
limit
||
20
,
offset
:
query
.
offset
||
0
offset
:
query
.
offset
||
0
,
beforeTime
:
query
.
before
||
0
};
};
return
request
(
return
request
(
"
POST
"
,
"
POST
"
,
...
...
module/comment_hot.js
浏览文件 @
ec140017
...
@@ -13,7 +13,8 @@ module.exports = (query, request) => {
...
@@ -13,7 +13,8 @@ module.exports = (query, request) => {
const
data
=
{
const
data
=
{
rid
:
query
.
id
,
rid
:
query
.
id
,
limit
:
query
.
limit
||
20
,
limit
:
query
.
limit
||
20
,
offset
:
query
.
offset
||
0
offset
:
query
.
offset
||
0
,
beforeTime
:
query
.
before
||
0
}
}
return
request
(
return
request
(
'
POST
'
,
`https://music.163.com/weapi/v1/resource/hotcomments/
${
query
.
type
}${
query
.
id
}
`
,
data
,
'
POST
'
,
`https://music.163.com/weapi/v1/resource/hotcomments/
${
query
.
type
}${
query
.
id
}
`
,
data
,
...
...
module/comment_music.js
浏览文件 @
ec140017
// 歌曲评论
// 歌曲评论
module
.
exports
=
(
query
,
request
)
=>
{
module
.
exports
=
(
query
,
request
)
=>
{
query
.
cookie
.
os
=
'
pc
'
query
.
cookie
.
os
=
"
pc
"
;
const
data
=
{
const
data
=
{
rid
:
query
.
id
,
rid
:
query
.
id
,
limit
:
query
.
limit
||
20
,
limit
:
query
.
limit
||
20
,
offset
:
query
.
offset
||
0
offset
:
query
.
offset
||
0
,
}
beforeTime
:
query
.
before
||
0
return
request
(
};
'
POST
'
,
`https://music.163.com/api/v1/resource/comments/R_SO_4_
${
query
.
id
}
`
,
data
,
return
request
(
{
crypto
:
'
weapi
'
,
cookie
:
query
.
cookie
,
proxy
:
query
.
proxy
}
"
POST
"
,
)
`https://music.163.com/api/v1/resource/comments/R_SO_4_
${
query
.
id
}
`
,
}
data
,
\ No newline at end of file
{
crypto
:
"
weapi
"
,
cookie
:
query
.
cookie
,
proxy
:
query
.
proxy
}
);
};
module/comment_mv.js
浏览文件 @
ec140017
...
@@ -5,7 +5,8 @@ module.exports = (query, request) => {
...
@@ -5,7 +5,8 @@ module.exports = (query, request) => {
const
data
=
{
const
data
=
{
rid
:
query
.
id
,
rid
:
query
.
id
,
limit
:
query
.
limit
||
20
,
limit
:
query
.
limit
||
20
,
offset
:
query
.
offset
||
0
offset
:
query
.
offset
||
0
,
beforeTime
:
query
.
before
||
0
}
}
return
request
(
return
request
(
'
POST
'
,
`https://music.163.com/weapi/v1/resource/comments/R_MV_5_
${
query
.
id
}
`
,
data
,
'
POST
'
,
`https://music.163.com/weapi/v1/resource/comments/R_MV_5_
${
query
.
id
}
`
,
data
,
...
...
module/comment_playlist.js
浏览文件 @
ec140017
...
@@ -5,7 +5,8 @@ module.exports = (query, request) => {
...
@@ -5,7 +5,8 @@ module.exports = (query, request) => {
const
data
=
{
const
data
=
{
rid
:
query
.
id
,
rid
:
query
.
id
,
limit
:
query
.
limit
||
20
,
limit
:
query
.
limit
||
20
,
offset
:
query
.
offset
||
0
offset
:
query
.
offset
||
0
,
beforeTime
:
query
.
before
||
0
}
}
return
request
(
return
request
(
'
POST
'
,
`https://music.163.com/weapi/v1/resource/comments/A_PL_0_
${
query
.
id
}
`
,
data
,
'
POST
'
,
`https://music.163.com/weapi/v1/resource/comments/A_PL_0_
${
query
.
id
}
`
,
data
,
...
...
module/comment_video.js
浏览文件 @
ec140017
...
@@ -5,7 +5,8 @@ module.exports = (query, request) => {
...
@@ -5,7 +5,8 @@ module.exports = (query, request) => {
const
data
=
{
const
data
=
{
rid
:
query
.
id
,
rid
:
query
.
id
,
limit
:
query
.
limit
||
20
,
limit
:
query
.
limit
||
20
,
offset
:
query
.
offset
||
0
offset
:
query
.
offset
||
0
,
beforeTime
:
query
.
before
||
0
}
}
return
request
(
return
request
(
'
POST
'
,
`https://music.163.com/weapi/v1/resource/comments/R_VI_62_
${
query
.
id
}
`
,
data
,
'
POST
'
,
`https://music.163.com/weapi/v1/resource/comments/R_VI_62_
${
query
.
id
}
`
,
data
,
...
...
module/msg_comments.js
浏览文件 @
ec140017
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
module
.
exports
=
(
query
,
request
)
=>
{
module
.
exports
=
(
query
,
request
)
=>
{
const
data
=
{
const
data
=
{
beforeTime
:
query
.
before
Time
||
"
-1
"
,
beforeTime
:
query
.
before
||
"
-1
"
,
limit
:
query
.
limit
||
30
,
limit
:
query
.
limit
||
30
,
total
:
"
true
"
,
total
:
"
true
"
,
uid
:
query
.
uid
uid
:
query
.
uid
};
};
// 448109360
return
request
(
return
request
(
"
POST
"
,
"
POST
"
,
`https://music.163.com/api/v1/user/comments/
${
query
.
uid
}
`
,
`https://music.163.com/api/v1/user/comments/
${
query
.
uid
}
`
,
...
...
package.json
浏览文件 @
ec140017
{
{
"name"
:
"NeteaseCloudMusicApi"
,
"name"
:
"NeteaseCloudMusicApi"
,
"version"
:
"3.18.
0
"
,
"version"
:
"3.18.
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录