mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-07 09:12:07 +08:00
v3.10.0 增加转发动态接口
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
# 更新日志
|
||||
### 3.10.0 | 2019.05.08
|
||||
- 增加转发动态接口
|
||||
|
||||
### 3.9.0 | 2019.05.03
|
||||
- 新增 云盘歌曲删除, 热门话题, 电台 - 推荐类型, 电台 - 非热门类型, 电台 - 今日优选, 心动模式/智能播放等接口
|
||||
|
||||
|
@ -125,6 +125,8 @@
|
||||
102. 电台 - 非热门类型
|
||||
103. 电台 - 今日优选
|
||||
104. 心动模式/智能播放
|
||||
105. 转发动态
|
||||
|
||||
|
||||
## 环境要求
|
||||
|
||||
|
@ -120,7 +120,7 @@
|
||||
102. 电台 - 非热门类型
|
||||
103. 电台 - 今日优选
|
||||
104. 心动模式/智能播放
|
||||
|
||||
105. 转发动态
|
||||
|
||||
## 安装
|
||||
|
||||
@ -497,6 +497,23 @@ tags:歌单tag
|
||||
|
||||
**调用例子 :** `/user/event?uid=32953014`
|
||||
|
||||
### 转发用户动态
|
||||
说明 : 登陆后调用此接口 ,可以转发用户动态
|
||||
|
||||
**必选参数 :** `uid` : 用户 id
|
||||
|
||||
`evId` : 动态 id
|
||||
|
||||
`forwards` : 转发的评论
|
||||
|
||||
**接口地址 :** `/event/forward`
|
||||
|
||||
**调用例子 :** `/event/forward?evId=6712917601&uid=32953014&forwards=测试内容`
|
||||
|
||||
如下图
|
||||

|
||||

|
||||
|
||||
### 获取动态评论
|
||||
|
||||
说明 : 登陆后调用此接口 , 可以获取动态下评论
|
||||
|
15
module/event_forward.js
Normal file
15
module/event_forward.js
Normal file
@ -0,0 +1,15 @@
|
||||
// 转发动态
|
||||
|
||||
module.exports = (query, request) => {
|
||||
query.cookie.os = "pc";
|
||||
const data = {
|
||||
forwards: query.forwards,
|
||||
id: query.evId,
|
||||
eventUserId: query.uid
|
||||
};
|
||||
return request("POST", `https://music.163.com/weapi/event/forward`, data, {
|
||||
crypto: "weapi",
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy
|
||||
});
|
||||
};
|
@ -1,17 +0,0 @@
|
||||
// 转发动态
|
||||
|
||||
const crypto = require('crypto')
|
||||
|
||||
module.exports = (query, request) => {
|
||||
query.cookie.os = 'osx'
|
||||
const data = {
|
||||
forwards: query.forwards,
|
||||
id: query.id,
|
||||
eventUserId: query.eventUserId,
|
||||
checkToken:query.checkToken
|
||||
}
|
||||
return request(
|
||||
'POST', `https://music.163.com/weapi/event/forward`, data,
|
||||
{crypto: 'weapi', ua: 'pc', cookie: query.cookie, proxy: query.proxy}
|
||||
)
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "NeteaseCloudMusicApi",
|
||||
"version": "3.9.0",
|
||||
"version": "3.10.0",
|
||||
"description": "网易云音乐 NodeJS 版 API",
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
|
Reference in New Issue
Block a user