Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CodeOk successful request CodeOk = 0 // CodeSyntaxDataError syntax data error CodeSyntaxDataError = -1 // CodeAuthenticationError authentication error CodeAuthenticationError = -2 // CodeReject reject CodeReject = -3 // CodeSystemError system error CodeSystemError = -4 // CodeLimitReached limit reached CodeLimitReached = -5 )
response format - http://smsonline-bulk.readthedocs.io/en/latest/bulk_sms.html
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SmsOnline ¶
type SmsOnline struct {
// contains filtered or unexported fields
}
SmsOnline is sms online client
func NewSmsOnlineClient ¶
NewSmsOnlineClient initializes new SmsOnline client
func NewSmsOnlineClientCustom ¶
func NewSmsOnlineClientCustom(username, secret, charset, url string, httpClient *http.Client) *SmsOnline
NewSmsOnlineClientCustom initializes new SmsOnline client with custom BaseUrl
func (*SmsOnline) SendSimpleSms ¶
func (c *SmsOnline) SendSimpleSms(from, to, text, charset string) (*SmsResponse, error)
SendSimpleSms send simple sms
type SmsResponse ¶
SmsResponse is a sms online response data
Click to show internal directories.
Click to hide internal directories.