v3.10.2 分享歌曲、歌单、mv、电台、电台节目到动态

This commit is contained in:
binaryify 2019-05-09 11:52:12 +08:00
parent bf40e9c080
commit d42c8b42c5
5 changed files with 21 additions and 3 deletions

View File

@ -1,4 +1,7 @@
# 更新日志
### 3.10.2 | 2019.05.09
- 增加`分享歌曲、歌单、mv、电台、电台节目到动态`接口
### 3.10.1 | 2019.05.08
- 增加转发动态接口

View File

@ -127,6 +127,7 @@
104. 心动模式/智能播放
105. 转发动态
106. 删除动态
107. 分享歌曲、歌单、mv、电台、电台节目到动态
## 环境要求

View File

@ -122,6 +122,7 @@
104. 心动模式/智能播放
105. 转发动态
106. 删除动态
107. 分享歌曲、歌单、mv、电台、电台节目到动态
## 安装
@ -524,6 +525,19 @@ tags:歌单tag
**调用例子 :** `/event/del?evId=6712917601`
### 分享歌曲、歌单、mv、电台、电台节目到动态
说明 : 登陆后调用此接口 ,可以分享歌曲、歌单、mv、电台、电台节目到动态
**必选参数 :** `id` : 资源 id 歌曲歌单mv电台电台节目对应 id
**可选参数 :** `type`: 资源类型,默认歌曲 song可传 `song`,`playlist`,`mv`,`djradio`,`djprogram`
`msg`: 内容140 字限制,支持 emoji@用户名`/user/follows`接口获取的用户名,用户名后和内容应该有空格),图片暂不支持
**接口地址 :** `/share/resource`
**调用例子 :** `/share/resource?id=1297494209&msg=测试` `/share/resource?type=djradio&id=336355127` `/share/resource?type=djprogram&id=2061034798` `/share/resource?type=djprogram&id=2061034798&msg=测试@binaryify 测试`
### 获取动态评论
说明 : 登陆后调用此接口 , 可以获取动态下评论

View File

@ -2,8 +2,8 @@
module.exports = (query, request) => {
const data = {
type: "song",
msg: query.msg,
type: query.type || "song", // song,playlist,mv,djprogramdjradio
msg: query.msg || "",
id: query.id || ""
};
return request(

View File

@ -1,6 +1,6 @@
{
"name": "NeteaseCloudMusicApi",
"version": "3.10.1",
"version": "3.10.2",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",