/// <summary> /// Triggers an event of type "custom" /// </summary> /// <remarks> /// Required permissions: Webhooks.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='eventData'> /// Any custom event data payload /// </param> public static CustomEventDto TriggerCustom(this IWebhooks operations, object eventData) { return(operations.TriggerCustomAsync(eventData).GetAwaiter().GetResult()); }
/// <summary> /// Triggers an event of type "custom" /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Webhooks or Webhooks.Write. /// /// Required permissions: Webhooks.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// Any custom event data payload /// </param> /// <param name='expand'> /// Indicates the related entities to be represented inline. The maximum depth /// is 2. /// </param> /// <param name='select'> /// Limits the properties returned in the result. /// </param> public static CustomEventDto TriggerCustom(this IWebhooks operations, IDictionary <string, object> body = default(IDictionary <string, object>), string expand = default(string), string select = default(string)) { return(operations.TriggerCustomAsync(body, expand, select).GetAwaiter().GetResult()); }