Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 3.13 KB

README.md

File metadata and controls

64 lines (47 loc) · 3.13 KB

Webhooks

(Integrations.Webhooks)

Overview

Available Operations

  • Retrieve - Get webhook support status for provider

Retrieve

Return the status of the webhook for this provider, if it is supported or if it is not based on a boolean value

Example Usage

package main

import(
	"context"
	"os"
	novugo "github.com/novuhq/novu-go"
	"log"
)

func main() {
    ctx := context.Background()
    
    s := novugo.New(
        novugo.WithSecurity(os.Getenv("NOVU_SECRET_KEY")),
    )

    res, err := s.Integrations.Webhooks.Retrieve(ctx, "<id>", nil)
    if err != nil {
        log.Fatal(err)
    }
    if res.Boolean != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.
providerOrIntegrationID string ✔️ N/A
idempotencyKey *string A header for idempotency purposes
opts []operations.Option The options for this request.

Response

*operations.IntegrationsControllerGetWebhookSupportStatusResponse, error

Errors

Error Type Status Code Content Type
apierrors.ErrorDto 414 application/json
apierrors.ErrorDto 400, 401, 403, 404, 405, 409, 413, 415 application/json
apierrors.ValidationErrorDto 422 application/json
apierrors.ErrorDto 500 application/json
apierrors.APIError 4XX, 5XX */*