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 ¶
- type Client
- func (c Client) Delete() error
- func (c Client) DeleteWithContext(context context.Context) error
- func (c Client) Fetch() (*FetchMessageResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchMessageResponse, error)
- func (c Client) Update(input *UpdateMessageInput) (*UpdateMessageResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateMessageInput) (*UpdateMessageResponse, error)
- type ClientProperties
- type FetchMessageResponse
- type FetchMessageResponseMedia
- type UpdateMessageInput
- type UpdateMessageResponse
- type UpdateMessageResponseMedia
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 ¶
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 ¶
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 ¶
func (c Client) Update(input *UpdateMessageInput) (*UpdateMessageResponse, error)
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 ¶
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 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