Documentation ¶
Index ¶
- type UniMessage
- func (m *UniMessage) SetContent(content string) *UniMessage
- func (m *UniMessage) SetSignature(signature string) *UniMessage
- func (m *UniMessage) SetTemplateData(templateData map[string]string) *UniMessage
- func (m *UniMessage) SetTemplateId(templateId string) *UniMessage
- func (m *UniMessage) SetText(text string) *UniMessage
- func (m *UniMessage) SetTo(phoneNumbers ...string) *UniMessage
- type UniSMSClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UniMessage ¶
type UniMessage struct { To *[]string Signature *string TemplateId *string TemplateData *map[string]string Content *string Text *string }
func BuildMessage ¶
func BuildMessage() *UniMessage
func (*UniMessage) SetContent ¶
func (m *UniMessage) SetContent(content string) *UniMessage
func (*UniMessage) SetSignature ¶
func (m *UniMessage) SetSignature(signature string) *UniMessage
func (*UniMessage) SetTemplateData ¶
func (m *UniMessage) SetTemplateData(templateData map[string]string) *UniMessage
func (*UniMessage) SetTemplateId ¶
func (m *UniMessage) SetTemplateId(templateId string) *UniMessage
func (*UniMessage) SetText ¶
func (m *UniMessage) SetText(text string) *UniMessage
func (*UniMessage) SetTo ¶
func (m *UniMessage) SetTo(phoneNumbers ...string) *UniMessage
type UniSMSClient ¶
type UniSMSClient struct {
Client *uni.UniClient
}
func NewClient ¶
func NewClient(params ...string) *UniSMSClient
func (*UniSMSClient) Send ¶
func (c *UniSMSClient) Send(m *UniMessage) (response *uni.UniResponse, err error)
Click to show internal directories.
Click to hide internal directories.