Skip to content

How to create a HTTP Subscription with Extension Destination #220

@DevonVejay

Description

@DevonVejay

I'm trying to create a webhook with this SDK to createa a "ProductCreated" Subscription event with this SDK but can't figure it out
`

        // Create the client instance
        var client = new ClientFactory().Create(config);

        // Set up the subscription payload

        var httpDestination = new HttpDestination
        {
            Url = "https://mysite.dev/webhook",
        };

        // Set up the subscription payload
        var payload = new SubscriptionDraft
        {

            Destination = httpDestination,
            Changes = new { "ProductCreated" },
            Key = "product-created-subscription",
        };

`
Any pointers appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions