Package cn.toint.oktool.util
Class FeiShuUtil
java.lang.Object
cn.toint.oktool.util.FeiShuUtil
飞书工具
- Author:
- Toint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateWebhookSign(String secret, Long timestamp) 生成 webhook 签名static voidsendWebhookTextMsg(String url, String secret, String text) 发送文本消息 - webhookstatic voidsendWebhookTextMsgAsync(String url, String secret, String text) 发送文本消息 - webhook
-
Constructor Details
-
FeiShuUtil
public FeiShuUtil()
-
-
Method Details
-
createWebhookSign
生成 webhook 签名- Parameters:
secret- 密钥timestamp- 当前时间(秒)- Returns:
- 签名
-
sendWebhookTextMsgAsync
发送文本消息 - webhook- Parameters:
url- urlsecret- secrettext- text- Throws:
RuntimeException- 发送失败
-
sendWebhookTextMsg
发送文本消息 - webhook- Parameters:
url- urlsecret- secrettext- text- Throws:
RuntimeException- 发送失败
-