From 9e9c77541a50193293d97acd4ab3f266aa8ff34f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lz=E5=B7=B2=E7=BB=8F=E6=98=AF=E6=9D=A1=E5=92=B8=E9=B1=BC?= =?UTF-8?q?=E4=BA=86?= Date: Sat, 6 Nov 2021 12:35:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8F=91=E9=80=81=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E5=8A=A8=E6=80=81=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.MD | 2 ++ docs/README.md | 9 +++++++++ module/send_event_text.js | 20 ++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 module/send_event_text.js 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', + }, + ) +} -- GitLab