メインコンテンツへスキップ
GitHub source

class SendWebhook

Webhook リクエストを送信する オートメーション アクションを定義します。

method SendWebhook.__init__

__init__(
    integration_id: 'str',
    request_payload: 'Annotated | None' = None,
    action_type: 'Literal[GENERIC_WEBHOOK]' = GENERIC_WEBHOOK
) → None
Args:
  • integration_id (str): リクエストの送信に使用される Webhook インテグレーション の ID。
  • request_payload (Optional[Annotated]): Webhook リクエストで送信するペイロード。テンプレート変数を含めることができます。
  • action_type (Literal[GENERIC_WEBHOOK]):
Returns: SendWebhook オブジェクト。

classmethod SendWebhook.from_integration

from_integration(
    integration: 'WebhookIntegration',
    payload: 'Optional[JsonEncoded[dict[str, Any]]]' = None
) → Self
指定された(Webhook) インテグレーション に送信する Webhook アクションを定義します。