webhooks

package
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...option.RequestOption) *Client

func (*Client) CreateWebhook

func (c *Client) CreateWebhook(
	ctx context.Context,
	request *sdk.CreateWebhookRequest,
	opts ...option.RequestOption,
) (*sdk.WebhookResponse, error)

Create a new webhook for the organization

func (*Client) DeleteWebhook

func (c *Client) DeleteWebhook(
	ctx context.Context,
	id string,
	opts ...option.RequestOption,
) (*sdk.WebhookResponse, error)

Delete an existing webhook

func (*Client) GetWebhook

func (c *Client) GetWebhook(
	ctx context.Context,
	id string,
	opts ...option.RequestOption,
) (*sdk.WebhookResponse, error)

Retrieve a specific webhook

func (*Client) GetWebhooks

func (c *Client) GetWebhooks(
	ctx context.Context,
	opts ...option.RequestOption,
) (sdk.WebhooksResponse, error)

Retrieve all webhooks for the organization

func (*Client) UpdateWebhook

func (c *Client) UpdateWebhook(
	ctx context.Context,
	id string,
	request *sdk.UpdateWebhookRequest,
	opts ...option.RequestOption,
) (*sdk.WebhookResponse, error)

Update an existing webhook

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL