Documentation ¶
Overview ¶
Package feedback contains auto-generated files. DO NOT MODIFY
Package feedback contains auto-generated files. DO NOT MODIFY
Package feedback contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Fetch() (*FetchFeedbackResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchFeedbackResponse, error)
- func (c Client) Update(input *UpdateFeedbackInput) (*UpdateFeedbackResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateFeedbackInput) (*UpdateFeedbackResponse, error)
- type ClientProperties
- type FetchFeedbackResponse
- type UpdateFeedbackInput
- type UpdateFeedbackResponse
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 feedback resource See https://www.twilio.com/docs/voice/api/feedback-resource for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the feedback client
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchFeedbackResponse, error)
Fetch retrieves the feedback resource See https://www.twilio.com/docs/voice/api/feedback-resource#fetch-a-call-feedback-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) (*FetchFeedbackResponse, error)
FetchWithContext retrieves the feedback resource See https://www.twilio.com/docs/voice/api/feedback-resource#fetch-a-call-feedback-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateFeedbackInput) (*UpdateFeedbackResponse, error)
Update modifies a feedback resource See https://www.twilio.com/docs/voice/api/feedback-resource#update-a-call-feedback-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 *UpdateFeedbackInput) (*UpdateFeedbackResponse, error)
UpdateWithContext modifies a feedback resource See https://www.twilio.com/docs/voice/api/feedback-resource#update-a-call-feedback-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the feedback resources
type FetchFeedbackResponse ¶
type FetchFeedbackResponse struct { AccountSid string `json:"account_sid"` DateCreated utils.RFC2822Time `json:"date_created"` DateUpdated *utils.RFC2822Time `json:"date_updated,omitempty"` Issues []string `json:"issues"` QualityScore int `json:"quality_score"` Sid string `json:"sid"` }
FetchFeedbackResponse defines the response fields for retrieving feedback
type UpdateFeedbackInput ¶
type UpdateFeedbackInput struct { Issues *[]string `form:"Issue,omitempty"` QualityScore int `validate:"required" form:"QualityScore"` }
UpdateFeedbackInput defines input fields for updating feedback
type UpdateFeedbackResponse ¶
type UpdateFeedbackResponse struct { AccountSid string `json:"account_sid"` DateCreated utils.RFC2822Time `json:"date_created"` DateUpdated *utils.RFC2822Time `json:"date_updated,omitempty"` Issues []string `json:"issues"` QualityScore int `json:"quality_score"` Sid string `json:"sid"` }
UpdateFeedbackResponse defines the response fields for the updated feedback