/// <summary> /// Create a new webhook subscription /// </summary> /// <remarks> /// Required permissions: Webhooks.Create. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='webhookDto'> /// The entity to post /// </param> public static WebhookDto Post(this IWebhooks operations, WebhookDto webhookDto) { return(operations.PostAsync(webhookDto).GetAwaiter().GetResult()); }
/// <summary> /// Create a new webhook subscription /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Webhooks or Webhooks.Write. /// /// Required permissions: Webhooks.Create. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// </param> public static WebhookDto Post(this IWebhooks operations, WebhookDto body = default(WebhookDto)) { return(operations.PostAsync(body).GetAwaiter().GetResult()); }