Documentation
¶
Index ¶
- type Client
- func (c *Client) Create(webhook *Webhook) (*Webhook, error)
- func (c *Client) Delete(webhookID string) error
- func (c *Client) Get(webhookID string) (*Webhook, error)
- func (c *Client) List(options *ListOptions) (*WebhooksPage, error)
- func (c *Client) Update(webhookID string, webhook *Webhook) (*Webhook, error)
- type Config
- type ListOptions
- type Webhook
- type WebhooksPage
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
}
Client is the webhooks API client
func (*Client) List ¶
func (c *Client) List(options *ListOptions) (*WebhooksPage, error)
List returns a list of webhooks
type Config ¶
type Config struct {
}
Config holds the configuration for the Webhooks plugin
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns the default configuration for the Webhooks plugin
type ListOptions ¶
type ListOptions struct {
Max int `url:"max,omitempty"`
}
ListOptions contains the options for listing webhooks
type Webhook ¶
type Webhook struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
TargetURL string `json:"targetUrl,omitempty"`
Resource string `json:"resource,omitempty"`
Event string `json:"event,omitempty"`
Filter string `json:"filter,omitempty"`
Secret string `json:"secret,omitempty"`
Status string `json:"status,omitempty"`
Created *time.Time `json:"created,omitempty"`
}
Webhook represents a Webex webhook
func NewUpdateWebhook ¶
NewUpdateWebhook creates a webhook struct with only the fields that can be updated
type WebhooksPage ¶
WebhooksPage represents a paginated list of webhooks
Click to show internal directories.
Click to hide internal directories.