diff --git a/README.MD b/README.MD index d02beac..9ca4ba1 100644 --- a/README.MD +++ b/README.MD @@ -344,6 +344,8 @@ banner({ type:0 }).then(res=>{ 222. 账号云豆数 223. 领取云豆 224. 获取 VIP 信息 +225. 音乐人签到 +226. 发送文本动态 ## 更新日志 diff --git a/docs/README.md b/docs/README.md index 240c4e4..5cdf5f3 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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, 可离线访问 diff --git a/module/send_event_text.js b/module/send_event_text.js new file mode 100644 index 0000000..0fe552f --- /dev/null +++ b/module/send_event_text.js @@ -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', + }, + ) +}