/// <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)); }
/// <summary> /// Creates a new webhook. /// </summary> /// <param name="webhookCreateOptions"></param> /// <returns></returns> public Webhook CreateWebhook(WebhookCreateOptions webhookCreateOptions) { return(Post <Webhook>($"{Urls.Notification}/webhooks", webhookCreateOptions)); }