提交 9e9c7754 编写于 作者: L lz已经是条咸鱼了

新增发送文本动态接口

上级 6c374395
......@@ -344,6 +344,8 @@ banner({ type:0 }).then(res=>{
222. 账号云豆数
223. 领取云豆
224. 获取 VIP 信息
225. 音乐人签到
226. 发送文本动态
## 更新日志
......
......@@ -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, 可离线访问
......
// 发送文本动态
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',
},
)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册