Skip to content

Commit

Permalink
Fix hound
Browse files Browse the repository at this point in the history
  • Loading branch information
nukosuke committed Apr 22, 2022
1 parent aa100b6 commit fadd06b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zendesk/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ type WebhookAPI interface {
DeleteWebhook(ctx context.Context, webhookID string) error
}

// GetWebhook gets a specified webhook.
// CreateWebhook creates new webhook.
//
// https://developer.zendesk.com/api-reference/event-connectors/webhooks/webhooks/#show-webhook
// https://developer.zendesk.com/api-reference/event-connectors/webhooks/webhooks/#create-or-clone-webhook
func (z *Client) CreateWebhook(ctx context.Context, hook *Webhook) (*Webhook, error) {
var data, result struct {
Webhook *Webhook `json:"webhook"`
Expand All @@ -66,6 +66,9 @@ func (z *Client) CreateWebhook(ctx context.Context, hook *Webhook) (*Webhook, er
return result.Webhook, nil
}

// GetWebhook gets a specified webhook.
//
// https://developer.zendesk.com/api-reference/event-connectors/webhooks/webhooks/#show-webhook
func (z *Client) GetWebhook(ctx context.Context, webhookID string) (*Webhook, error) {
var result struct {
Webhook *Webhook `json:"webhook"`
Expand Down

0 comments on commit fadd06b

Please sign in to comment.