messages

package
v0.10.0 Latest Latest
Warning

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

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

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

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

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

type ClientProperties struct {
	ServiceSid    string
	SyncStreamSid string
}

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

Jump to

Keyboard shortcuts

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