feedbacks

package
v0.23.1 Latest Latest
Warning

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

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

Documentation

Overview

Package feedbacks contains auto-generated files. DO NOT MODIFY

Package feedbacks 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 feedback resources 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 feedbacks client

func (Client) Create

Create creates a new feedback resource See https://www.twilio.com/docs/voice/api/feedback-resource#create-a-call-feedback-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) CreateWithContext

func (c Client) CreateWithContext(context context.Context, input *CreateFeedbackInput) (*CreateFeedbackResponse, error)

CreateWithContext creates a new feedback resource See https://www.twilio.com/docs/voice/api/feedback-resource#create-a-call-feedback-resource for more details

type ClientProperties

type ClientProperties struct {
	AccountSid string
	CallSid    string
}

ClientProperties are the properties required to manage the feedbacks resources

type CreateFeedbackInput

type CreateFeedbackInput struct {
	Issues       *[]string `form:"Issue,omitempty"`
	QualityScore int       `validate:"required" form:"QualityScore"`
}

CreateFeedbackInput defines input fields for creating a new feedback resource

type CreateFeedbackResponse

type CreateFeedbackResponse 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"`
}

CreateFeedbackResponse defines the response fields for creating a new feedback resource

Jump to

Keyboard shortcuts

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