Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryMessage ¶
type BinaryMessage struct { Binary []byte UDH []byte *Destination *Options }
BinaryMessage can be used to send settings, bookmarks, visiting cards etc. See relevant phone manufacturer's manual for further specifications on message formats available. Two parameters are needed to send the binary data: udh and data. Parameters can be set individually, it is not mandatory to use both, however, at least one of them
func (*BinaryMessage) GetParameters ¶
func (m *BinaryMessage) GetParameters() map[string]string
GetParameters implements Message interface
type Client ¶
type Client struct { // Required Username string Password string // Default values, can be overridden by message values. OriginatorType OriginatorType Originator string Charset Charset AllowConcat bool DefaultCountryCode string }
Client holds username and password, and default values for messages The values on the client are default values that can be overridden by a message with different value for a field.
type Destination ¶
type Destination struct { // Required Recipients []string // Optional, can be included in destination DefaultCountryCode string }
Destination contains default values that all message types share. Theese values can be omitted if you want to use the client default
func (*Destination) Destinations ¶
func (b *Destination) Destinations() string
Destination is the Destination address(es) formatted for cellsynt
func (*Destination) GetParameters ¶
func (b *Destination) GetParameters() map[string]string
type FlashMessage ¶
type FlashMessage struct { // Required Text string // Optional Charset Charset AllowConcat bool *Destination *Options }
FlashMessage is used to send a normal text message which is shown directly on screen instead of being saved in the inbox on the recipient's mobile phone ("flash message"). Please note! Support for flash messages can vary depending on mobile phone model, operator network and other external factors. If it is not possible to send a mess
func (*FlashMessage) GetParameters ¶
func (m *FlashMessage) GetParameters() map[string]string
GetParameters implements Message interface
type Options ¶
type Options struct { // Optional OriginatorType OriginatorType Originator string }
func (*Options) GetParameters ¶
type OriginatorType ¶
type OriginatorType string
const ( OriginatorTypeNumeric OriginatorType = "numeric" OriginatorTypeShortcode OriginatorType = "shortcode" OriginatorTypeAlpha OriginatorType = "alpha" )
type Response ¶
Response will contain a success flag and the tracking ids that can be used for status tracking messages
type TextMessage ¶
type TextMessage struct { // Required Text string // Optional Charset Charset AllowConcat bool *Destination *Options }
TextMessage is used to send a normal text message. Maximum number of characters is 160. Any characters specified within character coding GSM 03.38 can be used (e.g. English, Swedish, Norwegian), for other languages / alphabets (e.g. Arabic, Japanese, Chinese) please use Unicode.
func (*TextMessage) GetParameters ¶
func (m *TextMessage) GetParameters() map[string]string
GetParameters implements Message interface
type UnicodeMessage ¶
type UnicodeMessage struct { // Required Text string // Optional Charset Charset AllowConcat bool *Destination *Options }
UnicodeMessage can be used if you need to send characters not available within an ordinary text message (e.g. Arabic, Japanese). A Unicode SMS can contain maximum 70 characters per message (or 67 characters per part for a long SMS). Unicode messages are sent by setting parameter type to unicode. When sending Unicode messages, the parameter charset can be set to UTF-8 to send data in the UTF-8 character set instead which holds characters of most of the world's languages.
func (*UnicodeMessage) GetParameters ¶
func (m *UnicodeMessage) GetParameters() map[string]string
GetParameters implements Message interface