message

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package message contains auto-generated files. DO NOT MODIFY

Package message contains auto-generated files. DO NOT MODIFY

Package message contains auto-generated files. DO NOT MODIFY

Package message 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 message resource See https://www.twilio.com/docs/conversations/api/conversation-message-resource for more details

func New

func New(client *client.Client, properties ClientProperties) *Client

New creates a new instance of the message client

func (Client) Delete

func (c Client) Delete() error

Delete removes a message resource from the account See https://www.twilio.com/docs/conversations/api/conversation-message-resource#delete-a-conversationmessage-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) DeleteWithContext

func (c Client) DeleteWithContext(context context.Context) error

DeleteWithContext removes a message resource from the account See https://www.twilio.com/docs/conversations/api/conversation-message-resource#delete-a-conversationmessage-resource for more details

func (Client) Fetch

func (c Client) Fetch() (*FetchMessageResponse, error)

Fetch retrieves a message resource See https://www.twilio.com/docs/conversations/api/conversation-message-resource#fetch-a-conversationmessage-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) (*FetchMessageResponse, error)

FetchWithContext retrieves a message resource See https://www.twilio.com/docs/conversations/api/conversation-message-resource#fetch-a-conversationmessage-resource for more details

func (Client) Update

Update modifies a message resource See https://www.twilio.com/docs/conversations/api/conversation-message-resource#update-a-conversationmessage-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 *UpdateMessageInput) (*UpdateMessageResponse, error)

UpdateWithContext modifies a message resource See https://www.twilio.com/docs/conversations/api/conversation-message-resource#update-a-conversationmessage-resource for more details

type ClientProperties

type ClientProperties struct {
	ConversationSid string
	Sid             string
}

ClientProperties are the properties required to manage the message resources

type FetchMessageResponse

type FetchMessageResponse struct {
	AccountSid      string                       `json:"account_sid"`
	Attributes      string                       `json:"attributes"`
	Author          string                       `json:"author"`
	Body            *string                      `json:"body,omitempty"`
	ConversationSid string                       `json:"conversation_sid"`
	DateCreated     time.Time                    `json:"date_created"`
	DateUpdated     *time.Time                   `json:"date_updated,omitempty"`
	Index           int                          `json:"index"`
	Media           *[]FetchMessageResponseMedia `json:"media,omitempty"`
	ParticipantSid  *string                      `json:"participant_sid,omitempty"`
	Sid             string                       `json:"sid"`
	URL             string                       `json:"url"`
}

FetchMessageResponse defines the response fields for the retrieved message

type FetchMessageResponseMedia

type FetchMessageResponseMedia struct {
	ContentType string `json:"content_type"`
	Filename    string `json:"filename"`
	Sid         string `json:"sid"`
	Size        int    `json:"size"`
}

type UpdateMessageInput

type UpdateMessageInput struct {
	Attributes  *string            `form:"Attributes.Filters,omitempty"`
	Author      *string            `form:"Author,omitempty"`
	Body        *string            `form:"Body,omitempty"`
	DateCreated *utils.RFC2822Time `form:"DateCreated,omitempty"`
	DateUpdated *utils.RFC2822Time `form:"DateUpdated,omitempty"`
}

UpdateMessageInput defines input fields for updating a message resource

type UpdateMessageResponse

type UpdateMessageResponse struct {
	AccountSid      string                        `json:"account_sid"`
	Attributes      string                        `json:"attributes"`
	Author          string                        `json:"author"`
	Body            *string                       `json:"body,omitempty"`
	ConversationSid string                        `json:"conversation_sid"`
	DateCreated     time.Time                     `json:"date_created"`
	DateUpdated     *time.Time                    `json:"date_updated,omitempty"`
	Index           int                           `json:"index"`
	Media           *[]UpdateMessageResponseMedia `json:"media,omitempty"`
	ParticipantSid  *string                       `json:"participant_sid,omitempty"`
	Sid             string                        `json:"sid"`
	URL             string                        `json:"url"`
}

UpdateMessageResponse defines the response fields for the updated message

type UpdateMessageResponseMedia

type UpdateMessageResponseMedia struct {
	ContentType string `json:"content_type"`
	Filename    string `json:"filename"`
	Sid         string `json:"sid"`
	Size        int    `json:"size"`
}

Jump to

Keyboard shortcuts

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