Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IWebhookRequestService

    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IWebhookRequestService

    Methods

    View Source

    CreateAsync(Guid, String, Object)

    Creates a webhook request.

    Declaration
    Task<WebhookRequest> CreateAsync(Guid webhookKey, string eventAlias, object payload)
    Parameters
    Type Name Description
    Guid webhookKey

    The key of the webhook.

    System.String eventAlias

    The alias of the event that is creating the request.

    System.Object payload

    The payload you want to send with your request.

    Returns
    Type Description
    Task<WebhookRequest>

    The created WebhookRequest webhook

    View Source

    DeleteAsync(WebhookRequest)

    Deletes a webhook request

    Declaration
    Task DeleteAsync(WebhookRequest webhookRequest)
    Parameters
    Type Name Description
    WebhookRequest webhookRequest

    The webhook request to be deleted.

    Returns
    Type Description
    Task A representing the asynchronous operation.
    View Source

    GetAllAsync()

    Gets all of the webhook requests in the current database.

    Declaration
    Task<IEnumerable<WebhookRequest>> GetAllAsync()
    Returns
    Type Description
    Task<IEnumerable<WebhookRequest>>

    An enumerable of WebhookRequest objects.

    View Source

    UpdateAsync(WebhookRequest)

    Update a webhook request.

    Declaration
    Task<WebhookRequest> UpdateAsync(WebhookRequest webhookRequest)
    Parameters
    Type Name Description
    WebhookRequest webhookRequest

    The webhook request you want to update.

    Returns
    Type Description
    Task<WebhookRequest>

    The updated WebhookRequest webhook

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • CreateAsync(Guid, String, Object)
      • DeleteAsync(WebhookRequest)
      • GetAllAsync()
      • UpdateAsync(WebhookRequest)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX