提交 634a8a85 编写于 作者: B binaryify

v3.10.0 增加转发动态接口

上级 26b5cad8
# 更新日志 # 更新日志
### 3.10.0 | 2019.05.08
- 增加转发动态接口
### 3.9.0 | 2019.05.03 ### 3.9.0 | 2019.05.03
- 新增 云盘歌曲删除, 热门话题, 电台 - 推荐类型, 电台 - 非热门类型, 电台 - 今日优选, 心动模式/智能播放等接口 - 新增 云盘歌曲删除, 热门话题, 电台 - 推荐类型, 电台 - 非热门类型, 电台 - 今日优选, 心动模式/智能播放等接口
......
...@@ -125,6 +125,8 @@ ...@@ -125,6 +125,8 @@
102. 电台 - 非热门类型 102. 电台 - 非热门类型
103. 电台 - 今日优选 103. 电台 - 今日优选
104. 心动模式/智能播放 104. 心动模式/智能播放
105. 转发动态
## 环境要求 ## 环境要求
......
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
102. 电台 - 非热门类型 102. 电台 - 非热门类型
103. 电台 - 今日优选 103. 电台 - 今日优选
104. 心动模式/智能播放 104. 心动模式/智能播放
105. 转发动态
## 安装 ## 安装
...@@ -497,6 +497,23 @@ tags:歌单tag ...@@ -497,6 +497,23 @@ tags:歌单tag
**调用例子 :** `/user/event?uid=32953014` **调用例子 :** `/user/event?uid=32953014`
### 转发用户动态
说明 : 登陆后调用此接口 ,可以转发用户动态
**必选参数 :** `uid` : 用户 id
`evId` : 动态 id
`forwards` : 转发的评论
**接口地址 :** `/event/forward`
**调用例子 :** `/event/forward?evId=6712917601&uid=32953014&forwards=测试内容`
如下图
![](https://ws4.sinaimg.cn/large/006tNc79gy1g2trwz8o2gj31b20r6t9n.jpg)
![](https://ws3.sinaimg.cn/large/006tNc79gy1g2trxa0vlej319u0gyjrq.jpg)
### 获取动态评论 ### 获取动态评论
说明 : 登陆后调用此接口 , 可以获取动态下评论 说明 : 登陆后调用此接口 , 可以获取动态下评论
......
// 转发动态
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
});
};
// 转发动态
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}
)
}
\ No newline at end of file
{ {
"name": "NeteaseCloudMusicApi", "name": "NeteaseCloudMusicApi",
"version": "3.9.0", "version": "3.10.0",
"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.
先完成此消息的编辑!
想要评论请 注册