Documentation
¶
Overview ¶
Package actions contains auto-generated files. DO NOT MODIFY
Package actions contains auto-generated files. DO NOT MODIFY
Package actions contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Fetch() (*FetchActionResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchActionResponse, error)
- func (c Client) Update(input *UpdateActionInput) (*UpdateActionResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateActionInput) (*UpdateActionResponse, error)
- type ClientProperties
- type FetchActionResponse
- type UpdateActionInput
- type UpdateActionResponse
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 task action resources See https://www.twilio.com/docs/autopilot/api/task-action for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the actions client
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchActionResponse, error)
Fetch retrieves a task action resource See https://www.twilio.com/docs/autopilot/api/task-action#fetch-a-taskactions-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) (*FetchActionResponse, error)
FetchWithContext retrieves a task action resource See https://www.twilio.com/docs/autopilot/api/task-action#fetch-a-taskactions-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateActionInput) (*UpdateActionResponse, error)
Update modifies a task action resource See https://www.twilio.com/docs/autopilot/api/task-action#update-a-taskactions-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 *UpdateActionInput) (*UpdateActionResponse, error)
UpdateWithContext modifies a task action resource See https://www.twilio.com/docs/autopilot/api/task-action#update-a-taskactions-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the actions resources
type FetchActionResponse ¶
type FetchActionResponse struct { AccountSid string `json:"account_sid"` AssistantSid string `json:"assistant_sid"` Data map[string]interface{} `json:"data"` TaskSid string `json:"task_sid"` URL string `json:"url"` }
FetchActionResponse defines the response fields for the retrieved task action>
type UpdateActionInput ¶
type UpdateActionInput struct {
Actions *string `form:"Actions,omitempty"`
}
UpdateActionInput defines the input fields for updating a task action
type UpdateActionResponse ¶
type UpdateActionResponse struct { AccountSid string `json:"account_sid"` AssistantSid string `json:"assistant_sid"` Data map[string]interface{} `json:"data"` TaskSid string `json:"task_sid"` URL string `json:"url"` }
UpdateActionResponse defines the response fields for the updated task action