Ejemplo n.º 1
0
        public async Task <Webhook> UpdateAsync(int webhookId, WebhookUpdate webhookUpdate, WebhookRequest request)
        {
            var updateLink = await _linkFactory.CreateLinkAsync($"webhooks/{webhookId}").ConfigureAwait(_halClient);

            return(await _halClient.PostAsync <Webhook>(updateLink, webhookUpdate, request).ConfigureAwait(_halClient));
        }
Ejemplo n.º 2
0
 public Task <Webhook> UpdateAsync(int webhookId, WebhookUpdate webhookUpdate)
 {
     return(UpdateAsync(webhookId, webhookUpdate, new WebhookRequest()));
 }