Documentation ¶
Overview ¶
Package messages contains auto-generated files. DO NOT MODIFY
Package messages 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 stream message resources See https://www.twilio.com/docs/sync/api/stream-message-resource for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the messages client
func (Client) Create ¶
func (c Client) Create(input *CreateSyncStreamMessageInput) (*CreateSyncStreamMessageResponse, error)
Create creates a new stream message See https://www.twilio.com/docs/sync/api/stream-message-resource#create-a-stream-message-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 *CreateSyncStreamMessageInput) (*CreateSyncStreamMessageResponse, error)
CreateWithContext creates a new stream message See https://www.twilio.com/docs/sync/api/stream-message-resource#create-a-stream-message-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the messages resources
type CreateSyncStreamMessageInput ¶
type CreateSyncStreamMessageInput struct {
Data string `validate:"required" form:"Data"`
}
CreateSyncStreamMessageInput defines the input fields for creating a new stream message resource
type CreateSyncStreamMessageResponse ¶
type CreateSyncStreamMessageResponse struct { Data map[string]interface{} `json:"data"` Sid string `json:"sid"` }
CreateSyncStreamMessageResponse defines the response fields for the created stream message