-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: 由于 酷推、BER分邮件系统 已无法登陆,故不再提供接口集成
- Loading branch information
1 parent
ee71da0
commit 6e59259
Showing
5 changed files
with
3 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
</a> | ||
</p> | ||
|
||
> Push All In One!支持 Server 酱、~~酷推、邮件~~、钉钉机器人、企业微信机器人、企业微信应用、pushplus、iGot 、Qmsg、息知、PushDeer 等多种推送方式。 | ||
> Push All In One!支持 Server 酱、钉钉机器人、企业微信机器人、企业微信应用、pushplus、iGot 、Qmsg、息知、PushDeer 等多种推送方式。 | ||
> | ||
> 温馨提示:出于安全考虑, **所有** 推送方式请在 **服务端** 使用!请勿在 **客户端(网页端)** 使用!网页端使用还将额外产生跨域问题。 | ||
|
@@ -47,28 +47,13 @@ npm i push-all-in-one -S | |
## 使用 | ||
|
||
```ts | ||
import { ServerChanTurbo, CoolPush, Dingtalk, Email, WechatRobot, WechatApp, PushPlus, IGot, Qmsg, XiZhi, PushDeer } from 'push-all-in-one' | ||
import { ServerChanTurbo, Dingtalk, WechatRobot, WechatApp, PushPlus, IGot, Qmsg, XiZhi, PushDeer } from 'push-all-in-one' | ||
|
||
// Server酱。官方文档:https://sct.ftqq.com/ | ||
const SCTKEY = 'SCTxxxxxxxxxxxxxxxxxxx' | ||
const serverChanTurbo = new ServerChanTurbo(SCTKEY) | ||
serverChanTurbo.send('你好', '你好,我很可爱') | ||
|
||
// 【已无法登陆,3.0 版本将会移除】酷推。官方文档:https://cp.xuthus.cc/ | ||
const SKEY = '022bxxxxxxxxxxxxxxxxxx' | ||
const coolPush = new CoolPush(SKEY) | ||
coolPush.send('你好,我很可爱', 'send') | ||
|
||
// 【已无法登陆,3.0 版本将会移除】BER分邮件系统。官方文档:https://www.kancloud.cn/yuanzhu/berfenapi/1239397 | ||
// 如果不提供 BER_KEY 将会使用免费版本进行推送。免费接口有较多限制,请自行斟酌 | ||
const email = new Email('xxxxxxx') | ||
email.send({ | ||
title: '你好', | ||
subtitle: '这是个小标题', | ||
desp: '你好,我很可爱', | ||
address: '[email protected]', | ||
}) | ||
|
||
// 【推荐】钉钉机器人。官方文档:https://developers.dingtalk.com/document/app/custom-robot-access | ||
const ACCESS_TOKEN = 'xxxxxxxxxxxxxxxxxx' | ||
const SECRET = 'SECxxxxxxxxxxxxxxxx' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.