public static void remind(String[] args) {
try {
String tip = "你要发送的提示内容";
//钉钉机器人地址(配置机器人的webhook)
String dingUrl = "https://oapi.dingtalk.com/robot/send?access_token=XXXXXXXXXXXXXXXX";
//是否通知所有人
boolean isAtAll = false;
//通知具体人的手机号码列表
List<String> mobileList = Lists.newArrayList();
//钉钉机器人消息内容
//组装请求内容
String reqStr = buildReqStr(tip, isAtAll, mobileList);
//推送消息(http请求)
String result = postJson(dingUrl, reqStr);
} catch (Exception e) {
e.printStackTrace();
}
}
钉钉机器人推送
于 2024-12-09 12:00:52 首次发布
1413

被折叠的 条评论
为什么被折叠?



