Skip to content

GetWebhooksForCurrentTokenAsync

Rasmus Wulff Jensen edited this page May 31, 2023 · 4 revisions

Back to Weebhook Features

Get Webhooks linked with the current Token used to authenticate with the API

Signature

/// <summary>
/// Get Webhooks linked with the current Token used to authenticate with the API
/// </summary>
/// <returns>List of Webhooks</returns>
public async Task<List<Webhook>> GetWebhooksForCurrentTokenAsync(CancellationToken cancellationToken = default) {...}

Examples

var webhooksForCurrentToken = await _trelloClient.GetWebhooksForCurrentTokenAsync();
foreach (var webhook in webhooksForCurrentToken)
{
    Console.WriteLine("- Webhook {0}: {1} ({2})", webjook.Id, webhook.Description, webhook.CallbackUrl);
}

See Also

Clone this wiki locally