为 Google Chat 配置自定义通知

要在 Google Chat 中设置来自 Crowdin 企业版的自定义通知,请按照以下步骤操作。

创建 Google 账户

如果您已经拥有 Google 账户,您就可以访问许多 Google 产品,包括 Google Chat。 如果您没有 Google 账户,则需要创建一个

下载并安装 Google Chat 桌面应用。 或者,您可以使用 Google Chat 网页界面进行进一步配置。

创建 Google Chat Webhook

要在 Google Chat 中接收通知,您需要创建一个 Webhook。

详细了解创建 Google Chat Webhook

完成后,复制 Webhook URL。 您需要它来进行 Crowdin 企业版端的配置。

在 Crowdin 企业版中配置自定义通知

  1. Open your Account Settings > Notifications.
  2. Click Custom notifications.
  3. 在出现的对话框中,将 Google Chat Webhook URL 粘贴到 URL 字段中。
  4. Select application/json for the Content type.
  5. 将以下有效负载粘贴到有效负载字段中:

     {
         "text": "{{notification-message}}"
     }
    
  6. 点击测试通知即可接收来自 Crowdin 企业版发送到您的 Google Chat 频道的测试消息。
  7. 配置完成后,点击保存

另请参阅

本文是否有帮助?