View Source
Interface IWebhookService
Assembly: Umbraco.Core.dll
Syntax
public interface IWebhookService
Methods
View Source
CreateAsync(IWebhook)
Declaration
Task<Attempt<IWebhook, WebhookOperationStatus>> CreateAsync(IWebhook webhook)
Parameters
Returns
View Source
DeleteAsync(Guid)
Declaration
Task<Attempt<IWebhook, WebhookOperationStatus>> DeleteAsync(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
The unique key of the webhook.
|
Returns
View Source
GetAllAsync(Int32, Int32)
Declaration
Task<PagedModel<IWebhook>> GetAllAsync(int skip, int take)
Parameters
Type |
Name |
Description |
System.Int32 |
skip |
|
System.Int32 |
take |
|
Returns
View Source
GetAsync(Guid)
Gets a webhook by its key.
Declaration
Task<IWebhook> GetAsync(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
The unique key of the webhook.
|
Returns
View Source
GetByAliasAsync(String)
Gets webhooks by event name.
Declaration
Task<IEnumerable<IWebhook>> GetByAliasAsync(string alias)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
Returns
Type |
Description |
Task<IEnumerable<IWebhook>> |
|
View Source
UpdateAsync(IWebhook)
Declaration
Task<Attempt<IWebhook, WebhookOperationStatus>> UpdateAsync(IWebhook webhook)
Parameters
Returns