コード例 #1
0
 /// <summary>
 /// Creates a new webhook.
 /// </summary>
 /// <param name="webhookCreateOptions"></param>
 /// <returns></returns>
 public async Task <Webhook> CreateWebhookAsync(WebhookCreateOptions webhookCreateOptions)
 {
     return(await PostAsync <Webhook>($"{Urls.Notification}/webhooks", webhookCreateOptions));
 }
コード例 #2
0
 /// <summary>
 /// Creates a new webhook.
 /// </summary>
 /// <param name="webhookCreateOptions"></param>
 /// <returns></returns>
 public Webhook CreateWebhook(WebhookCreateOptions webhookCreateOptions)
 {
     return(Post <Webhook>($"{Urls.Notification}/webhooks", webhookCreateOptions));
 }