feedbacks

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 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 message feedback resources See https://www.twilio.com/docs/sms/api/message-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/sms/api/message-feedback-resource#create-a-messagefeedback-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/sms/api/message-feedback-resource#create-a-messagefeedback-resource for more details

type ClientProperties

type ClientProperties struct {
	AccountSid string
	MessageSid string
}

ClientProperties are the properties required to manage the feedbacks resources

type CreateFeedbackInput

type CreateFeedbackInput struct {
	Outcome *string `form:"Outcome,omitempty"`
}

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"`
	MessageSid  string             `json:"message_sid"`
	Outcome     string             `json:"outcome"`
	Sid         string             `json:"sid"`
}

CreateFeedbackResponse defines the response fields for the created feedback

Jump to

Keyboard shortcuts

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