新增发送文本动态接口

This commit is contained in:
lz已经是条咸鱼了 2021-11-06 12:35:58 +08:00
parent 6c3743959e
commit 9e9c77541a
3 changed files with 31 additions and 0 deletions

View File

@ -344,6 +344,8 @@ banner({ type:0 }).then(res=>{
222. 账号云豆数
223. 领取云豆
224. 获取 VIP 信息
225. 音乐人签到
226. 发送文本动态
## 更新日志

View File

@ -241,6 +241,7 @@
223. 领取云豆
224. 获取 VIP 信息
225. 音乐人签到
226. 发送文本动态
## 安装
@ -3507,6 +3508,14 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
**接口地址 :** `/playlist/privacy`
### 发送文本动态
说明: 可以调用此接口发送动态。
**必选参数 :** `msg` : 要发送的动态内容
**接口地址 :** `/send/event/text`
## 离线访问此文档
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问

20
module/send_event_text.js Normal file
View File

@ -0,0 +1,20 @@
// 发送文本动态
module.exports = (query, request) => {
const data = {
msg: query.msg,
type: 'noresource',
}
return request(
'POST',
`https://interface.music.163.com/eapi/share/friends/resource`,
data,
{
crypto: 'eapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
url: '/api/share/friends/resource',
},
)
}