AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

WebhookSender..::..SendWebhookAsync Method

Sends a webhook payload to the specified URL as a JSON POST request.

Namespace:  AdvantageCSP.AdvantageAPI
Assembly:  AdvantageCSP.API (in AdvantageCSP.API.dll)

Syntax


public Task<bool> SendWebhookAsync(
	string webhookUrl,
	string payload
)

Parameters

webhookUrl
Type: String
The destination webhook URL.
payload
Type: String
The JSON payload to send.

Return Value

true if the webhook was sent successfully; otherwise, false.