-
Notifications
You must be signed in to change notification settings - Fork 4
AddWebhookAsync
Rasmus Wulff Jensen edited this page Nov 1, 2023
·
4 revisions
Add a new Webhook
Important: The URL that the webhook should notify Need to be a valid HTTPS URL that is reachable with a HEAD and POST requests.
/// <summary>
/// Add a new Webhook
/// </summary>
/// <param name="webhook">The Webhook to add</param>
/// <param name="cancellationToken">Cancellation Token</param>
/// <returns>The Webhook</returns>
public async Task<Webhook> AddWebhookAsync(Webhook webhook, CancellationToken cancellationToken = default) {...}
var boardId = "63c939a5cea0cb006dc9e88b";
string description = "My first Webhook";
string callbackUrl = "https://myUrlThatCanReceiveTheWebhook";
var idOfTypeYouWishToMonitor = boardId;
var webhook = new Webhook(description, callbackUrl, idOfTypeYouWishToMonitor);
var addedWebhook = _trelloClient.AddWebhookAsync(webhook);
If you are looking for info on a specific method in TrelloDotNet then expand the Pages above and input the 'MethodName' (Example: 'AddCardAsync')