- Sending message to phone number;
- Sending message to many phone numbers together;
Is a golang client for SMS Gateway service (turbosms.com.ua)
Usage examples
var (
turboSMS *TurboSMS
err error
)
// username, password must be type string
if turboSMS, err = New(username, password); err != nil {
t.Fatal(err)
}
m := NewMessageBuilder()
message, err = m.SetSign("SignExample").
SetBody("Message Body").
SetDestination("+380999999111").
Build()
var (
turboSMS *TurboSMS
messageID string
err error
)
// username, password must be type string
if turboSMS, err = New(username, password); err != nil {
t.Fatal(err)
}
// m = was build by message builder
if messageID, err = turboSMS.SendMessage(m); err != nil {
t.Fatal(err)
}