public class MsgPushUtil extends Object
| 构造器和说明 |
|---|
MsgPushUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
barkPush(String deviceId,
String content,
String sound)
ios bark推送
|
static String |
dingTalkBotPush(String token,
String secret,
String content,
boolean isAtAll,
List<String> atMobileList)
钉钉机器人推送
|
static String |
qMsgPush(String key,
String msg,
String qq,
boolean isGroup)
QMsg酱推送
|
static String |
serverChanPush(String scKey,
String title,
String content)
Server酱推送
|
public static String serverChanPush(String scKey, String title, String content) throws IOException
scKey - title - content - IOExceptionpublic static String dingTalkBotPush(String token, String secret, String content, boolean isAtAll, List<String> atMobileList) throws IOException, InvalidKeyException, NoSuchAlgorithmException
token - secret - content - isAtAll - 是否@全体atMobileList - @的手机号列表IOExceptionInvalidKeyExceptionNoSuchAlgorithmExceptionpublic static String barkPush(String deviceId, String content, String sound) throws IOException
deviceId - content - IOExceptionpublic static String qMsgPush(String key, String msg, String qq, boolean isGroup) throws IOException
key - msg - 消息 (表情:@face=表情ID@,群@用法:@个人@at=群员QQ号@、@全体@at=-1@)qq - qq号或群号,逗号隔开isGroup - 是否是群组IOExceptionCopyright © 2021. All rights reserved.