Class FeiShuUtil

java.lang.Object
cn.toint.oktool.util.FeiShuUtil

public class FeiShuUtil extends Object
飞书工具
Since:
2025/2/19
Author:
Toint
  • Constructor Details

    • FeiShuUtil

      public FeiShuUtil()
  • Method Details

    • createWebhookSign

      public static String createWebhookSign(String secret, Long timestamp)
      生成 webhook 签名
      Parameters:
      secret - 密钥
      timestamp - 当前时间(秒)
      Returns:
      签名
    • sendWebhookTextMsgAsync

      public static void sendWebhookTextMsgAsync(String url, String secret, String text)
      发送文本消息 - webhook
      Parameters:
      url - url
      secret - secret
      text - text
      Throws:
      RuntimeException - 发送失败
    • sendWebhookTextMsg

      public static void sendWebhookTextMsg(String url, String secret, String text)
      发送文本消息 - webhook
      Parameters:
      url - url
      secret - secret
      text - text
      Throws:
      RuntimeException - 发送失败