Esempio n. 1
0
 /// <summary>
 /// Updates the specified webhook with the parameters passed. Any parameters not provided will be left unchanged.
 /// </summary>
 /// <param name="id"></param>
 /// <param name="webhookUpdateOptions"></param>
 /// <returns></returns>
 public async Task <Webhook> UpdateWebhookAsync(int id, WebhookUpdateOptions webhookUpdateOptions)
 {
     return(await PatchAsync <Webhook>($"{Urls.Notification}/webhooks/{id}", webhookUpdateOptions));
 }
Esempio n. 2
0
 /// <summary>
 /// Updates the specified webhook with the parameters passed. Any parameters not provided will be left unchanged.
 /// </summary>
 /// <param name="id"></param>
 /// <param name="webhookUpdateOptions"></param>
 /// <returns></returns>
 public Webhook UpdateWebhook(int id, WebhookUpdateOptions webhookUpdateOptions)
 {
     return(Patch <Webhook>($"{Urls.Notification}/webhooks/{id}", webhookUpdateOptions));
 }