webhooks

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOption

type CreateOption func(*CreateOptions)

type CreateOptions

type CreateOptions struct {
	Enabled  bool
	Security bool
	HttpUser string
	HttpPass string
	// contains filtered or unexported fields
}

func (CreateOptions) New

func (options CreateOptions) New() *CreateOptions

type ListOption

type ListOption func(*ListOptions)

type ListOptions

type ListOptions struct {
	Queries []string
	Total   bool
	// contains filtered or unexported fields
}

func (ListOptions) New

func (options ListOptions) New() *ListOptions

type UpdateOption

type UpdateOption func(*UpdateOptions)

type UpdateOptions

type UpdateOptions struct {
	Enabled  bool
	Security bool
	HttpUser string
	HttpPass string
	// contains filtered or unexported fields
}

func (UpdateOptions) New

func (options UpdateOptions) New() *UpdateOptions

type Webhooks

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

Webhooks service

func New

func New(clt client.Client) *Webhooks

func (*Webhooks) Create

func (srv *Webhooks) Create(WebhookId string, Url string, Name string, Events []string, optionalSetters ...CreateOption) (*models.Webhook, error)

Create create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.

func (*Webhooks) Delete

func (srv *Webhooks) Delete(WebhookId string) (*interface{}, error)

Delete delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events.

func (*Webhooks) Get

func (srv *Webhooks) Get(WebhookId string) (*models.Webhook, error)

Get get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project.

func (*Webhooks) List

func (srv *Webhooks) List(optionalSetters ...ListOption) (*models.WebhookList, error)

List get a list of all webhooks belonging to the project. You can use the query params to filter your results.

func (*Webhooks) Update

func (srv *Webhooks) Update(WebhookId string, Name string, Url string, Events []string, optionalSetters ...UpdateOption) (*models.Webhook, error)

Update update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook.

func (*Webhooks) UpdateSignature

func (srv *Webhooks) UpdateSignature(WebhookId string) (*models.Webhook, error)

UpdateSignature update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook.

func (*Webhooks) WithCreateEnabled

func (srv *Webhooks) WithCreateEnabled(v bool) CreateOption

func (*Webhooks) WithCreateHttpPass

func (srv *Webhooks) WithCreateHttpPass(v string) CreateOption

func (*Webhooks) WithCreateHttpUser

func (srv *Webhooks) WithCreateHttpUser(v string) CreateOption

func (*Webhooks) WithCreateSecurity

func (srv *Webhooks) WithCreateSecurity(v bool) CreateOption

func (*Webhooks) WithListQueries

func (srv *Webhooks) WithListQueries(v []string) ListOption

func (*Webhooks) WithListTotal

func (srv *Webhooks) WithListTotal(v bool) ListOption

func (*Webhooks) WithUpdateEnabled

func (srv *Webhooks) WithUpdateEnabled(v bool) UpdateOption

func (*Webhooks) WithUpdateHttpPass

func (srv *Webhooks) WithUpdateHttpPass(v string) UpdateOption

func (*Webhooks) WithUpdateHttpUser

func (srv *Webhooks) WithUpdateHttpUser(v string) UpdateOption

func (*Webhooks) WithUpdateSecurity

func (srv *Webhooks) WithUpdateSecurity(v bool) UpdateOption

Jump to

Keyboard shortcuts

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