Skip to content

Commit

Permalink
feat: 移除 酷推、BER分邮件系统 的集成
Browse files Browse the repository at this point in the history
BREAKING CHANGE: 由于 酷推、BER分邮件系统 已无法登陆,故不再提供接口集成
  • Loading branch information
CaoMeiYouRen committed Jan 5, 2023
1 parent ee71da0 commit 6e59259
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 182 deletions.
19 changes: 2 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</a>
</p>

> Push All In One!支持 Server 酱、~~酷推、邮件~~钉钉机器人、企业微信机器人、企业微信应用、pushplus、iGot 、Qmsg、息知、PushDeer 等多种推送方式。
> Push All In One!支持 Server 酱、钉钉机器人、企业微信机器人、企业微信应用、pushplus、iGot 、Qmsg、息知、PushDeer 等多种推送方式。
>
> 温馨提示:出于安全考虑, **所有** 推送方式请在 **服务端** 使用!请勿在 **客户端(网页端)** 使用!网页端使用还将额外产生跨域问题。
Expand Down Expand Up @@ -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'
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "push-all-in-one",
"version": "2.3.1",
"description": "Push All In One!支持 Server酱、酷推、邮件、钉钉机器人、企业微信机器人、企业微信应用、pushplus、iGot 、Qmsg、息知、PushDeer 等多种推送方式",
"description": "Push All In One!支持 Server酱、钉钉机器人、企业微信机器人、企业微信应用、pushplus、iGot 、Qmsg、息知、PushDeer 等多种推送方式",
"author": "CaoMeiYouRen",
"license": "MIT",
"main": "dist/index.js",
Expand All @@ -18,8 +18,6 @@
"server-chan",
"serverchan",
"server-chan-turbo",
"CoolPush",
"email",
"dingtalk",
"weixin",
"wechat",
Expand Down
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
export * from './push/cool-push'
export * from './push/dingtalk'
export * from './push/email'
export * from './push/i-got'
export * from './push/push-deer'
export * from './push/push-plus'
Expand All @@ -9,4 +7,3 @@ export * from './push/server-chan-turbo'
export * from './push/wechat-app'
export * from './push/wechat-robot'
export * from './push/xi-zhi'

70 changes: 0 additions & 70 deletions src/push/cool-push.ts

This file was deleted.

89 changes: 0 additions & 89 deletions src/push/email.ts

This file was deleted.

0 comments on commit 6e59259

Please sign in to comment.