Documentation ¶
Overview ¶
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Delete() error
- func (c Client) DeleteWithContext(context context.Context) error
- 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 ClientProperties
- 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 a specific webhook resource See https://www.twilio.com/docs/autopilot/api/event-webhooks for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the webhook client
func (Client) Delete ¶
Delete removes a webhook resource from the account See https://www.twilio.com/docs/autopilot/api/event-webhooks#delete-a-webhook-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) DeleteWithContext ¶
DeleteWithContext removes a webhook resource from the account See https://www.twilio.com/docs/autopilot/api/event-webhooks#delete-a-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/autopilot/api/event-webhooks#fetch-a-webhook-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/autopilot/api/event-webhooks#fetch-a-webhook-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateWebhookInput) (*UpdateWebhookResponse, error)
Update modifies an webhook resource See https://www.twilio.com/docs/autopilot/api/event-webhooks#update-a-webhook-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 an webhook resource See https://www.twilio.com/docs/autopilot/api/event-webhooks#update-a-webhook-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the webhook resources
type FetchWebhookResponse ¶
type FetchWebhookResponse struct { AccountSid string `json:"account_sid"` AssistantSid string `json:"assistant_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` Events string `json:"events"` Sid string `json:"sid"` URL string `json:"url"` UniqueName string `json:"unique_name"` WebhookMethod string `json:"webhook_method"` WebhookURL string `json:"webhook_url"` }
FetchWebhookResponse defines the response fields for the retrieved webhook
type UpdateWebhookInput ¶
type UpdateWebhookInput struct { Events *string `form:"Events,omitempty"` UniqueName *string `form:"UniqueName,omitempty"` WebhookMethod *string `form:"WebhookMethod,omitempty"` WebhookURL *string `form:"WebhookUrl,omitempty"` }
UpdateWebhookInput defines the input fields for updating a webhook
type UpdateWebhookResponse ¶
type UpdateWebhookResponse struct { AccountSid string `json:"account_sid"` AssistantSid string `json:"assistant_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` Events string `json:"events"` Sid string `json:"sid"` URL string `json:"url"` UniqueName string `json:"unique_name"` WebhookMethod string `json:"webhook_method"` WebhookURL string `json:"webhook_url"` }
UpdateWebhookResponse defines the response fields for the updated webhook