feedback

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 1

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

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

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

type ClientProperties struct {
	AccountSid string
	CallSid    string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL