Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
amywang_xiannv
NeteaseCloudMusicApi
提交
bf8f98d7
N
NeteaseCloudMusicApi
项目概览
amywang_xiannv
/
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,发现更多精彩内容 >>
提交
bf8f98d7
编写于
4月 09, 2021
作者:
B
binaryify
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增用户历史评论接口 #1197
上级
8d5797b1
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
50 addition
and
1 deletion
+50
-1
CHANGELOG.MD
CHANGELOG.MD
+3
-0
docs/README.md
docs/README.md
+16
-0
interface.d.ts
interface.d.ts
+8
-0
module/user_comment_history.js
module/user_comment_history.js
+22
-0
package.json
package.json
+1
-1
未找到文件。
CHANGELOG.MD
浏览文件 @
bf8f98d7
# 更新日志
# 更新日志
### 4.0.10 | 2021.4.09
-
新增用户历史评论接口
[
#1197
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1197
)
### 4.0.9 | 2021.3.13
### 4.0.9 | 2021.3.13
-
新增一起听状态接口
[
#1170
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1170
)
-
新增一起听状态接口
[
#1170
](
https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1170
)
...
...
docs/README.md
浏览文件 @
bf8f98d7
...
@@ -220,6 +220,7 @@
...
@@ -220,6 +220,7 @@
202.
歌单详情动态
202.
歌单详情动态
203.
绑定手机
203.
绑定手机
204.
一起听状态
204.
一起听状态
205.
用户历史评论
## 安装
## 安装
...
@@ -819,6 +820,21 @@ tags: 歌单标签
...
@@ -819,6 +820,21 @@ tags: 歌单标签
**调用例子 :**
`/song/order/update?pid=2039116066&ids=[5268328,1219871]`
**调用例子 :**
`/song/order/update?pid=2039116066&ids=[5268328,1219871]`
### 获取用户历史评论
说明 : 登录后调用此接口 , 传入用户 id, 可以获取用户历史评论
**必选参数 :**
`uid`
: 用户 id
**可选参数 :**
`limit`
: 返回数量 , 默认为 10
`time`
: 上一条数据的time,第一页不需要传,默认为0
**接口地址 :**
`/user/comment/history`
**调用例子 :**
`/user/comment/history?uid=32953014`
`/user/comment/history?uid=32953014&limit=1&time=1616217577564`
(需要换成自己的用户id)
### 获取用户电台
### 获取用户电台
说明 : 登录后调用此接口 , 传入用户 id, 可以获取用户电台
说明 : 登录后调用此接口 , 传入用户 id, 可以获取用户电台
...
...
interface.d.ts
浏览文件 @
bf8f98d7
...
@@ -1409,3 +1409,11 @@ export function user_bindingcellphone(
...
@@ -1409,3 +1409,11 @@ export function user_bindingcellphone(
export
function
listen_together_status
(
export
function
listen_together_status
(
params
:
RequestBaseConfig
,
params
:
RequestBaseConfig
,
):
Promise
<
Response
>
):
Promise
<
Response
>
export
function
user_comment_history
(
params
:
{
limit
?:
number
|
string
uid
:
number
|
string
time
?:
number
|
string
}
&
RequestBaseConfig
,
):
Promise
<
Response
>
module/user_comment_history.js
0 → 100644
浏览文件 @
bf8f98d7
module
.
exports
=
(
query
,
request
)
=>
{
query
.
cookie
.
os
=
'
ios
'
query
.
cookie
.
appver
=
'
8.1.20
'
const
data
=
{
compose_reminder
:
'
true
'
,
compose_hot_comment
:
'
true
'
,
limit
:
query
.
limit
||
10
,
user_id
:
query
.
uid
,
time
:
query
.
time
||
0
,
}
return
request
(
'
POST
'
,
`https://music.163.com/api/comment/user/comment/history`
,
data
,
{
crypto
:
'
weapi
'
,
cookie
:
query
.
cookie
,
proxy
:
query
.
proxy
,
realIP
:
query
.
realIP
,
},
)
}
package.json
浏览文件 @
bf8f98d7
{
{
"name"
:
"NeteaseCloudMusicApi"
,
"name"
:
"NeteaseCloudMusicApi"
,
"version"
:
"4.0.
9
"
,
"version"
:
"4.0.
10
"
,
"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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录