Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateWebhook(ctx context.Context, request *sdk.CreateWebhookRequest, ...) (*sdk.WebhookResponse, error)
- func (c *Client) DeleteWebhook(ctx context.Context, id string, opts ...option.RequestOption) (*sdk.WebhookResponse, error)
- func (c *Client) GetWebhook(ctx context.Context, id string, opts ...option.RequestOption) (*sdk.WebhookResponse, error)
- func (c *Client) GetWebhooks(ctx context.Context, opts ...option.RequestOption) (sdk.WebhooksResponse, error)
- func (c *Client) UpdateWebhook(ctx context.Context, id string, request *sdk.UpdateWebhookRequest, ...) (*sdk.WebhookResponse, error)
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
Click to show internal directories.
Click to hide internal directories.