mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-05 20:08:55 +08:00
新增用户历史评论接口 #1197
This commit is contained in:
parent
8d5797b11c
commit
bf8f98d726
@ -1,4 +1,7 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
### 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)
|
||||||
|
|
||||||
|
@ -220,6 +220,7 @@
|
|||||||
202. 歌单详情动态
|
202. 歌单详情动态
|
||||||
203. 绑定手机
|
203. 绑定手机
|
||||||
204. 一起听状态
|
204. 一起听状态
|
||||||
|
205. 用户历史评论
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
@ -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, 可以获取用户电台
|
||||||
|
8
interface.d.ts
vendored
8
interface.d.ts
vendored
@ -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>
|
||||||
|
22
module/user_comment_history.js
Normal file
22
module/user_comment_history.js
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
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,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user