Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListParams ¶
ListParams provides additional message list options.
type Message ¶
type Message struct { ID string HRef string Direction string Type string Originator string Body string Reference string Validity *int Gateway int TypeDetails TypeDetails DataCoding string MClass int ReportURL string ScheduledDatetime *time.Time CreatedDatetime *time.Time Recipients messagebird.Recipients }
Message struct represents a message at MessageBird.com
func Create ¶
func Create(c *messagebird.Client, originator string, recipients []string, body string, msgParams *Params) (*Message, error)
Create creates a new message for one or more recipients.
type MessageList ¶
type MessageList struct { Offset int Limit int Count int TotalCount int Links map[string]*string Items []Message }
MessageList represents a list of Messages.
func List ¶
func List(c *messagebird.Client, msgListParams *ListParams) (*MessageList, error)
List retrieves all messages of the user represented as a MessageList object.
type Params ¶
type Params struct { Type string Reference string Validity int Gateway int TypeDetails TypeDetails DataCoding string ReportURL string ScheduledDatetime time.Time }
Params provide additional message send options and used in URL as params.
type TypeDetails ¶
type TypeDetails map[string]interface{}
TypeDetails is a hash with extra information. Is only used when a binary or premium message is sent.
Click to show internal directories.
Click to hide internal directories.