Documentation ¶
Overview ¶
Package webhook contains auto-generated files. DO NOT MODIFY
Package webhook contains auto-generated files. DO NOT MODIFY
Package webhook contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Fetch() (*FetchWebhookResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchWebhookResponse, error)
- func (c Client) Update(input *UpdateWebhookInput) (*UpdateWebhookResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateWebhookInput) (*UpdateWebhookResponse, error)
- type FetchWebhookResponse
- type UpdateWebhookInput
- type UpdateWebhookResponse
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 for managing webhook resources See https://www.twilio.com/docs/conversations/api/conversation-webhook-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchWebhookResponse, error)
Fetch retrieves a webhook resource See https://www.twilio.com/docs/conversations/api/conversation-webhook-resource#fetch-a-conversationwebhook-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) FetchWithContext ¶
func (c Client) FetchWithContext(context context.Context) (*FetchWebhookResponse, error)
FetchWithContext retrieves a webhook resource See https://www.twilio.com/docs/conversations/api/conversation-webhook-resource#fetch-a-conversationwebhook-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateWebhookInput) (*UpdateWebhookResponse, error)
Update modifies a webhook resource See https://www.twilio.com/docs/conversations/api/conversation-webhook-resource#update-a-conversationwebhook-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) UpdateWithContext ¶
func (c Client) UpdateWithContext(context context.Context, input *UpdateWebhookInput) (*UpdateWebhookResponse, error)
UpdateWithContext modifies a webhook resource See https://www.twilio.com/docs/conversations/api/conversation-webhook-resource#update-a-conversationwebhook-resource for more details
type FetchWebhookResponse ¶
type FetchWebhookResponse struct { AccountSid string `json:"account_sid"` Filters []string `json:"filters"` Method string `json:"method"` PostWebhookURL *string `json:"post_webhook_url,omitempty"` PreWebhookURL *string `json:"pre_webhook_url,omitempty"` Target string `json:"target"` URL string `json:"url"` }
FetchWebhookResponse defines the response fields for the retrieved webhook
type UpdateWebhookInput ¶
type UpdateWebhookInput struct { Filters *[]string `form:"Filters,omitempty"` Method *string `form:"Method,omitempty"` PostWebhookURL *string `form:"PostWebhookUrl,omitempty"` PreWebhookURL *string `form:"PreWebhookUrl,omitempty"` Target *string `form:"Target,omitempty"` }
UpdateWebhookInput defines input fields for updating a webhook resource
type UpdateWebhookResponse ¶
type UpdateWebhookResponse struct { AccountSid string `json:"account_sid"` Filters []string `json:"filters"` Method string `json:"method"` PostWebhookURL *string `json:"post_webhook_url,omitempty"` PreWebhookURL *string `json:"pre_webhook_url,omitempty"` Target string `json:"target"` URL string `json:"url"` }
UpdateWebhookResponse defines the response fields for the updated webhook