提交 bf8f98d7 编写于 作者: B binaryify

新增用户历史评论接口 #1197

上级 8d5797b1
# 更新日志
### 4.0.10 | 2021.4.09
- 新增用户历史评论接口 [#1197](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1197)
### 4.0.9 | 2021.3.13
- 新增一起听状态接口 [#1170](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1170)
......
......@@ -220,6 +220,7 @@
202. 歌单详情动态
203. 绑定手机
204. 一起听状态
205. 用户历史评论
## 安装
......@@ -819,6 +820,21 @@ tags: 歌单标签
**调用例子 :** `/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, 可以获取用户电台
......
......@@ -1409,3 +1409,11 @@ export function user_bindingcellphone(
export function listen_together_status(
params: RequestBaseConfig,
): Promise<Response>
export function user_comment_history(
params: {
limit?: number | string
uid: number | string
time?: number | string
} & RequestBaseConfig,
): Promise<Response>
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,
},
)
}
{
"name": "NeteaseCloudMusicApi",
"version": "4.0.9",
"version": "4.0.10",
"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.
先完成此消息的编辑!
想要评论请 注册