mms

package
v0.0.0-...-421306c Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest

type CreateRequest struct {
	Originator        string     `json:"originator"` // the sender of the message.
	Recipients        string     `json:"recipients"` // comma separated list
	Body              string     `json:"body,omitempty"`
	MediaUrls         []string   `json:"mediaUrls"`
	Subject           string     `json:"subject,omitempty"`
	Reference         string     `json:"reference,omitempty"`
	ScheduledDatetime *time.Time `json:"scheduledDatetime,omitempty"`
}

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, req *CreateRequest) (*Message, error)

Create creates a new MMS message for one or more recipients. Max of 50 recipients can be entered per request.

func Read

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

Read retrieves the information of an existing MmsMessage.

Jump to

Keyboard shortcuts

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