mms

package
v8.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	ID                string
	HRef              string
	Direction         string
	Originator        string
	Body              string
	Reference         string
	Subject           string
	MediaUrls         []string
	ScheduledDatetime *time.Time
	CreatedDatetime   *time.Time
	Recipients        messagebird.Recipients
}

Message represents a MMS Message.

func Create

func Create(c *messagebird.Client, originator string, recipients []string, msgParams *Params) (*Message, error)

Create creates a new MMS message for one or more recipients.

func Read

func Read(c *messagebird.Client, id string) (*Message, error)

Read retrieves the information of an existing MmsMessage.

type Params

type Params struct {
	Body              string
	MediaUrls         []string
	Subject           string
	Reference         string
	ScheduledDatetime time.Time
}

Params represents the parameters that can be supplied when creating a request.

Jump to

Keyboard shortcuts

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